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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 219 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.366/1.366, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo): time 0.02837/0.02837, allocations: 5.48 MB / 318.7 MB, free: 13.53 MB / 254.1 MB " [Timeout remaining time 180] Using package PhotoVoltaics with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PhotoVoltaics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002193/0.002193, allocations: 71.89 kB / 446.9 MB, free: 3.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1101, allocations: 54.62 MB / 0.4897 GB, free: 12.91 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.008838/0.1189, allocations: 5.7 MB / 0.4953 GB, free: 7.172 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006494/0.1254, allocations: 2.445 MB / 0.4977 GB, free: 4.719 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009674/0.1264, allocations: 19.94 kB / 0.4977 GB, free: 4.699 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003223/0.1296, allocations: 1.034 MB / 0.4987 GB, free: 3.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002054/0.1317, allocations: 0.6012 MB / 0.4993 GB, free: 3.059 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008448/0.1325, allocations: 367.3 kB / 0.4997 GB, free: 2.699 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00134/0.1338, allocations: 1.153 MB / 0.5008 GB, free: 1.539 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001255/0.1351, allocations: 0.8833 MB / 0.5016 GB, free: 0.6289 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005768/0.1357, allocations: 498.2 kB / 0.5021 GB, free: 144 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006806/0.1364, allocations: 0.5719 MB / 0.5027 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001519/0.1365, allocations: 128 kB / 0.5028 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005383/0.137, allocations: 295.8 kB / 0.5031 GB, free: 15.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002146/0.1373, allocations: 247.2 kB / 0.5033 GB, free: 14.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004411/0.1377, allocations: 453.9 kB / 0.5038 GB, free: 14.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001639/0.1393, allocations: 1.51 MB / 0.5052 GB, free: 12.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.1393, allocations: 0 / 0.5052 GB, free: 12.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1393, allocations: 0 / 0.5052 GB, free: 12.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.1394, allocations: 4 kB / 0.5052 GB, free: 12.95 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: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.003794/0.1431, allocations: 1.492 MB / 0.5067 GB, free: 11.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.1432, allocations: 12.03 kB / 0.5067 GB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.511e-05/0.1432, allocations: 22.19 kB / 0.5067 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001702/0.1434, allocations: 148 kB / 0.5069 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002099/0.1455, allocations: 344 kB / 0.5072 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/0.147, allocations: 0.6328 MB / 0.5078 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.854e-05/0.1471, allocations: 70 kB / 0.5079 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/0.1472, allocations: 91.95 kB / 0.508 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001839/0.149, allocations: 1.03 MB / 0.509 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.866e-05/0.1491, allocations: 3.984 kB / 0.509 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.765e-05/0.1492, allocations: 39.94 kB / 0.509 GB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.865e-05/0.1492, allocations: 24 kB / 0.509 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001703/0.1509, allocations: 0.8722 MB / 0.5099 GB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005519/0.1564, allocations: 3.267 MB / 0.5131 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.1582, allocations: 0.6437 MB / 0.5137 GB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005084/0.1587, allocations: 246.7 kB / 0.5139 GB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.446e-05/0.1588, allocations: 19.98 kB / 0.514 GB, free: 3.727 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006311/0.1594, allocations: 351.5 kB / 0.5143 GB, free: 3.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=47): time 2.706e-06/0.1594, allocations: 0 / 0.5143 GB, free: 3.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.002766/0.1622, allocations: 0.9448 MB / 0.5152 GB, free: 2.375 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.978e-05/0.1623, allocations: 140.5 kB / 0.5154 GB, free: 2.207 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006353/0.1629, allocations: 0.5019 MB / 0.5158 GB, free: 1.695 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.099e-05/0.1629, allocations: 33.7 kB / 0.5159 GB, free: 1.656 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003678/0.1633, allocations: 483.6 kB / 0.5163 GB, free: 1.176 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.1634, allocations: 166.6 kB / 0.5165 GB, free: 1.012 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002397/0.1637, allocations: 146.5 kB / 0.5166 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.1638, allocations: 362.8 kB / 0.517 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000533/0.1644, allocations: 267.6 kB / 0.5172 GB, free: 240 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.191/0.3554, allocations: 453.9 kB / 0.5177 GB, free: 32.28 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.3564, allocations: 0.6985 MB / 0.5184 GB, free: 32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.3564, allocations: 3 kB / 0.5184 GB, free: 32 MB / 382.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001696/0.3581, allocations: 0.8906 MB / 0.5192 GB, free: 31.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.34e-05/0.3582, allocations: 42.2 kB / 0.5193 GB, free: 31.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.3582, allocations: 5.938 kB / 0.5193 GB, free: 31.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004723/0.3586, allocations: 83.53 kB / 0.5193 GB, free: 31.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006419/0.3593, allocations: 169.8 kB / 0.5195 GB, free: 31.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.3604, allocations: 1.466 MB / 0.5209 GB, free: 30.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006197/0.361, allocations: 87.78 kB / 0.521 GB, free: 30.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.379e-05/0.3611, allocations: 32.75 kB / 0.5211 GB, free: 30.5 MB / 382.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.0003307/0.3614, allocations: 275.6 kB / 0.5213 GB, free: 30.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.636e-05/0.3615, allocations: 63.55 kB / 0.5214 GB, free: 30.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00139/0.3629, allocations: 0.7313 MB / 0.5221 GB, free: 30.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3629, allocations: 4.906 kB / 0.5221 GB, free: 30.19 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.255e-06/0.3629, allocations: 1.531 kB / 0.5221 GB, free: 30.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.3629, allocations: 2.812 kB / 0.5221 GB, free: 30.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/0.3657, allocations: 1.506 MB / 0.5236 GB, free: 29.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3657, allocations: 1.188 kB / 0.5236 GB, free: 29.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.3661, allocations: 73.81 kB / 0.5236 GB, free: 29.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005931/0.3666, allocations: 294.9 kB / 0.5239 GB, free: 29.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.095e-05/0.3667, allocations: 14.77 kB / 0.5239 GB, free: 29.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009039/0.3676, allocations: 0.8987 MB / 0.5248 GB, free: 29.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3676, allocations: 5.469 kB / 0.5248 GB, free: 29.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001987/0.3696, allocations: 1.104 MB / 0.5259 GB, free: 28.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002032/0.3698, allocations: 105.8 kB / 0.526 GB, free: 28.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.15e-05/0.3699, allocations: 16.16 kB / 0.526 GB, free: 28.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004222/0.3703, allocations: 38.88 kB / 0.5261 GB, free: 28.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.679e-05/0.3704, allocations: 32.83 kB / 0.5261 GB, free: 28.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-05/0.3704, allocations: 15.41 kB / 0.5261 GB, free: 28.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004015/0.3708, allocations: 349.8 kB / 0.5264 GB, free: 28.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3708, allocations: 0 / 0.5264 GB, free: 28.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007595/0.3716, allocations: 244 kB / 0.5267 GB, free: 28.61 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.002361/0.3739, allocations: 1.708 MB / 0.5283 GB, free: 27.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001487/0.3754, allocations: 0.7853 MB / 0.5291 GB, free: 27.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3754, allocations: 0 / 0.5291 GB, free: 27.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005208/0.376, allocations: 319.4 kB / 0.5294 GB, free: 27.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005841/0.3765, allocations: 96.67 kB / 0.5295 GB, free: 27.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007773/0.3843, allocations: 5.674 MB / 0.535 GB, free: 23.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003783/0.3847, allocations: 350 kB / 0.5354 GB, free: 23.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003198/0.385, allocations: 89.81 kB / 0.5355 GB, free: 23.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003282/0.3853, allocations: 300.3 kB / 0.5357 GB, free: 23.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3853, allocations: 1.062 kB / 0.5357 GB, free: 23.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04079/0.4261, allocations: 15.07 MB / 0.5505 GB, free: 15.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/15.33, allocations: 4 kB / 0.5505 GB, free: 15.55 MB / 382.1 MB " [Timeout remaining time 644] (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 --stepSize=0.1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.937539397040382] Failed to read output from testmodel.py, exit status != 0: 15.503117938991636 15.520754663 15.377917228 Calling exit ...