Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001658/0.001658, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001421/0.001421, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.477/1.477, allocations: 230.6 MB / 257.5 MB, free: 7.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1869/0.1869, allocations: 38.53 MB / 352.5 MB, free: 12.53 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_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.002032/0.002032, allocations: 63.91 kB / 492.5 MB, free: 4.859 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3284, allocations: 62.47 MB / 0.542 GB, free: 436 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.008477/0.3369, allocations: 6.694 MB / 0.5485 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002663/0.3396, allocations: 1.352 MB / 0.5499 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003388/0.3399, allocations: 35.66 kB / 0.5499 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000367/0.3403, allocations: 132.8 kB / 0.55 GB, free: 9.953 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001042/0.3413, allocations: 434.5 kB / 0.5504 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005422/0.3418, allocations: 229.8 kB / 0.5507 GB, free: 9.422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001461/0.3433, allocations: 1.132 MB / 0.5518 GB, free: 8.781 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000433/0.3437, allocations: 259.3 kB / 0.552 GB, free: 8.625 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009485/0.3447, allocations: 0.523 MB / 0.5525 GB, free: 8.324 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008584/0.3455, allocations: 0.5648 MB / 0.5531 GB, free: 7.988 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000102/0.3456, allocations: 65.09 kB / 0.5531 GB, free: 7.988 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001348/0.3458, allocations: 65.47 kB / 0.5532 GB, free: 7.988 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003838/0.3462, allocations: 342.8 kB / 0.5535 GB, free: 7.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004526/0.3466, allocations: 399.6 kB / 0.5539 GB, free: 7.508 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001103/0.3477, allocations: 0.9185 MB / 0.5548 GB, free: 6.875 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3477, allocations: 3.938 kB / 0.5548 GB, free: 6.871 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3477, allocations: 4 kB / 0.5548 GB, free: 6.867 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.3477, allocations: 1.25 kB / 0.5548 GB, free: 6.867 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.002201/0.3499, allocations: 1.097 MB / 0.5559 GB, free: 6.027 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.35, allocations: 13.7 kB / 0.5559 GB, free: 6.023 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001791/0.3502, allocations: 110.3 kB / 0.556 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.3503, allocations: 87.89 kB / 0.5561 GB, free: 5.887 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.3515, allocations: 0.5355 MB / 0.5566 GB, free: 5.438 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/0.3517, allocations: 227.4 kB / 0.5568 GB, free: 5.176 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.3518, allocations: 71.97 kB / 0.5569 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.3534, allocations: 0.8613 MB / 0.5577 GB, free: 4.203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.3534, allocations: 4 kB / 0.5577 GB, free: 4.199 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.418e-05/0.3535, allocations: 24 kB / 0.5578 GB, free: 4.176 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001148/0.3536, allocations: 37.28 kB / 0.5578 GB, free: 4.141 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001274/0.3548, allocations: 0.6295 MB / 0.5584 GB, free: 3.508 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003998/0.3588, allocations: 2.692 MB / 0.561 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.3604, allocations: 0.5602 MB / 0.5616 GB, free: 148 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007262/0.3611, allocations: 298.3 kB / 0.5619 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.3611, allocations: 12.2 kB / 0.5619 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007163/0.3618, allocations: 346.8 kB / 0.5622 GB, free: 15.47 MB / 414.1 MB Notification: Performance of pre-optimization done (n=41): time 1.994e-06/0.3618, allocations: 0 / 0.5622 GB, free: 15.47 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.004155/0.366, allocations: 1.696 MB / 0.5639 GB, free: 13.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.689e-05/0.3661, allocations: 114.8 kB / 0.564 GB, free: 13.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006443/0.3667, allocations: 0.5067 MB / 0.5645 GB, free: 13.08 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.208e-05/0.3668, allocations: 41.69 kB / 0.5645 GB, free: 13.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003321/0.3671, allocations: 364.5 kB / 0.5649 GB, free: 12.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/0.3673, allocations: 154.8 kB / 0.565 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/0.3674, allocations: 118.3 kB / 0.5651 GB, free: 12.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.3676, allocations: 366.8 kB / 0.5655 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003645/0.368, allocations: 221.2 kB / 0.5657 GB, free: 11.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004966/0.3685, allocations: 398.5 kB / 0.5661 GB, free: 11.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008626/0.3694, allocations: 0.6249 MB / 0.5667 GB, free: 10.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3694, allocations: 0 / 0.5667 GB, free: 10.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001348/0.3707, allocations: 0.819 MB / 0.5675 GB, free: 9.816 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.653e-05/0.3708, allocations: 57.62 kB / 0.5675 GB, free: 9.754 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.3708, allocations: 4 kB / 0.5675 GB, free: 9.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000302/0.3711, allocations: 86 kB / 0.5676 GB, free: 9.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004026/0.3715, allocations: 107.8 kB / 0.5677 GB, free: 9.555 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002988/0.3745, allocations: 3.06 MB / 0.5707 GB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004188/0.3749, allocations: 35.92 kB / 0.5707 GB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.869e-05/0.375, allocations: 48.06 kB / 0.5708 GB, free: 6.184 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.0004059/0.3754, allocations: 262.2 kB / 0.571 GB, free: 5.918 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.595e-05/0.3755, allocations: 59.62 kB / 0.5711 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001472/0.3769, allocations: 0.6328 MB / 0.5717 GB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.483e-06/0.3769, allocations: 4 kB / 0.5717 GB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.3769, allocations: 4 kB / 0.5717 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.377, allocations: 7.984 kB / 0.5717 GB, free: 5.199 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002602/0.3796, allocations: 1.429 MB / 0.5731 GB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.3796, allocations: 4 kB / 0.5731 GB, free: 3.703 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002917/0.3799, allocations: 59.84 kB / 0.5732 GB, free: 3.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002881/0.3801, allocations: 97.67 kB / 0.5733 GB, free: 3.543 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.3802, allocations: 19.98 kB / 0.5733 GB, free: 3.523 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002744/0.3829, allocations: 3.04 MB / 0.5763 GB, free: 256 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.3829, allocations: 4.188 kB / 0.5763 GB, free: 252 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/0.385, allocations: 1.005 MB / 0.5772 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/0.3853, allocations: 103.6 kB / 0.5773 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.3854, allocations: 27.98 kB / 0.5774 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003959/0.3858, allocations: 39.94 kB / 0.5774 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.794e-05/0.3859, allocations: 31.89 kB / 0.5774 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.445e-05/0.3859, allocations: 15.98 kB / 0.5775 GB, free: 15 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000465/0.3864, allocations: 358.8 kB / 0.5778 GB, free: 14.65 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3864, allocations: 0 / 0.5778 GB, free: 14.65 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007555/0.3871, allocations: 152 kB / 0.5779 GB, free: 14.5 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.002479/0.3896, allocations: 1.549 MB / 0.5795 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001874/0.3915, allocations: 0.8579 MB / 0.5803 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.3915, allocations: 5.312 kB / 0.5803 GB, free: 12.01 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009655/0.3924, allocations: 485.5 kB / 0.5808 GB, free: 11.51 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008534/0.3933, allocations: 151.7 kB / 0.5809 GB, free: 11.37 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008785/0.4021, allocations: 5.952 MB / 0.5867 GB, free: 5.141 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006984/0.4028, allocations: 0.9721 MB / 0.5877 GB, free: 4.141 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003341/0.4031, allocations: 108.9 kB / 0.5878 GB, free: 4.035 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003131/0.4034, allocations: 227.4 kB / 0.588 GB, free: 3.812 MB / 430.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4034, allocations: 0 / 0.588 GB, free: 3.812 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05572/0.4591, allocations: 13.76 MB / 0.6014 GB, free: 6.246 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.6, allocations: 11.75 kB / 0.6014 GB, free: 6.238 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.528328303946182]