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.001263/0.001263, 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.001602/0.001602, allocations: 209.7 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.58/1.58, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.1883/0.1883, allocations: 38.55 MB / 352.5 MB, free: 12.3 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.002147/0.002147, allocations: 72.12 kB / 492.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3594, allocations: 62.46 MB / 0.542 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.009866/0.3693, allocations: 6.199 MB / 0.548 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003688/0.373, allocations: 1.285 MB / 0.5493 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007114/0.3737, allocations: 35.41 kB / 0.5493 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005195/0.3742, allocations: 133.9 kB / 0.5494 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001416/0.3756, allocations: 430.2 kB / 0.5498 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006843/0.3763, allocations: 235.2 kB / 0.5501 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001651/0.3779, allocations: 1.119 MB / 0.5511 GB, free: 9.207 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005573/0.3785, allocations: 248.5 kB / 0.5514 GB, free: 9.062 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001656/0.3802, allocations: 0.5341 MB / 0.5519 GB, free: 8.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001381/0.3815, allocations: 0.5386 MB / 0.5524 GB, free: 8.441 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001702/0.3817, allocations: 63.88 kB / 0.5525 GB, free: 8.441 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002396/0.382, allocations: 65.09 kB / 0.5526 GB, free: 8.441 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005451/0.3825, allocations: 339.4 kB / 0.5529 GB, free: 8.227 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006009/0.3831, allocations: 332.4 kB / 0.5532 GB, free: 8.031 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00136/0.3845, allocations: 0.9337 MB / 0.5541 GB, free: 7.391 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3845, allocations: 0 / 0.5541 GB, free: 7.391 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.3845, allocations: 1.156 kB / 0.5541 GB, free: 7.391 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.944e-05/0.3845, allocations: 0 / 0.5541 GB, free: 7.391 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.002462/0.3869, allocations: 1.095 MB / 0.5552 GB, free: 6.551 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.062e-05/0.387, allocations: 13.02 kB / 0.5552 GB, free: 6.547 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001689/0.3872, allocations: 118.2 kB / 0.5553 GB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002225/0.3874, allocations: 88.27 kB / 0.5554 GB, free: 6.402 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001293/0.3887, allocations: 0.5457 MB / 0.5559 GB, free: 5.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002033/0.3889, allocations: 219.5 kB / 0.5561 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.389, allocations: 64 kB / 0.5562 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/0.3908, allocations: 0.8653 MB / 0.557 GB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.3908, allocations: 0 / 0.557 GB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.206e-05/0.3909, allocations: 23.98 kB / 0.5571 GB, free: 4.598 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000136/0.391, allocations: 49.28 kB / 0.5571 GB, free: 4.551 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.3923, allocations: 0.6139 MB / 0.5577 GB, free: 3.934 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004239/0.3966, allocations: 2.548 MB / 0.5602 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001723/0.3983, allocations: 0.5657 MB / 0.5607 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007725/0.3991, allocations: 304.3 kB / 0.561 GB, free: 420 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.3991, allocations: 4.328 kB / 0.561 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007552/0.3999, allocations: 346.8 kB / 0.5614 GB, free: 48 kB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.405e-06/0.3999, allocations: 0 / 0.5614 GB, free: 48 kB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004469/0.4043, allocations: 1.692 MB / 0.563 GB, free: 14.31 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.4044, allocations: 110.8 kB / 0.5631 GB, free: 14.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007009/0.4051, allocations: 0.5144 MB / 0.5636 GB, free: 13.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.678e-05/0.4052, allocations: 37.7 kB / 0.5637 GB, free: 13.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003334/0.4055, allocations: 376.6 kB / 0.564 GB, free: 13.24 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.4057, allocations: 154.8 kB / 0.5642 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.4059, allocations: 114.3 kB / 0.5643 GB, free: 12.97 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.406, allocations: 366.8 kB / 0.5646 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004108/0.4065, allocations: 258.9 kB / 0.5649 GB, free: 12.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005347/0.407, allocations: 428.2 kB / 0.5653 GB, free: 11.85 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000873/0.4079, allocations: 0.6171 MB / 0.5659 GB, free: 11.15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4079, allocations: 0 / 0.5659 GB, free: 11.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001412/0.4093, allocations: 0.8439 MB / 0.5667 GB, free: 10.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.645e-05/0.4093, allocations: 53.62 kB / 0.5668 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.4094, allocations: 4.562 kB / 0.5668 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000322/0.4097, allocations: 97.59 kB / 0.5669 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004304/0.4101, allocations: 107.8 kB / 0.567 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002965/0.4131, allocations: 3.036 MB / 0.5699 GB, free: 6.746 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004412/0.4135, allocations: 35.92 kB / 0.57 GB, free: 6.711 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.218e-05/0.4136, allocations: 44.12 kB / 0.57 GB, free: 6.668 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.0004858/0.4141, allocations: 270.3 kB / 0.5703 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-05/0.4142, allocations: 63.62 kB / 0.5703 GB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/0.4159, allocations: 0.6249 MB / 0.5709 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.4159, allocations: 4 kB / 0.5709 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.4159, allocations: 4 kB / 0.5709 GB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.4159, allocations: 3.984 kB / 0.5709 GB, free: 5.684 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002717/0.4186, allocations: 1.374 MB / 0.5723 GB, free: 4.246 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.4186, allocations: 0 / 0.5723 GB, free: 4.246 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002987/0.4189, allocations: 63.89 kB / 0.5724 GB, free: 4.184 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002995/0.4192, allocations: 93.62 kB / 0.5724 GB, free: 4.086 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.265e-05/0.4192, allocations: 15.98 kB / 0.5725 GB, free: 4.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00285/0.4221, allocations: 3.036 MB / 0.5754 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.4221, allocations: 256 / 0.5754 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002248/0.4243, allocations: 1.005 MB / 0.5764 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003303/0.4247, allocations: 99.61 kB / 0.5765 GB, free: 15.67 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.4248, allocations: 27.98 kB / 0.5765 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004019/0.4252, allocations: 39.89 kB / 0.5766 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.4253, allocations: 31.88 kB / 0.5766 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.833e-05/0.4253, allocations: 19.98 kB / 0.5766 GB, free: 15.55 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005413/0.4259, allocations: 362.8 kB / 0.577 GB, free: 15.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4259, allocations: 0 / 0.577 GB, free: 15.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009717/0.4268, allocations: 148 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.003172/0.43, allocations: 1.564 MB / 0.5786 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002125/0.4321, allocations: 0.8883 MB / 0.5795 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.4321, allocations: 0 / 0.5795 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.4332, allocations: 489.3 kB / 0.58 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.4342, allocations: 152.4 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.009801/0.444, allocations: 6.091 MB / 0.5861 GB, free: 5.488 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004874/0.4445, allocations: 378.3 kB / 0.5864 GB, free: 5.094 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004009/0.4449, allocations: 101 kB / 0.5865 GB, free: 4.996 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003478/0.4452, allocations: 231.3 kB / 0.5867 GB, free: 4.77 MB / 430.1 MB Notification: Performance of SimCode: time 2.875e-06/0.4453, allocations: 0 / 0.5867 GB, free: 4.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06927/0.5145, allocations: 14.41 MB / 0.6008 GB, free: 6.594 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.54, allocations: 14.91 kB / 0.6008 GB, free: 6.582 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 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.490129987709224] Failed to read output from testmodel.py, exit status != 0: 12.661596518941224 12.679200032 12.291198837 Calling exit ...