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.001316/0.001316, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.00157/0.00157, allocations: 213.3 kB / 23.73 MB, free: 4.531 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.461/1.461, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.2043/0.2043, allocations: 38.54 MB / 352.5 MB, free: 12.29 MB / 286.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",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.002061/0.002061, allocations: 71.89 kB / 492.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2951, allocations: 62.46 MB / 0.5419 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.008647/0.3038, allocations: 6.227 MB / 0.548 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004644/0.3084, allocations: 2.34 MB / 0.5503 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005362/0.3089, allocations: 36.25 kB / 0.5503 GB, free: 9.684 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001322/0.3103, allocations: 416.2 kB / 0.5507 GB, free: 9.367 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001708/0.312, allocations: 0.606 MB / 0.5513 GB, free: 8.902 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001185/0.3132, allocations: 497.9 kB / 0.5518 GB, free: 8.527 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002322/0.3155, allocations: 1.968 MB / 0.5537 GB, free: 7.371 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009087/0.3164, allocations: 0.5572 MB / 0.5543 GB, free: 6.992 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001543/0.3179, allocations: 0.819 MB / 0.5551 GB, free: 6.523 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001483/0.3194, allocations: 0.9984 MB / 0.556 GB, free: 5.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002639/0.3197, allocations: 160 kB / 0.5562 GB, free: 5.594 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001186/0.3209, allocations: 0.6476 MB / 0.5568 GB, free: 4.945 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000733/0.3216, allocations: 0.6625 MB / 0.5575 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007671/0.3224, allocations: 0.5721 MB / 0.558 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002421/0.3248, allocations: 2.06 MB / 0.56 GB, free: 1.641 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3248, allocations: 0 / 0.56 GB, free: 1.641 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3248, allocations: 0 / 0.56 GB, free: 1.641 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.918e-05/0.3248, allocations: 0 / 0.56 GB, free: 1.641 MB / 398.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.004751/0.3296, allocations: 1.864 MB / 0.5619 GB, free: 15.71 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.3296, allocations: 15.98 kB / 0.5619 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002344/0.3298, allocations: 164.4 kB / 0.562 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008847/0.3307, allocations: 200.1 kB / 0.5622 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002647/0.3334, allocations: 0.8995 MB / 0.5631 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001011/0.3344, allocations: 1.131 MB / 0.5642 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002761/0.3347, allocations: 103.9 kB / 0.5643 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004092/0.3388, allocations: 2.015 MB / 0.5663 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.003e-05/0.3388, allocations: 4 kB / 0.5663 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001306/0.3389, allocations: 32 kB / 0.5663 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00022/0.3391, allocations: 89.94 kB / 0.5664 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005176/0.3443, allocations: 2.244 MB / 0.5686 GB, free: 8.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0107/0.355, allocations: 5.296 MB / 0.5738 GB, free: 3.125 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004729/0.3597, allocations: 1.613 MB / 0.5753 GB, free: 1.496 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002563/0.3623, allocations: 1.066 MB / 0.5764 GB, free: 436 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.608e-05/0.3624, allocations: 13 kB / 0.5764 GB, free: 424 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003116/0.3655, allocations: 1.387 MB / 0.5777 GB, free: 15 MB / 430.1 MB Notification: Performance of pre-optimization done (n=123): time 3.576e-06/0.3655, allocations: 0 / 0.5777 GB, free: 15 MB / 430.1 MB Notification: Performance of matching and sorting (n=124): time 0.01469/0.3802, allocations: 5.561 MB / 0.5832 GB, free: 9.406 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.294e-05/0.3803, allocations: 102.1 kB / 0.5833 GB, free: 9.289 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007055/0.381, allocations: 0.5018 MB / 0.5838 GB, free: 8.777 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001337/0.3811, allocations: 57.69 kB / 0.5838 GB, free: 8.715 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003226/0.3814, allocations: 369.5 kB / 0.5842 GB, free: 8.348 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004225/0.3819, allocations: 436.3 kB / 0.5846 GB, free: 7.918 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000442/0.3823, allocations: 226.9 kB / 0.5848 GB, free: 7.688 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002132/0.3825, allocations: 390.8 kB / 0.5852 GB, free: 7.297 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/0.3847, allocations: 1.074 MB / 0.5862 GB, free: 6.219 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002334/0.3871, allocations: 1.221 MB / 0.5874 GB, free: 4.949 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004171/0.3912, allocations: 2.043 MB / 0.5894 GB, free: 2.867 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.3912, allocations: 3.938 kB / 0.5894 GB, free: 2.863 MB / 430.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01142/0.4026, allocations: 3.921 MB / 0.5932 GB, free: 14.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001033/0.4028, allocations: 72.36 kB / 0.5933 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.4028, allocations: 8.25 kB / 0.5933 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006148/0.4089, allocations: 2.069 MB / 0.5953 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009698/0.4099, allocations: 187.7 kB / 0.5955 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02755/0.4374, allocations: 11.11 MB / 0.6064 GB, free: 1.348 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.4388, allocations: 167.8 kB / 0.6065 GB, free: 1.184 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/0.439, allocations: 75.88 kB / 0.6066 GB, free: 1.109 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.0006705/0.4397, allocations: 373.4 kB / 0.607 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000226/0.4399, allocations: 87.48 kB / 0.607 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005888/0.4458, allocations: 2.342 MB / 0.6093 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.282e-05/0.4458, allocations: 31.91 kB / 0.6094 GB, free: 14.26 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.4458, allocations: 0 / 0.6094 GB, free: 14.26 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-05/0.4459, allocations: 23.89 kB / 0.6094 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008824/0.4547, allocations: 3.87 MB / 0.6132 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/0.4547, allocations: 4.25 kB / 0.6132 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0114/0.4661, allocations: 2.021 MB / 0.6151 GB, free: 8.266 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.659e-05/0.4661, allocations: 4 kB / 0.6151 GB, free: 8.262 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002471/0.4664, allocations: 39.95 kB / 0.6152 GB, free: 8.223 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.35e-05/0.4664, allocations: 15.92 kB / 0.6152 GB, free: 8.207 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.4664, allocations: 4 kB / 0.6152 GB, free: 8.203 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00906/0.4754, allocations: 3.867 MB / 0.619 GB, free: 4.289 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009378/0.4764, allocations: 271.2 kB / 0.6192 GB, free: 4.023 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002701/0.4766, allocations: 88.06 kB / 0.6193 GB, free: 3.938 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/0.4781, allocations: 187.7 kB / 0.6195 GB, free: 3.754 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004508/0.4785, allocations: 200.6 kB / 0.6197 GB, free: 3.555 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/0.4786, allocations: 39.97 kB / 0.6197 GB, free: 3.516 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000465/0.4791, allocations: 342.8 kB / 0.6201 GB, free: 3.18 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4791, allocations: 0 / 0.6201 GB, free: 3.18 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001105/0.4802, allocations: 359.9 kB / 0.6204 GB, free: 2.828 MB / 462.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.00952/0.4897, allocations: 4.525 MB / 0.6248 GB, free: 14.25 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007093/0.4968, allocations: 2.847 MB / 0.6276 GB, free: 11.37 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.4968, allocations: 256 / 0.6276 GB, free: 11.37 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006507/0.5033, allocations: 1.86 MB / 0.6294 GB, free: 9.504 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.5045, allocations: 176.9 kB / 0.6296 GB, free: 9.336 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03866/0.5431, allocations: 15.84 MB / 0.645 GB, free: 9.203 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007188/0.5438, allocations: 0.5413 MB / 0.6456 GB, free: 8.633 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001075/0.5449, allocations: 314.8 kB / 0.6459 GB, free: 8.32 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007283/0.5456, allocations: 343.3 kB / 0.6462 GB, free: 7.984 MB / 494.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5456, allocations: 4 kB / 0.6462 GB, free: 7.98 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07549/0.6211, allocations: 32.78 MB / 0.6782 GB, free: 7.426 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14.17, allocations: 4 kB / 0.6782 GB, free: 7.422 MB / 0.5137 GB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0002 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: 18.520551027264446] Failed to read output from testmodel.py, exit status != 0: 14.307609039824456 14.334071402 14.004974937 Calling exit ...