Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.001392/0.001392, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001478/0.001478, allocations: 209.2 kB / 23.73 MB, free: 4.387 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.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.1889/0.1889, allocations: 38.54 MB / 352.5 MB, free: 12.39 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.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",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.003713/0.003713, allocations: 66.41 kB / 492.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3552, allocations: 62.46 MB / 0.5419 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008917/0.3641, allocations: 6.269 MB / 0.5481 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003616/0.3678, allocations: 1.613 MB / 0.5496 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006563/0.3684, allocations: 36.47 kB / 0.5497 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006964/0.3691, allocations: 155.8 kB / 0.5498 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001394/0.3705, allocations: 448.7 kB / 0.5502 GB, free: 9.711 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008948/0.3714, allocations: 351.1 kB / 0.5506 GB, free: 9.43 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001922/0.3733, allocations: 1.517 MB / 0.5521 GB, free: 8.547 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004179/0.3737, allocations: 246.2 kB / 0.5523 GB, free: 8.402 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00119/0.3749, allocations: 0.6363 MB / 0.5529 GB, free: 8.035 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.376, allocations: 0.6599 MB / 0.5536 GB, free: 7.656 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001597/0.3761, allocations: 97.88 kB / 0.5537 GB, free: 7.656 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002121/0.3763, allocations: 99.28 kB / 0.5537 GB, free: 7.656 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004753/0.3768, allocations: 424.3 kB / 0.5542 GB, free: 7.375 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004872/0.3773, allocations: 395.5 kB / 0.5545 GB, free: 7.129 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001397/0.3787, allocations: 1.2 MB / 0.5557 GB, free: 6.121 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.3787, allocations: 8 kB / 0.5557 GB, free: 6.113 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3787, allocations: 0 / 0.5557 GB, free: 6.113 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.466e-05/0.3787, allocations: 0 / 0.5557 GB, free: 6.113 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002978/0.3817, allocations: 1.253 MB / 0.5569 GB, free: 4.816 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.3817, allocations: 15.98 kB / 0.557 GB, free: 4.801 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001804/0.3819, allocations: 118.6 kB / 0.5571 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002162/0.3821, allocations: 100.4 kB / 0.5572 GB, free: 4.578 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/0.3838, allocations: 0.6572 MB / 0.5578 GB, free: 3.891 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007337/0.3845, allocations: 0.752 MB / 0.5585 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.3846, allocations: 68 kB / 0.5586 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002466/0.3871, allocations: 1.145 MB / 0.5597 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.3871, allocations: 3.938 kB / 0.5597 GB, free: 1.738 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.788e-05/0.3872, allocations: 24 kB / 0.5597 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001278/0.3873, allocations: 41.28 kB / 0.5598 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002902/0.3902, allocations: 1.168 MB / 0.5609 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006154/0.3964, allocations: 3.25 MB / 0.5641 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002664/0.3991, allocations: 0.9243 MB / 0.565 GB, free: 12.22 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/0.4008, allocations: 0.6471 MB / 0.5656 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.984e-05/0.4009, allocations: 8.5 kB / 0.5656 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001672/0.4025, allocations: 0.6879 MB / 0.5663 GB, free: 10.85 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.434e-06/0.4025, allocations: 0 / 0.5663 GB, free: 10.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.02057/0.4231, allocations: 5.514 MB / 0.5717 GB, free: 5.289 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.662e-05/0.4232, allocations: 93.59 kB / 0.5718 GB, free: 5.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006382/0.4238, allocations: 473.8 kB / 0.5722 GB, free: 4.707 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001292/0.424, allocations: 41.7 kB / 0.5723 GB, free: 4.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003158/0.4243, allocations: 328.9 kB / 0.5726 GB, free: 4.332 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002286/0.4245, allocations: 218.2 kB / 0.5728 GB, free: 4.117 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002497/0.4248, allocations: 130.3 kB / 0.5729 GB, free: 3.984 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002164/0.425, allocations: 370.8 kB / 0.5733 GB, free: 3.613 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.4262, allocations: 0.5381 MB / 0.5738 GB, free: 3.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.4275, allocations: 0.6549 MB / 0.5744 GB, free: 2.367 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007593/0.4351, allocations: 3.083 MB / 0.5775 GB, free: 15.22 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.4351, allocations: 0 / 0.5775 GB, free: 15.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008222/0.4433, allocations: 2.526 MB / 0.5799 GB, free: 12.67 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.533e-05/0.4434, allocations: 53.69 kB / 0.58 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.4434, allocations: 4 kB / 0.58 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002662/0.4461, allocations: 1.082 MB / 0.581 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005624/0.4467, allocations: 111.8 kB / 0.5811 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01723/0.4639, allocations: 6.669 MB / 0.5877 GB, free: 4.625 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000887/0.4648, allocations: 87.95 kB / 0.5877 GB, free: 4.539 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.4649, allocations: 43.97 kB / 0.5878 GB, free: 4.496 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * 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 {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005655/0.4655, allocations: 279.4 kB / 0.588 GB, free: 4.215 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.4656, allocations: 63.58 kB / 0.5881 GB, free: 4.152 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008455/0.4741, allocations: 2.427 MB / 0.5905 GB, free: 1.715 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/0.4741, allocations: 12 kB / 0.5905 GB, free: 1.703 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.4741, allocations: 3.938 kB / 0.5905 GB, free: 1.699 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.468e-05/0.4741, allocations: 128 / 0.5905 GB, free: 1.699 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01066/0.4848, allocations: 3.382 MB / 0.5938 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/0.4848, allocations: 0 / 0.5938 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004504/0.4852, allocations: 75.89 kB / 0.5939 GB, free: 14.17 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002779/0.488, allocations: 1.092 MB / 0.5949 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/0.4881, allocations: 19.98 kB / 0.595 GB, free: 13.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01716/0.5053, allocations: 6.655 MB / 0.6015 GB, free: 6.281 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.5053, allocations: 7.938 kB / 0.6015 GB, free: 6.273 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01043/0.5157, allocations: 3.195 MB / 0.6046 GB, free: 3.043 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005682/0.5163, allocations: 147.5 kB / 0.6047 GB, free: 2.898 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.5164, allocations: 31.98 kB / 0.6048 GB, free: 2.867 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007851/0.5172, allocations: 99.86 kB / 0.6048 GB, free: 2.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004535/0.5177, allocations: 172.1 kB / 0.605 GB, free: 2.602 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.366e-05/0.5177, allocations: 19.98 kB / 0.605 GB, free: 2.582 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004384/0.5182, allocations: 322.9 kB / 0.6053 GB, free: 2.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5182, allocations: 0 / 0.6053 GB, free: 2.27 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009028/0.5191, allocations: 228 kB / 0.6056 GB, free: 2.047 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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 {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01079/0.5299, allocations: 3.773 MB / 0.6092 GB, free: 14.22 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00496/0.5348, allocations: 1.71 MB / 0.6109 GB, free: 12.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.5348, allocations: 8 kB / 0.6109 GB, free: 12.47 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003447/0.5383, allocations: 1.079 MB / 0.612 GB, free: 11.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.5393, allocations: 163.9 kB / 0.6121 GB, free: 11.22 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02504/0.5643, allocations: 9.994 MB / 0.6219 GB, free: 0.9766 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005027/0.5648, allocations: 399.4 kB / 0.6223 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004572/0.5653, allocations: 125.2 kB / 0.6224 GB, free: 452 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003556/0.5656, allocations: 235.4 kB / 0.6226 GB, free: 216 kB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5656, allocations: 7.938 kB / 0.6226 GB, free: 208 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06623/0.6319, allocations: 23.09 MB / 0.6452 GB, free: 9.316 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.25/13.88, allocations: 3.984 kB / 0.6452 GB, free: 9.312 MB / 494.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.773350081872195] Failed to read output from testmodel.py, exit status != 0: 14.013387529179454 14.027248244 13.645230029 Calling exit ...