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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007027/0.0007028, allocations: 92.75 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007963/0.0007964, allocations: 184.2 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.17/1.17, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1559/0.1559, allocations: 38.09 MB / 330.8 MB, free: 8.516 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002641/0.0002641, allocations: 8 kB / 400.7 MB, free: 34.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.08746, allocations: 59.17 MB / 459.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.0072/0.0947, allocations: 7.504 MB / 467.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002921/0.09766, allocations: 1.745 MB / 469.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006957/0.09838, allocations: 55.62 kB / 469.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002924/0.09868, allocations: 99.23 kB / 469.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008807/0.09958, allocations: 394.3 kB / 469.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004325/0.1, allocations: 207.7 kB / 469.9 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001399/0.1014, allocations: 1.636 MB / 471.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004148/0.1019, allocations: 332.2 kB / 471.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004987/0.1024, allocations: 402.1 kB / 472.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006257/0.103, allocations: 0.5099 MB / 472.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.466e-05/0.1031, allocations: 31.98 kB / 472.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.128e-05/0.1032, allocations: 32 kB / 472.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002719/0.1035, allocations: 291.2 kB / 473.1 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003159/0.1038, allocations: 383.8 kB / 473.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007302/0.1045, allocations: 0.8601 MB / 474.3 MB, free: 8.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1045, allocations: 4 kB / 474.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1045, allocations: 3.938 kB / 474.3 MB, free: 8.531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.1045, allocations: 0 / 474.3 MB, free: 8.531 MB / 350.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.001616/0.1062, allocations: 1.008 MB / 475.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.1062, allocations: 8.031 kB / 475.4 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.1064, allocations: 87.91 kB / 475.4 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007258/0.1071, allocations: 0.565 MB / 476 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.1072, allocations: 124.8 kB / 476.1 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.1073, allocations: 60 kB / 476.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.1088, allocations: 0.8847 MB / 477.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.1088, allocations: 0 / 477.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.746e-05/0.1088, allocations: 24 kB / 477.1 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001015/0.109, allocations: 45.28 kB / 477.1 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.1101, allocations: 0.6295 MB / 477.8 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003294/0.1134, allocations: 2.774 MB / 480.5 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.115, allocations: 0.9256 MB / 481.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006929/0.1157, allocations: 326.2 kB / 481.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.1158, allocations: 4.328 kB / 481.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006659/0.1165, allocations: 370.9 kB / 482.1 MB, free: 348 kB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.513e-06/0.1165, allocations: 4 kB / 482.2 MB, free: 344 kB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.00393/0.1204, allocations: 2.037 MB / 484.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.1205, allocations: 114.8 kB / 484.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005412/0.121, allocations: 0.5144 MB / 484.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.163e-05/0.1211, allocations: 33.7 kB / 484.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002239/0.1213, allocations: 359.7 kB / 485.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.1214, allocations: 146 kB / 485.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.501e-05/0.1215, allocations: 57.69 kB / 485.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1216, allocations: 370.8 kB / 485.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003115/0.1219, allocations: 221.1 kB / 486 MB, free: 12.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004044/0.1224, allocations: 394.2 kB / 486.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007044/0.1231, allocations: 0.6211 MB / 487 MB, free: 11.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1231, allocations: 0 / 487 MB, free: 11.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001149/0.1242, allocations: 0.894 MB / 487.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.154e-05/0.1243, allocations: 49.69 kB / 487.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1243, allocations: 4 kB / 487.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002492/0.1246, allocations: 94 kB / 488 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003427/0.1249, allocations: 107.8 kB / 488.1 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002164/0.1271, allocations: 2.985 MB / 491.1 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002962/0.1274, allocations: 39.88 kB / 491.2 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.748e-05/0.1275, allocations: 39.98 kB / 491.2 MB, free: 6.641 MB / 366.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.0002858/0.1278, allocations: 277.6 kB / 491.5 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.443e-05/0.1278, allocations: 63.27 kB / 491.5 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.1293, allocations: 0.7238 MB / 492.2 MB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1293, allocations: 4 kB / 492.3 MB, free: 5.539 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1293, allocations: 4 kB / 492.3 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.1293, allocations: 3.984 kB / 492.3 MB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002251/0.1315, allocations: 1.563 MB / 493.8 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.1316, allocations: 0 / 493.8 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.1318, allocations: 59.84 kB / 493.9 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002415/0.1321, allocations: 101.6 kB / 494 MB, free: 3.715 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.251e-05/0.1321, allocations: 16.05 kB / 494 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002035/0.1342, allocations: 2.989 MB / 497 MB, free: 448 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1342, allocations: 0 / 497 MB, free: 448 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001921/0.1361, allocations: 1.102 MB / 498.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001759/0.1363, allocations: 176.2 kB / 498.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.392e-05/0.1364, allocations: 27.98 kB / 498.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003714/0.1368, allocations: 51.94 kB / 498.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.6e-05/0.1368, allocations: 35.83 kB / 498.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.913e-05/0.1369, allocations: 19.98 kB / 498.4 MB, free: 14.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003251/0.1372, allocations: 350.8 kB / 498.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1372, allocations: 0 / 498.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005434/0.1378, allocations: 152 kB / 498.9 MB, free: 14.47 MB / 382.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.0001376/0.1379, allocations: 127.2 kB / 499 MB, free: 14.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.1392, allocations: 0.9128 MB / 499.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.1392, allocations: 5.312 kB / 499.9 MB, free: 13.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008151/0.1401, allocations: 0.509 MB / 0.4887 GB, free: 12.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000776/0.1408, allocations: 145.5 kB / 0.4888 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.1431, allocations: 1.87 MB / 0.4907 GB, free: 10.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004709/0.1436, allocations: 0.9721 MB / 0.4916 GB, free: 9.801 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002859/0.1439, allocations: 109 kB / 0.4917 GB, free: 9.691 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.144, allocations: 43.42 kB / 0.4918 GB, free: 9.648 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.144, allocations: 0 / 0.4918 GB, free: 9.648 MB / 382.1 MB Notification: Performance of Templates: time 0.0108/0.1548, allocations: 7.023 MB / 0.4986 GB, free: 2.695 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile Environment - environmentSimulation: (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches