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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005128/0.005128, allocations: 105 kB / 15.74 MB, free: 6.02 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.001322/0.001322, allocations: 193.4 kB / 16.68 MB, free: 5.938 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03014/0.03014, allocations: 5.398 MB / 295.9 MB, free: 9.441 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 55.91 kB / 412.3 MB, free: 22.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.09751, allocations: 50.63 MB / 462.9 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.008182/0.1057, allocations: 6.339 MB / 469.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004409/0.1102, allocations: 2.569 MB / 471.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000456/0.1107, allocations: 23.94 kB / 471.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002576/0.1132, allocations: 1.107 MB / 473 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001802/0.1151, allocations: 0.7769 MB / 473.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007602/0.1158, allocations: 347.3 kB / 474.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001438/0.1173, allocations: 1.156 MB / 475.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001507/0.1188, allocations: 0.9849 MB / 476.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005883/0.1194, allocations: 474.3 kB / 476.7 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007314/0.1201, allocations: 0.5758 MB / 477.3 MB, free: 5.902 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001708/0.1203, allocations: 128 kB / 477.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005608/0.1209, allocations: 279.9 kB / 477.7 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002238/0.1211, allocations: 259.1 kB / 477.9 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000535/0.1217, allocations: 0.5444 MB / 478.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001777/0.1234, allocations: 1.491 MB / 480 MB, free: 3.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1235, allocations: 0 / 480 MB, free: 3.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1235, allocations: 0 / 480 MB, free: 3.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.1235, allocations: 0 / 480 MB, free: 3.207 MB / 350.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.003743/0.1272, allocations: 1.571 MB / 481.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1273, allocations: 12.03 kB / 481.5 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001752/0.1275, allocations: 136.1 kB / 481.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002085/0.1296, allocations: 367.9 kB / 482 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001566/0.1311, allocations: 0.6831 MB / 482.7 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.252e-05/0.1312, allocations: 77.94 kB / 482.8 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.1314, allocations: 88 kB / 482.9 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001831/0.1332, allocations: 0.9932 MB / 483.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.575e-05/0.1332, allocations: 4 kB / 483.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.417e-05/0.1333, allocations: 36 kB / 483.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.471e-05/0.1334, allocations: 24 kB / 483.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00176/0.1351, allocations: 0.8393 MB / 484.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00588/0.141, allocations: 3.86 MB / 488.6 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002261/0.1433, allocations: 1.493 MB / 490.1 MB, free: 8.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005371/0.1439, allocations: 248.1 kB / 490.4 MB, free: 8.234 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001038/0.144, allocations: 85.11 kB / 490.5 MB, free: 8.133 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006051/0.1446, allocations: 317.8 kB / 490.8 MB, free: 7.797 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 1.974e-06/0.1446, allocations: 0 / 490.8 MB, free: 7.797 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002737/0.1473, allocations: 0.9681 MB / 491.7 MB, free: 6.797 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.1475, allocations: 140.5 kB / 491.9 MB, free: 6.629 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006749/0.1481, allocations: 0.5018 MB / 492.4 MB, free: 6.113 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.273e-05/0.1482, allocations: 33.7 kB / 492.4 MB, free: 6.074 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000395/0.1486, allocations: 467.7 kB / 492.9 MB, free: 5.609 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.1488, allocations: 170.6 kB / 493 MB, free: 5.441 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/0.149, allocations: 146.5 kB / 493.2 MB, free: 5.293 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002158/0.1492, allocations: 366.8 kB / 493.5 MB, free: 4.926 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005486/0.1498, allocations: 237.9 kB / 493.8 MB, free: 4.691 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007061/0.1505, allocations: 421.3 kB / 494.2 MB, free: 4.203 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001262/0.1518, allocations: 0.7091 MB / 494.9 MB, free: 3.402 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.1518, allocations: 3.938 kB / 494.9 MB, free: 3.398 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001949/0.1538, allocations: 0.8526 MB / 495.7 MB, free: 2.527 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.069e-05/0.1538, allocations: 41.69 kB / 495.8 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.1538, allocations: 8 kB / 495.8 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004764/0.1543, allocations: 80.97 kB / 495.9 MB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007054/0.155, allocations: 171.7 kB / 496 MB, free: 2.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001823/0.1569, allocations: 1.582 MB / 497.6 MB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006595/0.1576, allocations: 91.5 kB / 497.7 MB, free: 420 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.754e-05/0.1576, allocations: 35.98 kB / 497.7 MB, free: 384 kB / 366.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.0004154/0.1581, allocations: 270 kB / 498 MB, free: 100 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.1582, allocations: 59.62 kB / 498.1 MB, free: 40 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00154/0.1597, allocations: 0.6968 MB / 498.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.1597, allocations: 7.938 kB / 498.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-06/0.1598, allocations: 8 kB / 498.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.1598, allocations: 3.984 kB / 498.8 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004089/0.1639, allocations: 1.721 MB / 0.4888 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1639, allocations: 0 / 0.4888 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003312/0.1642, allocations: 67.91 kB / 0.4888 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006173/0.1649, allocations: 254.4 kB / 0.4891 GB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.349e-05/0.1649, allocations: 19.92 kB / 0.4891 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.1661, allocations: 0.8272 MB / 0.4899 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1661, allocations: 0 / 0.4899 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003313/0.1694, allocations: 1.178 MB / 0.491 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002672/0.1697, allocations: 180.6 kB / 0.4912 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.99e-05/0.1698, allocations: 8 kB / 0.4912 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004284/0.1702, allocations: 39.97 kB / 0.4913 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.536e-05/0.1703, allocations: 39.89 kB / 0.4913 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.81e-05/0.1704, allocations: 16 kB / 0.4913 GB, free: 10.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004665/0.1709, allocations: 346.9 kB / 0.4917 GB, free: 10.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1709, allocations: 0 / 0.4917 GB, free: 10.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008161/0.1717, allocations: 235.3 kB / 0.4919 GB, free: 10.23 MB / 382.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.00385/0.1755, allocations: 1.781 MB / 0.4936 GB, free: 8.414 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001631/0.1772, allocations: 0.7448 MB / 0.4943 GB, free: 7.637 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1772, allocations: 4.062 kB / 0.4943 GB, free: 7.633 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006556/0.1779, allocations: 343.3 kB / 0.4947 GB, free: 7.285 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006365/0.1785, allocations: 101.9 kB / 0.4948 GB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009145/0.1877, allocations: 5.532 MB / 0.5002 GB, free: 1.391 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006518/0.1884, allocations: 0.9369 MB / 0.5011 GB, free: 436 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00033/0.1887, allocations: 84.97 kB / 0.5012 GB, free: 352 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004056/0.1891, allocations: 295.3 kB / 0.5015 GB, free: 56 kB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1891, allocations: 0 / 0.5015 GB, free: 56 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2127/0.4018, allocations: 14.42 MB / 0.5155 GB, free: 48.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.9/14.3, allocations: 7.375 kB / 0.5155 GB, free: 48.11 MB / 382.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/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)