Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.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.00137/0.00137, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.001409/0.001409, allocations: 218.9 kB / 21.46 MB, free: 1.605 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.546/1.546, allocations: 230.6 MB / 254.8 MB, free: 15.05 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1913/0.1913, allocations: 38.5 MB / 349.4 MB, free: 2.578 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.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(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems 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.002177/0.002177, allocations: 67.89 kB / 487.8 MB, free: 22.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1338, allocations: 62.41 MB / 0.5374 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.01051/0.1443, allocations: 6.574 MB / 0.5438 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005469/0.1498, allocations: 2.493 MB / 0.5462 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007567/0.1506, allocations: 35.69 kB / 0.5462 GB, free: 14.4 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001549/0.1521, allocations: 441.4 kB / 0.5467 GB, free: 13.97 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001741/0.1538, allocations: 0.5912 MB / 0.5472 GB, free: 13.38 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001327/0.1552, allocations: 499.1 kB / 0.5477 GB, free: 12.89 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00257/0.1577, allocations: 1.965 MB / 0.5496 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001253/0.159, allocations: 0.7166 MB / 0.5503 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002123/0.1611, allocations: 0.8102 MB / 0.5511 GB, free: 9.371 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002371/0.1635, allocations: 1.025 MB / 0.5521 GB, free: 8.344 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003349/0.1638, allocations: 160 kB / 0.5523 GB, free: 8.188 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001451/0.1653, allocations: 0.6787 MB / 0.5529 GB, free: 7.508 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007736/0.166, allocations: 0.6509 MB / 0.5536 GB, free: 6.855 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000829/0.1669, allocations: 0.6769 MB / 0.5542 GB, free: 6.176 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002686/0.1696, allocations: 2.044 MB / 0.5562 GB, free: 4.129 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.776e-06/0.1696, allocations: 3.984 kB / 0.5562 GB, free: 4.125 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1696, allocations: 0 / 0.5562 GB, free: 4.125 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.138e-05/0.1696, allocations: 0 / 0.5562 GB, free: 4.125 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.005805/0.1754, allocations: 1.938 MB / 0.5581 GB, free: 2.102 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.1755, allocations: 12.03 kB / 0.5581 GB, free: 2.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.925e-05/0.1755, allocations: 26.17 kB / 0.5582 GB, free: 2.066 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002833/0.1758, allocations: 168.4 kB / 0.5583 GB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009902/0.1768, allocations: 200.1 kB / 0.5585 GB, free: 1.699 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002535/0.1793, allocations: 0.9677 MB / 0.5595 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007988/0.1801, allocations: 0.5063 MB / 0.56 GB, free: 112 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002953/0.1804, allocations: 107.9 kB / 0.5601 GB, free: 4 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004588/0.185, allocations: 2.015 MB / 0.562 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.185, allocations: 0 / 0.562 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001421/0.1852, allocations: 32 kB / 0.5621 GB, free: 13.91 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002734/0.1854, allocations: 97.92 kB / 0.5622 GB, free: 13.82 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005595/0.191, allocations: 2.24 MB / 0.5643 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01092/0.202, allocations: 5.68 MB / 0.5699 GB, free: 5.785 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005069/0.207, allocations: 1.691 MB / 0.5715 GB, free: 4.059 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002863/0.2099, allocations: 1.062 MB / 0.5726 GB, free: 2.988 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.21, allocations: 20.97 kB / 0.5726 GB, free: 2.969 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003397/0.2134, allocations: 1.383 MB / 0.5739 GB, free: 1.562 MB / 430.1 MB Notification: Performance of pre-optimization done (n=123): time 3.597e-06/0.2134, allocations: 4 kB / 0.574 GB, free: 1.559 MB / 430.1 MB Notification: Performance of matching and sorting (n=124): time 0.0151/0.2285, allocations: 5.64 MB / 0.5795 GB, free: 11.87 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.2286, allocations: 106.1 kB / 0.5796 GB, free: 11.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007731/0.2294, allocations: 0.4902 MB / 0.58 GB, free: 11.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001487/0.2295, allocations: 61.69 kB / 0.5801 GB, free: 11.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004074/0.2299, allocations: 373.5 kB / 0.5805 GB, free: 10.81 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004889/0.2304, allocations: 436.3 kB / 0.5809 GB, free: 10.38 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004847/0.2309, allocations: 226.9 kB / 0.5811 GB, free: 10.15 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000365/0.2313, allocations: 390.8 kB / 0.5815 GB, free: 9.758 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002229/0.2335, allocations: 1.029 MB / 0.5825 GB, free: 8.73 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002313/0.2358, allocations: 1.172 MB / 0.5836 GB, free: 7.52 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00436/0.2402, allocations: 2.043 MB / 0.5856 GB, free: 5.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.2402, allocations: 0 / 0.5856 GB, free: 5.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01183/0.252, allocations: 3.884 MB / 0.5894 GB, free: 1.527 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.2521, allocations: 61.67 kB / 0.5895 GB, free: 1.461 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.757e-05/0.2521, allocations: 7.984 kB / 0.5895 GB, free: 1.453 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2529/0.505, allocations: 2.069 MB / 0.5915 GB, free: 51.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009918/0.506, allocations: 190.1 kB / 0.5917 GB, free: 51.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02886/0.5349, allocations: 11.32 MB / 0.6027 GB, free: 48.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.5362, allocations: 162.1 kB / 0.6029 GB, free: 48.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001702/0.5364, allocations: 73.22 kB / 0.6029 GB, free: 48.02 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * 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 {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0006087/0.537, allocations: 378.5 kB / 0.6033 GB, free: 47.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002253/0.5372, allocations: 87.56 kB / 0.6034 GB, free: 47.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005524/0.5428, allocations: 2.361 MB / 0.6057 GB, free: 47.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.443e-05/0.5428, allocations: 30.98 kB / 0.6057 GB, free: 47.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.5428, allocations: 0 / 0.6057 GB, free: 47.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.5428, allocations: 5.125 kB / 0.6057 GB, free: 47.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007938/0.5508, allocations: 4.101 MB / 0.6097 GB, free: 45.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.5508, allocations: 2.25 kB / 0.6097 GB, free: 45.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01129/0.5621, allocations: 2.02 MB / 0.6117 GB, free: 44.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.821e-05/0.5621, allocations: 6.938 kB / 0.6117 GB, free: 44.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000308/0.5624, allocations: 42.16 kB / 0.6118 GB, free: 44.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.088e-05/0.5624, allocations: 5.625 kB / 0.6118 GB, free: 44.48 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.5624, allocations: 7.25 kB / 0.6118 GB, free: 44.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008154/0.5706, allocations: 3.868 MB / 0.6155 GB, free: 42.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007436/0.5713, allocations: 343.8 kB / 0.6159 GB, free: 42.26 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002424/0.5715, allocations: 86.2 kB / 0.616 GB, free: 42.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/0.5729, allocations: 189.2 kB / 0.6161 GB, free: 42.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003808/0.5733, allocations: 190.7 kB / 0.6163 GB, free: 42.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.5734, allocations: 43.53 kB / 0.6164 GB, free: 41.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003618/0.5738, allocations: 348.6 kB / 0.6167 GB, free: 41.64 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5738, allocations: 0 / 0.6167 GB, free: 41.64 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001174/0.5749, allocations: 358.1 kB / 0.617 GB, free: 41.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007587/0.5825, allocations: 4.531 MB / 0.6215 GB, free: 36.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00586/0.5884, allocations: 2.813 MB / 0.6242 GB, free: 33.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.5884, allocations: 4.25 kB / 0.6242 GB, free: 33.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005807/0.5942, allocations: 1.861 MB / 0.626 GB, free: 32.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.5953, allocations: 180.5 kB / 0.6262 GB, free: 31.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03118/0.6265, allocations: 15.65 MB / 0.6415 GB, free: 16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005379/0.627, allocations: 1.14 MB / 0.6426 GB, free: 14.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008795/0.6279, allocations: 318.7 kB / 0.6429 GB, free: 14.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006867/0.6286, allocations: 343.3 kB / 0.6432 GB, free: 14.18 MB / 446.1 MB Notification: Performance of SimCode: time 1.283e-06/0.6286, allocations: 0 / 0.6432 GB, free: 14.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06435/0.6929, allocations: 32.94 MB / 0.6754 GB, free: 13.46 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.85/14.55, allocations: 23.28 kB / 0.6754 GB, free: 13.44 MB / 478.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.595965016982518] Failed to read output from testmodel.py, exit status != 0: 14.709733695024624 14.734015087 14.559768168 Calling exit ...