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.001455/0.001455, allocations: 104.9 kB / 16.45 MB, free: 6.453 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.001461/0.001461, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.459/1.459, allocations: 230.6 MB / 252.8 MB, free: 8.934 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.03076/0.03076, allocations: 5.481 MB / 314.3 MB, free: 14.86 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="me",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.002043/0.002043, allocations: 63.91 kB / 440.6 MB, free: 7.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1056, allocations: 54.58 MB / 495.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.008851/0.1144, allocations: 6.387 MB / 0.4898 GB, free: 10.65 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005128/0.1196, allocations: 2.647 MB / 0.4924 GB, free: 7.992 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005491/0.1201, allocations: 23.94 kB / 0.4924 GB, free: 7.969 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002798/0.1229, allocations: 1.123 MB / 0.4935 GB, free: 6.844 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001786/0.1247, allocations: 0.6214 MB / 0.4941 GB, free: 6.219 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007956/0.1255, allocations: 363.2 kB / 0.4945 GB, free: 5.863 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001445/0.1269, allocations: 1.153 MB / 0.4956 GB, free: 4.707 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00126/0.1282, allocations: 0.7703 MB / 0.4963 GB, free: 3.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007139/0.1289, allocations: 494.2 kB / 0.4968 GB, free: 3.426 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007424/0.1297, allocations: 0.5719 MB / 0.4974 GB, free: 2.852 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001672/0.1298, allocations: 128 kB / 0.4975 GB, free: 2.727 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005919/0.1304, allocations: 303.8 kB / 0.4978 GB, free: 2.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002136/0.1306, allocations: 251.2 kB / 0.498 GB, free: 2.184 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005179/0.1312, allocations: 0.5443 MB / 0.4986 GB, free: 1.637 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002021/0.1332, allocations: 1.51 MB / 0.5 GB, free: 124 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1332, allocations: 0 / 0.5 GB, free: 124 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1332, allocations: 0 / 0.5 GB, free: 124 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.741e-05/0.1332, allocations: 0 / 0.5 GB, free: 124 kB / 366.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.004419/0.1376, allocations: 1.556 MB / 0.5016 GB, free: 14.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.1377, allocations: 8.031 kB / 0.5016 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001939/0.1379, allocations: 148 kB / 0.5017 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002191/0.1401, allocations: 352 kB / 0.502 GB, free: 14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/0.1418, allocations: 0.687 MB / 0.5027 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.185e-05/0.1419, allocations: 73.94 kB / 0.5028 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.142, allocations: 95.95 kB / 0.5029 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001991/0.144, allocations: 0.9932 MB / 0.5038 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.932e-05/0.144, allocations: 0 / 0.5038 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001049/0.1441, allocations: 44 kB / 0.5039 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.471e-05/0.1442, allocations: 24 kB / 0.5039 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001838/0.146, allocations: 0.8394 MB / 0.5047 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006698/0.1527, allocations: 4.106 MB / 0.5087 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002465/0.1552, allocations: 1.439 MB / 0.5101 GB, free: 5.164 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005351/0.1557, allocations: 220.5 kB / 0.5103 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001633/0.1559, allocations: 170.2 kB / 0.5105 GB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006727/0.1565, allocations: 325.8 kB / 0.5108 GB, free: 4.398 MB / 382.1 MB Notification: Performance of pre-optimization done (n=47): time 2.685e-06/0.1565, allocations: 3.938 kB / 0.5108 GB, free: 4.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.003119/0.1597, allocations: 0.9266 MB / 0.5117 GB, free: 3.438 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.1598, allocations: 140.5 kB / 0.5119 GB, free: 3.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008268/0.1606, allocations: 0.4942 MB / 0.5123 GB, free: 2.762 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.799e-05/0.1607, allocations: 29.7 kB / 0.5124 GB, free: 2.727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004941/0.1612, allocations: 483.6 kB / 0.5128 GB, free: 2.246 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.1613, allocations: 166.7 kB / 0.513 GB, free: 2.082 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000275/0.1616, allocations: 146.5 kB / 0.5131 GB, free: 1.934 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002065/0.1618, allocations: 362.8 kB / 0.5135 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005736/0.1624, allocations: 233.9 kB / 0.5137 GB, free: 1.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007196/0.1631, allocations: 436.7 kB / 0.5141 GB, free: 0.832 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.1644, allocations: 0.6975 MB / 0.5148 GB, free: 44 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.1644, allocations: 4 kB / 0.5148 GB, free: 40 kB / 382.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.1839/0.3483, allocations: 0.8507 MB / 0.5156 GB, free: 34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.3484, allocations: 41.45 kB / 0.5157 GB, free: 33.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.3484, allocations: 9.109 kB / 0.5157 GB, free: 33.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004797/0.3489, allocations: 80.42 kB / 0.5158 GB, free: 33.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007288/0.3496, allocations: 172.6 kB / 0.5159 GB, free: 33.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001232/0.3508, allocations: 1.577 MB / 0.5175 GB, free: 32.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006341/0.3515, allocations: 88.8 kB / 0.5175 GB, free: 32.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.174e-05/0.3515, allocations: 36.95 kB / 0.5176 GB, free: 32.52 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.0003572/0.3519, allocations: 274 kB / 0.5178 GB, free: 32.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.352, allocations: 63.81 kB / 0.5179 GB, free: 32.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001478/0.3535, allocations: 0.6605 MB / 0.5186 GB, free: 32.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.303e-06/0.3535, allocations: 7.609 kB / 0.5186 GB, free: 32.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.3535, allocations: 0.625 kB / 0.5186 GB, free: 32.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.435e-06/0.3535, allocations: 3.672 kB / 0.5186 GB, free: 32.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00275/0.3562, allocations: 1.554 MB / 0.5201 GB, free: 31.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3562, allocations: 1.125 kB / 0.5201 GB, free: 31.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003361/0.3566, allocations: 82.5 kB / 0.5202 GB, free: 31.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005718/0.3571, allocations: 251.8 kB / 0.5204 GB, free: 31.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/0.3572, allocations: 16.3 kB / 0.5204 GB, free: 31.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009034/0.3581, allocations: 0.829 MB / 0.5212 GB, free: 31.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.3581, allocations: 3.938 kB / 0.5212 GB, free: 31.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/0.3602, allocations: 1.004 MB / 0.5222 GB, free: 31.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002233/0.3604, allocations: 177.6 kB / 0.5224 GB, free: 30.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.197e-05/0.3605, allocations: 18.28 kB / 0.5224 GB, free: 30.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004434/0.3609, allocations: 37.81 kB / 0.5224 GB, free: 30.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.051e-05/0.361, allocations: 29.81 kB / 0.5225 GB, free: 30.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.871e-05/0.361, allocations: 22.31 kB / 0.5225 GB, free: 30.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003982/0.3614, allocations: 346.5 kB / 0.5228 GB, free: 30.69 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3614, allocations: 0 / 0.5228 GB, free: 30.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007999/0.3622, allocations: 244.8 kB / 0.523 GB, free: 30.64 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.002407/0.3646, allocations: 1.599 MB / 0.5246 GB, free: 29.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.3661, allocations: 0.7306 MB / 0.5253 GB, free: 29.24 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.3661, allocations: 1.5 kB / 0.5253 GB, free: 29.24 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005723/0.3667, allocations: 288.1 kB / 0.5256 GB, free: 29.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006582/0.3674, allocations: 90.72 kB / 0.5257 GB, free: 29.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009362/0.3767, allocations: 5.527 MB / 0.5311 GB, free: 25.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006645/0.3774, allocations: 0.9462 MB / 0.532 GB, free: 25.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005343/0.3779, allocations: 89.62 kB / 0.5321 GB, free: 25.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004245/0.3784, allocations: 301.5 kB / 0.5324 GB, free: 24.85 MB / 382.1 MB Notification: Performance of SimCode: time 1.373e-06/0.3784, allocations: 0 / 0.5324 GB, free: 24.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07158/0.45, allocations: 14.68 MB / 0.5467 GB, free: 17.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/14.7, allocations: 11.92 kB / 0.5467 GB, free: 17.7 MB / 382.1 MB " [Timeout remaining time 645] (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 & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.652573241997743] Failed to read output from testmodel.py, exit status != 0: 14.798825207006303 14.808420089 14.673038012 Calling exit ...