Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP3,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP3,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007436/0.007436, allocations: 101.1 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00175/0.00175, allocations: 190.4 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1305/0.1305, allocations: 5.381 MB / 295.9 MB, free: 2.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 55.91 kB / 412.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2608, allocations: 50.62 MB / 462.9 MB, free: 21.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.00957/0.2704, allocations: 10.1 MB / 473 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006472/0.2769, allocations: 3.531 MB / 476.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001785/0.2787, allocations: 66.41 kB / 476.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006738/0.2855, allocations: 3.248 MB / 479.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003658/0.2892, allocations: 1.026 MB / 480.9 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002229/0.2914, allocations: 0.9572 MB / 481.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004365/0.2958, allocations: 4.237 MB / 486.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01299/0.3088, allocations: 10.6 MB / 496.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004096/0.3129, allocations: 2.377 MB / 499.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003999/0.317, allocations: 2.636 MB / 0.4899 GB, free: 10.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00146/0.3184, allocations: 0.7188 MB / 0.4906 GB, free: 9.711 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00242/0.3209, allocations: 0.988 MB / 0.4916 GB, free: 8.723 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001283/0.3222, allocations: 1.333 MB / 0.4929 GB, free: 7.387 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003549/0.3257, allocations: 2.607 MB / 0.4954 GB, free: 4.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009696/0.3355, allocations: 9.104 MB / 0.5043 GB, free: 11.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.3355, allocations: 4 kB / 0.5043 GB, free: 11.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3355, allocations: 0 / 0.5043 GB, free: 11.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000229/0.3357, allocations: 4 kB / 0.5043 GB, free: 11.63 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01327/0.349, allocations: 5.329 MB / 0.5096 GB, free: 6.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.3491, allocations: 12.03 kB / 0.5096 GB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009461/0.35, allocations: 0.6088 MB / 0.5102 GB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009268/0.3593, allocations: 1.588 MB / 0.5117 GB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005685/0.365, allocations: 2.943 MB / 0.5146 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002376/0.3653, allocations: 320.5 kB / 0.5149 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001005/0.3663, allocations: 419.9 kB / 0.5153 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0126/0.3789, allocations: 6.668 MB / 0.5218 GB, free: 9.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.246e-05/0.379, allocations: 3.906 kB / 0.5218 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004258/0.3795, allocations: 172 kB / 0.522 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000196/0.3797, allocations: 207.9 kB / 0.5222 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01078/0.3905, allocations: 5.613 MB / 0.5276 GB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03404/0.4246, allocations: 22.48 MB / 0.5496 GB, free: 12.31 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005783/0.4304, allocations: 4.37 MB / 0.5539 GB, free: 7.449 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001361/0.4318, allocations: 0.8278 MB / 0.5547 GB, free: 6.621 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00017/0.432, allocations: 122 kB / 0.5548 GB, free: 6.484 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001216/0.4332, allocations: 0.7707 MB / 0.5555 GB, free: 5.688 MB / 430.1 MB Notification: Performance of pre-optimization done (n=106): time 3.076e-06/0.4332, allocations: 0 / 0.5555 GB, free: 5.688 MB / 430.1 MB Notification: Performance of matching and sorting (n=106): time 0.004795/0.438, allocations: 2.239 MB / 0.5577 GB, free: 3.414 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.84e-05/0.4381, allocations: 149.5 kB / 0.5579 GB, free: 3.238 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002595/0.4407, allocations: 1.818 MB / 0.5597 GB, free: 1.41 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.326e-05/0.4408, allocations: 41.7 kB / 0.5597 GB, free: 1.363 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001617/0.4424, allocations: 1.967 MB / 0.5616 GB, free: 15.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003394/0.4428, allocations: 394.8 kB / 0.562 GB, free: 14.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007835/0.4436, allocations: 0.5354 MB / 0.5625 GB, free: 14.43 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.4437, allocations: 305.1 kB / 0.5628 GB, free: 14.13 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001694/0.4454, allocations: 1.078 MB / 0.5639 GB, free: 13.05 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002402/0.4478, allocations: 2.173 MB / 0.566 GB, free: 10.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004107/0.4519, allocations: 3.369 MB / 0.5693 GB, free: 6.457 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.253e-05/0.452, allocations: 12 kB / 0.5693 GB, free: 6.445 MB / 446.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.005761/0.4577, allocations: 3.47 MB / 0.5727 GB, free: 2.957 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.38e-05/0.4578, allocations: 51.56 kB / 0.5727 GB, free: 2.902 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.202e-05/0.4579, allocations: 40 kB / 0.5728 GB, free: 2.863 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005363/0.4584, allocations: 120.8 kB / 0.5729 GB, free: 2.742 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002034/0.4605, allocations: 0.6123 MB / 0.5735 GB, free: 2.129 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001663/0.4621, allocations: 1.636 MB / 0.5751 GB, free: 356 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2339/0.6961, allocations: 370.7 kB / 0.5754 GB, free: 95.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005105/0.6966, allocations: 134 kB / 0.5755 GB, free: 95.77 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * Number of states: 0 () * Number of discrete variables: 11 (mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,mpTracker.vRef,$PRE.mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002605/0.6992, allocations: 1.717 MB / 0.5772 GB, free: 95.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003637/0.6996, allocations: 159.6 kB / 0.5774 GB, free: 95.61 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003345/0.703, allocations: 1.776 MB / 0.5791 GB, free: 94.92 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002459/0.7054, allocations: 1.423 MB / 0.5805 GB, free: 94.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.7055, allocations: 4.531 kB / 0.5805 GB, free: 94.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.7055, allocations: 5.594 kB / 0.5805 GB, free: 94.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01002/0.7155, allocations: 5.124 MB / 0.5855 GB, free: 92.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.7155, allocations: 5.625 kB / 0.5855 GB, free: 92.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008345/0.7164, allocations: 205.8 kB / 0.5857 GB, free: 92.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006155/0.717, allocations: 258.1 kB / 0.586 GB, free: 92.31 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.271e-05/0.7171, allocations: 30.28 kB / 0.586 GB, free: 92.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000933/0.7181, allocations: 0.827 MB / 0.5868 GB, free: 91.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.7181, allocations: 1.031 kB / 0.5868 GB, free: 91.65 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005332/0.7234, allocations: 2.729 MB / 0.5895 GB, free: 90.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006869/0.7241, allocations: 366.8 kB / 0.5898 GB, free: 90.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002017/0.7243, allocations: 35.05 kB / 0.5899 GB, free: 90.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008078/0.7251, allocations: 83.95 kB / 0.5899 GB, free: 90.37 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.7253, allocations: 69.7 kB / 0.59 GB, free: 90.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.818e-05/0.7254, allocations: 39.98 kB / 0.59 GB, free: 90.35 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001747/0.7271, allocations: 1.236 MB / 0.5912 GB, free: 89.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7272, allocations: 1.344 kB / 0.5912 GB, free: 89.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002618/0.7298, allocations: 0.9467 MB / 0.5922 GB, free: 89.56 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (converter.integrator.y,voltageSource.plug_p.reference.gamma) * Number of discrete variables: 6 ($whenCondition1,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef) * Number of discrete states: 7 (mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005727/0.7355, allocations: 3.363 MB / 0.5955 GB, free: 87.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003866/0.7394, allocations: 2.467 MB / 0.5979 GB, free: 86.88 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.7394, allocations: 1.281 kB / 0.5979 GB, free: 86.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.7406, allocations: 0.7788 MB / 0.5986 GB, free: 86.55 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001764/0.7424, allocations: 372.9 kB / 0.599 GB, free: 86.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0308/0.7732, allocations: 20.76 MB / 0.6192 GB, free: 74.53 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002103/0.7753, allocations: 3.029 MB / 0.6222 GB, free: 71.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001835/0.7772, allocations: 0.8501 MB / 0.623 GB, free: 70.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001452/0.7787, allocations: 1.292 MB / 0.6243 GB, free: 69.32 MB / 446.1 MB Notification: Performance of SimCode: time 7.92e-07/0.7787, allocations: 0 / 0.6243 GB, free: 69.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07446/0.8531, allocations: 51.47 MB / 0.6746 GB, free: 18.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14/14.85, allocations: 2.25 kB / 0.6746 GB, free: 18.05 MB / 446.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe 2>&1)