Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.001635/0.001635, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001638/0.001638, allocations: 212.3 kB / 23.73 MB, free: 4.16 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.527/1.527, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.1855/0.1855, allocations: 38.54 MB / 352.5 MB, free: 12.33 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.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",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.002256/0.002256, allocations: 67.89 kB / 492.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.3509, allocations: 62.46 MB / 0.5419 GB, free: 272 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.008507/0.3594, allocations: 6.198 MB / 0.548 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002737/0.3621, allocations: 1.289 MB / 0.5493 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000342/0.3625, allocations: 35.44 kB / 0.5493 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003847/0.3628, allocations: 130.7 kB / 0.5494 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001103/0.3639, allocations: 433.9 kB / 0.5498 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005196/0.3645, allocations: 238.6 kB / 0.5501 GB, free: 9.863 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001322/0.3658, allocations: 1.12 MB / 0.5511 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000424/0.3662, allocations: 251.2 kB / 0.5514 GB, free: 9.086 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009864/0.3672, allocations: 0.5267 MB / 0.5519 GB, free: 8.781 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008824/0.3681, allocations: 0.5418 MB / 0.5524 GB, free: 8.469 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001161/0.3682, allocations: 65 kB / 0.5525 GB, free: 8.469 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001553/0.3683, allocations: 64.66 kB / 0.5526 GB, free: 8.469 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003611/0.3687, allocations: 342.5 kB / 0.5529 GB, free: 8.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003859/0.3691, allocations: 332.5 kB / 0.5532 GB, free: 8.055 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001067/0.3702, allocations: 0.9225 MB / 0.5541 GB, free: 7.426 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3702, allocations: 4.969 kB / 0.5541 GB, free: 7.422 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3702, allocations: 0 / 0.5541 GB, free: 7.422 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.3702, allocations: 0 / 0.5541 GB, free: 7.422 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002271/0.3724, allocations: 1.1 MB / 0.5552 GB, free: 6.578 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.3725, allocations: 13.36 kB / 0.5552 GB, free: 6.574 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000155/0.3727, allocations: 119.2 kB / 0.5553 GB, free: 6.473 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.3728, allocations: 90.27 kB / 0.5554 GB, free: 6.422 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00125/0.3741, allocations: 0.5362 MB / 0.5559 GB, free: 5.859 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002159/0.3743, allocations: 223.5 kB / 0.5561 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.3744, allocations: 64 kB / 0.5562 GB, free: 5.539 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.3761, allocations: 0.8575 MB / 0.557 GB, free: 4.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.3761, allocations: 3.938 kB / 0.557 GB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.526e-05/0.3762, allocations: 31.98 kB / 0.5571 GB, free: 4.605 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001343/0.3763, allocations: 45.28 kB / 0.5571 GB, free: 4.562 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.3776, allocations: 0.614 MB / 0.5577 GB, free: 3.945 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004254/0.3819, allocations: 2.548 MB / 0.5602 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.3835, allocations: 0.5724 MB / 0.5608 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007295/0.3842, allocations: 294.2 kB / 0.561 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.58e-05/0.3842, allocations: 4.328 kB / 0.561 GB, free: 432 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007694/0.385, allocations: 354.7 kB / 0.5614 GB, free: 56 kB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.405e-06/0.385, allocations: 0 / 0.5614 GB, free: 56 kB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004498/0.3895, allocations: 1.688 MB / 0.563 GB, free: 14.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.769e-05/0.3896, allocations: 118.8 kB / 0.5631 GB, free: 14.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007173/0.3903, allocations: 0.5105 MB / 0.5636 GB, free: 13.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.57e-05/0.3904, allocations: 41.7 kB / 0.5637 GB, free: 13.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000338/0.3907, allocations: 372.5 kB / 0.564 GB, free: 13.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/0.3909, allocations: 146.8 kB / 0.5642 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000201/0.3911, allocations: 122.3 kB / 0.5643 GB, free: 12.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002462/0.3913, allocations: 370.8 kB / 0.5646 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004279/0.3917, allocations: 262.8 kB / 0.5649 GB, free: 12.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005423/0.3923, allocations: 420.3 kB / 0.5653 GB, free: 11.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008745/0.3932, allocations: 0.6171 MB / 0.5659 GB, free: 11.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3932, allocations: 0 / 0.5659 GB, free: 11.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001382/0.3945, allocations: 0.8479 MB / 0.5667 GB, free: 10.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.964e-05/0.3946, allocations: 45.69 kB / 0.5668 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.3946, allocations: 8 kB / 0.5668 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003151/0.3949, allocations: 90.12 kB / 0.5669 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004181/0.3954, allocations: 107.8 kB / 0.567 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00304/0.3984, allocations: 3.04 MB / 0.5699 GB, free: 6.758 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000425/0.3988, allocations: 39.92 kB / 0.57 GB, free: 6.719 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.574e-05/0.3989, allocations: 39.92 kB / 0.57 GB, free: 6.68 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004782/0.3994, allocations: 274.4 kB / 0.5703 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.762e-05/0.3995, allocations: 59.62 kB / 0.5703 GB, free: 6.344 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001509/0.401, allocations: 0.6289 MB / 0.5709 GB, free: 5.703 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.401, allocations: 4 kB / 0.5709 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.401, allocations: 3.938 kB / 0.5709 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.401, allocations: 7.984 kB / 0.571 GB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002629/0.4036, allocations: 1.37 MB / 0.5723 GB, free: 4.254 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.4036, allocations: 8.062 kB / 0.5723 GB, free: 4.246 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002742/0.4039, allocations: 59.91 kB / 0.5724 GB, free: 4.188 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002798/0.4042, allocations: 93.61 kB / 0.5724 GB, free: 4.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.167e-05/0.4042, allocations: 19.98 kB / 0.5725 GB, free: 4.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002819/0.4071, allocations: 3.032 MB / 0.5754 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.4071, allocations: 0 / 0.5754 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00219/0.4093, allocations: 1.001 MB / 0.5764 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003127/0.4096, allocations: 95.61 kB / 0.5765 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.4097, allocations: 31.98 kB / 0.5765 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003859/0.4101, allocations: 35.95 kB / 0.5766 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.08e-05/0.4101, allocations: 39.81 kB / 0.5766 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-05/0.4102, allocations: 23.92 kB / 0.5766 GB, free: 15.55 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000454/0.4106, allocations: 354.8 kB / 0.577 GB, free: 15.21 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4106, allocations: 0 / 0.577 GB, free: 15.21 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007592/0.4114, allocations: 156 kB / 0.5771 GB, free: 15.05 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002526/0.4139, allocations: 1.555 MB / 0.5786 GB, free: 13.46 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.4156, allocations: 0.8881 MB / 0.5795 GB, free: 12.53 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.4156, allocations: 4.188 kB / 0.5795 GB, free: 12.53 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009227/0.4165, allocations: 485.4 kB / 0.58 GB, free: 12.03 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008828/0.4174, allocations: 156.2 kB / 0.5801 GB, free: 11.88 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009165/0.4266, allocations: 6.083 MB / 0.5861 GB, free: 5.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005697/0.4272, allocations: 378.3 kB / 0.5864 GB, free: 5.105 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004369/0.4276, allocations: 101 kB / 0.5865 GB, free: 5.008 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003571/0.428, allocations: 227.3 kB / 0.5867 GB, free: 4.785 MB / 430.1 MB Notification: Performance of SimCode: time 1.483e-06/0.428, allocations: 0 / 0.5867 GB, free: 4.785 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05605/0.484, allocations: 14.43 MB / 0.6008 GB, free: 6.602 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.42, allocations: 6.438 kB / 0.6008 GB, free: 6.598 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.566394657827914] Failed to read output from testmodel.py, exit status != 0: 12.542626373004168 12.562524067 12.188805054 Calling exit ...