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.002077/0.002077, allocations: 112.5 kB / 21.22 MB, free: 0.75 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.002312/0.002312, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.498/1.498, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.185/0.185, allocations: 38.54 MB / 353.3 MB, free: 12.52 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="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.002049/0.002049, allocations: 59.91 kB / 493.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3396, allocations: 62.48 MB / 0.5428 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.009181/0.3488, allocations: 6.685 MB / 0.5493 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005144/0.3539, allocations: 2.518 MB / 0.5518 GB, free: 9.199 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006293/0.3546, allocations: 37.22 kB / 0.5518 GB, free: 9.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.356, allocations: 447 kB / 0.5522 GB, free: 8.832 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00177/0.3577, allocations: 0.5975 MB / 0.5528 GB, free: 8.375 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.3593, allocations: 0.4935 MB / 0.5533 GB, free: 7.992 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002889/0.3622, allocations: 1.968 MB / 0.5552 GB, free: 6.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001078/0.3633, allocations: 0.5682 MB / 0.5558 GB, free: 6.449 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001919/0.3652, allocations: 0.8149 MB / 0.5566 GB, free: 5.984 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002187/0.3674, allocations: 1.024 MB / 0.5576 GB, free: 5.328 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000411/0.3678, allocations: 160 kB / 0.5577 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001488/0.3693, allocations: 0.6904 MB / 0.5584 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007937/0.3701, allocations: 0.6664 MB / 0.559 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001035/0.3711, allocations: 0.6653 MB / 0.5597 GB, free: 3.145 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003764/0.3749, allocations: 2.048 MB / 0.5617 GB, free: 1.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3749, allocations: 0 / 0.5617 GB, free: 1.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3749, allocations: 0 / 0.5617 GB, free: 1.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.801e-05/0.375, allocations: 0 / 0.5617 GB, free: 1.09 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.006338/0.3813, allocations: 1.866 MB / 0.5635 GB, free: 15.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.3814, allocations: 19.98 kB / 0.5635 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.931e-05/0.3814, allocations: 22.19 kB / 0.5635 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002426/0.3817, allocations: 164.4 kB / 0.5637 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001005/0.3827, allocations: 200.1 kB / 0.5639 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002474/0.3851, allocations: 0.8995 MB / 0.5648 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001115/0.3862, allocations: 1.124 MB / 0.5659 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003752/0.3866, allocations: 103.9 kB / 0.566 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004594/0.3912, allocations: 2.019 MB / 0.5679 GB, free: 10.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.091e-05/0.3913, allocations: 0 / 0.5679 GB, free: 10.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001468/0.3914, allocations: 35.98 kB / 0.568 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002417/0.3916, allocations: 89.94 kB / 0.5681 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005394/0.397, allocations: 2.244 MB / 0.5703 GB, free: 7.945 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01069/0.4077, allocations: 5.62 MB / 0.5757 GB, free: 2.227 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004954/0.4127, allocations: 1.616 MB / 0.5773 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002903/0.4156, allocations: 1.066 MB / 0.5784 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.999e-05/0.4157, allocations: 17 kB / 0.5784 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00334/0.419, allocations: 1.383 MB / 0.5797 GB, free: 14.1 MB / 430.1 MB Notification: Performance of pre-optimization done (n=123): time 3.497e-06/0.419, allocations: 0 / 0.5797 GB, free: 14.1 MB / 430.1 MB Notification: Performance of matching and sorting (n=124): time 0.01868/0.4377, allocations: 5.568 MB / 0.5852 GB, free: 8.492 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/0.4378, allocations: 106.1 kB / 0.5853 GB, free: 8.371 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.4388, allocations: 0.4902 MB / 0.5857 GB, free: 7.871 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002773/0.4391, allocations: 61.69 kB / 0.5858 GB, free: 7.805 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004728/0.4396, allocations: 369.5 kB / 0.5862 GB, free: 7.438 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006654/0.4403, allocations: 440.3 kB / 0.5866 GB, free: 7.004 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006924/0.441, allocations: 222.9 kB / 0.5868 GB, free: 6.777 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000288/0.4412, allocations: 398.8 kB / 0.5872 GB, free: 6.379 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00361/0.4449, allocations: 1.029 MB / 0.5882 GB, free: 5.352 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003232/0.4481, allocations: 1.18 MB / 0.5893 GB, free: 4.129 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004623/0.4527, allocations: 2.039 MB / 0.5913 GB, free: 2.051 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.4527, allocations: 4 kB / 0.5913 GB, free: 2.047 MB / 430.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01232/0.465, allocations: 3.872 MB / 0.5951 GB, free: 14.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001564/0.4652, allocations: 61.67 kB / 0.5952 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.464e-05/0.4652, allocations: 4 kB / 0.5952 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006499/0.4717, allocations: 2.077 MB / 0.5972 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.4728, allocations: 187.7 kB / 0.5974 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02797/0.5008, allocations: 11.22 MB / 0.6083 GB, free: 484 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.5022, allocations: 163.8 kB / 0.6085 GB, free: 320 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003127/0.5025, allocations: 83.81 kB / 0.6086 GB, free: 236 kB / 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.000933/0.5035, allocations: 377.5 kB / 0.6089 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004118/0.5039, allocations: 83.48 kB / 0.609 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006429/0.5103, allocations: 2.357 MB / 0.6113 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.166e-05/0.5104, allocations: 31.98 kB / 0.6113 GB, free: 13.37 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.5104, allocations: 0 / 0.6113 GB, free: 13.37 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.5104, allocations: 3.984 kB / 0.6113 GB, free: 13.36 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009414/0.5198, allocations: 4.073 MB / 0.6153 GB, free: 9.219 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.5198, allocations: 8.031 kB / 0.6153 GB, free: 9.211 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01151/0.5313, allocations: 2.021 MB / 0.6173 GB, free: 7.188 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.383e-05/0.5314, allocations: 7.938 kB / 0.6173 GB, free: 7.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004367/0.5318, allocations: 35.95 kB / 0.6173 GB, free: 7.145 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.875e-05/0.5318, allocations: 11.94 kB / 0.6174 GB, free: 7.133 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.5318, allocations: 0 / 0.6174 GB, free: 7.133 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01011/0.5419, allocations: 3.867 MB / 0.6211 GB, free: 3.223 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/0.5431, allocations: 271.2 kB / 0.6214 GB, free: 2.957 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005131/0.5436, allocations: 91.92 kB / 0.6215 GB, free: 2.867 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00179/0.5454, allocations: 183.7 kB / 0.6217 GB, free: 2.688 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000549/0.5459, allocations: 188.6 kB / 0.6218 GB, free: 2.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001868/0.5461, allocations: 47.97 kB / 0.6219 GB, free: 2.453 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005497/0.5467, allocations: 346.9 kB / 0.6222 GB, free: 2.113 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5467, allocations: 3.938 kB / 0.6222 GB, free: 2.109 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001652/0.5483, allocations: 355.9 kB / 0.6226 GB, free: 1.762 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.01026/0.5586, allocations: 4.525 MB / 0.627 GB, free: 13.18 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007205/0.5658, allocations: 2.806 MB / 0.6297 GB, free: 10.34 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.5658, allocations: 0 / 0.6297 GB, free: 10.34 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006668/0.5725, allocations: 1.86 MB / 0.6315 GB, free: 8.484 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.5738, allocations: 188 kB / 0.6317 GB, free: 8.312 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04138/0.6152, allocations: 15.66 MB / 0.647 GB, free: 8.383 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001269/0.6165, allocations: 1.152 MB / 0.6481 GB, free: 7.203 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001882/0.6184, allocations: 310.8 kB / 0.6484 GB, free: 6.895 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/0.6196, allocations: 343.3 kB / 0.6487 GB, free: 6.559 MB / 494.1 MB Notification: Performance of SimCode: time 1.693e-06/0.6196, allocations: 0 / 0.6487 GB, free: 6.559 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08887/0.7085, allocations: 34.18 MB / 0.6821 GB, free: 4.578 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.46/15.17, allocations: 0 / 0.6821 GB, free: 4.578 MB / 0.5137 GB " [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: 18.161089428002015] Failed to read output from testmodel.py, exit status != 0: 15.362467182974797 15.391953676 15.011377462 Calling exit ...