Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.00112, allocations: 178.6 kB / 15.44 MB, free: 0.6562 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.31/1.31, allocations: 223.3 MB / 239.5 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008083/0.0008082, allocations: 110.1 kB / 290.7 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02277/0.02277, allocations: 5.399 MB / 347.2 MB, free: 7.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004248/0.0004248, allocations: 8.422 kB / 413 MB, free: 46.15 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08698/0.08743, allocations: 51.61 MB / 464.6 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.006013/0.09349, allocations: 5.836 MB / 470.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00392/0.09744, allocations: 2.504 MB / 473 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007219/0.09819, allocations: 16 kB / 473 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009495/0.09916, allocations: 414.3 kB / 473.4 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001561/0.1007, allocations: 0.692 MB / 474.1 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005762/0.1013, allocations: 311.6 kB / 474.4 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009394/0.1023, allocations: 1.081 MB / 475.5 MB, free: 6.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002006/0.1043, allocations: 1.385 MB / 476.9 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000429/0.1047, allocations: 366.3 kB / 477.2 MB, free: 5.016 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005271/0.1053, allocations: 497.7 kB / 477.7 MB, free: 4.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.679e-05/0.1054, allocations: 52 kB / 477.8 MB, free: 4.477 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004255/0.1058, allocations: 207.8 kB / 478 MB, free: 4.273 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.1059, allocations: 163.2 kB / 478.1 MB, free: 4.113 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003437/0.1063, allocations: 491 kB / 478.6 MB, free: 3.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.1074, allocations: 1.378 MB / 480 MB, free: 2.242 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1074, allocations: 0 / 480 MB, free: 2.242 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1074, allocations: 0 / 480 MB, free: 2.242 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.1074, allocations: 4 kB / 480 MB, free: 2.238 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.003259/0.1107, allocations: 1.358 MB / 481.3 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.1107, allocations: 8.031 kB / 481.4 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001806/0.1109, allocations: 144 kB / 481.5 MB, free: 0.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001988/0.1129, allocations: 371.3 kB / 481.9 MB, free: 312 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/0.1142, allocations: 0.675 MB / 482.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.986e-05/0.1143, allocations: 73.88 kB / 482.6 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.1144, allocations: 96 kB / 482.7 MB, free: 15.42 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.1161, allocations: 0.9971 MB / 483.7 MB, free: 14.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.817e-05/0.1161, allocations: 7.844 kB / 483.7 MB, free: 14.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.678e-05/0.1162, allocations: 44 kB / 483.7 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.1162, allocations: 20 kB / 483.8 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.1178, allocations: 0.855 MB / 484.6 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005064/0.1229, allocations: 3.899 MB / 488.5 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002018/0.1249, allocations: 1.482 MB / 490 MB, free: 7.664 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004893/0.1254, allocations: 259.2 kB / 490.3 MB, free: 7.406 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.151e-05/0.1255, allocations: 89.09 kB / 490.3 MB, free: 7.301 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005732/0.1261, allocations: 329.8 kB / 490.7 MB, free: 6.957 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.094e-06/0.1261, allocations: 0 / 490.7 MB, free: 6.957 MB / 318.1 MB Notification: Performance of matching and sorting (n=47): time 0.002619/0.1287, allocations: 1.015 MB / 491.7 MB, free: 5.91 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.1288, allocations: 140.5 kB / 491.8 MB, free: 5.742 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005558/0.1294, allocations: 0.4941 MB / 492.3 MB, free: 5.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.882e-05/0.1294, allocations: 37.7 kB / 492.3 MB, free: 5.191 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002763/0.1297, allocations: 466.1 kB / 492.8 MB, free: 4.727 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.1298, allocations: 165.7 kB / 493 MB, free: 4.562 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.291e-05/0.1299, allocations: 61.69 kB / 493 MB, free: 4.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.13, allocations: 366.8 kB / 493.4 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004885/0.1305, allocations: 241.9 kB / 493.6 MB, free: 3.895 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006154/0.1312, allocations: 444.6 kB / 494.1 MB, free: 3.379 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001087/0.1323, allocations: 0.7169 MB / 494.8 MB, free: 2.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.1323, allocations: 4 kB / 494.8 MB, free: 2.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001663/0.1339, allocations: 0.8601 MB / 495.6 MB, free: 1.691 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.619e-05/0.134, allocations: 47.84 kB / 495.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.134, allocations: 4 kB / 495.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004524/0.1345, allocations: 92.64 kB / 495.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006533/0.1351, allocations: 175.8 kB / 495.9 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001347/0.1365, allocations: 1.463 MB / 497.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005746/0.1371, allocations: 91.25 kB / 497.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-05/0.1371, allocations: 40.08 kB / 497.5 MB, free: 15.64 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0003302/0.1375, allocations: 271.2 kB / 497.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.857e-05/0.1376, allocations: 59.33 kB / 497.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00141/0.139, allocations: 0.7124 MB / 498.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.139, allocations: 8 kB / 498.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.139, allocations: 0 / 498.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.139, allocations: 3.984 kB / 498.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003775/0.1428, allocations: 1.764 MB / 0.4886 GB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.1428, allocations: 0 / 0.4886 GB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000311/0.1431, allocations: 79.92 kB / 0.4887 GB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000551/0.1437, allocations: 262.3 kB / 0.4889 GB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-05/0.1437, allocations: 16 kB / 0.489 GB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009779/0.1447, allocations: 0.839 MB / 0.4898 GB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.1447, allocations: 4 kB / 0.4898 GB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003167/0.1479, allocations: 1.22 MB / 0.491 GB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002369/0.1482, allocations: 188.2 kB / 0.4912 GB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.407e-05/0.1483, allocations: 12 kB / 0.4912 GB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004282/0.1487, allocations: 44.03 kB / 0.4912 GB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.784e-05/0.1488, allocations: 31.91 kB / 0.4912 GB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.202e-05/0.1488, allocations: 15.98 kB / 0.4913 GB, free: 9.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003968/0.1492, allocations: 350.9 kB / 0.4916 GB, free: 9.594 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1492, allocations: 0 / 0.4916 GB, free: 9.594 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007184/0.15, allocations: 239.1 kB / 0.4918 GB, free: 9.359 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter.integrator.y,voltageSource.pin_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 (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.003645/0.1536, allocations: 1.811 MB / 0.4936 GB, free: 7.504 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.1551, allocations: 0.7667 MB / 0.4943 GB, free: 6.707 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1551, allocations: 0 / 0.4943 GB, free: 6.707 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006043/0.1557, allocations: 353.1 kB / 0.4947 GB, free: 6.352 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007035/0.1565, allocations: 97.91 kB / 0.4948 GB, free: 6.258 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008926/0.1654, allocations: 6.11 MB / 0.5007 GB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005599/0.166, allocations: 0.9444 MB / 0.5017 GB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004129/0.1664, allocations: 88.95 kB / 0.5017 GB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003727/0.1668, allocations: 303.3 kB / 0.502 GB, free: 14.54 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1668, allocations: 3.938 kB / 0.502 GB, free: 14.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0256/0.1924, allocations: 13.38 MB / 0.5151 GB, free: 1.344 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/0.1927, allocations: 225.4 kB / 0.5153 GB, free: 1.078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.074/2.267, allocations: 0 / 0.5153 GB, free: 1.078 MB / 350.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1)