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.001501/0.001501, allocations: 103.6 kB / 17.59 MB, free: 5.422 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.001826/0.001826, allocations: 191.3 kB / 18.52 MB, free: 4.508 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.318/1.318, allocations: 222.9 MB / 242.2 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2055/0.2055, allocations: 38.04 MB / 330.4 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.001441, allocations: 72.88 kB / 399.5 MB, free: 34.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09272/0.09418, allocations: 58.05 MB / 457.5 MB, free: 8.105 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007612/0.1018, allocations: 6.488 MB / 464 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00235/0.1042, allocations: 1.325 MB / 465.3 MB, free: 260 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004677/0.1047, allocations: 23.88 kB / 465.4 MB, free: 236 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003946/0.1051, allocations: 126.9 kB / 465.5 MB, free: 108 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001103/0.1063, allocations: 426 kB / 465.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005532/0.1068, allocations: 235.6 kB / 466.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001223/0.1081, allocations: 1.125 MB / 467.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005097/0.1086, allocations: 401.7 kB / 467.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007361/0.1093, allocations: 498.1 kB / 468.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008405/0.1102, allocations: 0.5217 MB / 468.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001354/0.1103, allocations: 68 kB / 468.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001753/0.1105, allocations: 64 kB / 468.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003115/0.1108, allocations: 323.2 kB / 469.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000386/0.1112, allocations: 406 kB / 469.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007608/0.112, allocations: 0.9031 MB / 470.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.112, allocations: 4 kB / 470.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.112, allocations: 4 kB / 470.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.112, allocations: 0 / 470.4 MB, free: 11.17 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.001997/0.114, allocations: 1.145 MB / 471.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.1141, allocations: 12.03 kB / 471.6 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001631/0.1143, allocations: 80 kB / 471.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009295/0.1152, allocations: 0.5766 MB / 472.2 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.1154, allocations: 116.8 kB / 472.3 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.1155, allocations: 64 kB / 472.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.117, allocations: 0.8614 MB / 473.3 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.117, allocations: 8 kB / 473.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.54e-05/0.1171, allocations: 24 kB / 473.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001124/0.1172, allocations: 41.22 kB / 473.3 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.1183, allocations: 0.6218 MB / 474 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003445/0.1218, allocations: 2.755 MB / 476.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001729/0.1235, allocations: 0.91 MB / 477.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007632/0.1243, allocations: 320.6 kB / 477.9 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.1243, allocations: 8.312 kB / 477.9 MB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007251/0.1251, allocations: 342.7 kB / 478.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 6.362e-06/0.1251, allocations: 0 / 478.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.004202/0.1293, allocations: 1.979 MB / 480.3 MB, free: 0.832 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.1294, allocations: 114.8 kB / 480.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005355/0.1299, allocations: 0.5105 MB / 480.9 MB, free: 176 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.169e-05/0.13, allocations: 33.7 kB / 480.9 MB, free: 136 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002502/0.1302, allocations: 363.7 kB / 481.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.1303, allocations: 142.1 kB / 481.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.1305, allocations: 118.1 kB / 481.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1307, allocations: 370.8 kB / 481.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003518/0.131, allocations: 225 kB / 482.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004295/0.1315, allocations: 390.2 kB / 482.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007463/0.1322, allocations: 0.6288 MB / 483.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.1322, allocations: 0 / 483.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00121/0.1334, allocations: 0.8982 MB / 484 MB, free: 12.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.084e-05/0.1335, allocations: 49.69 kB / 484.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.1335, allocations: 12 kB / 484.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002815/0.1338, allocations: 89.59 kB / 484.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003899/0.1342, allocations: 103.8 kB / 484.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002413/0.1366, allocations: 3.255 MB / 487.5 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003667/0.137, allocations: 31.97 kB / 487.6 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.299e-05/0.1371, allocations: 48.06 kB / 487.6 MB, free: 8.953 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.0003338/0.1374, allocations: 273.5 kB / 487.9 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.426e-05/0.1375, allocations: 55.25 kB / 487.9 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001507/0.139, allocations: 0.7004 MB / 488.6 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.1391, allocations: 7.984 kB / 488.6 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.1391, allocations: 0 / 488.6 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.1391, allocations: 11.94 kB / 488.6 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002377/0.1415, allocations: 1.535 MB / 490.2 MB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.1415, allocations: 0 / 490.2 MB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.1418, allocations: 63.97 kB / 490.2 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002838/0.1421, allocations: 109.5 kB / 490.3 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.841e-05/0.1421, allocations: 11.98 kB / 490.4 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002299/0.1444, allocations: 3.247 MB / 493.6 MB, free: 2.523 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.1445, allocations: 7.969 kB / 493.6 MB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.1465, allocations: 1.059 MB / 494.7 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002209/0.1467, allocations: 176.5 kB / 494.8 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.1468, allocations: 27.98 kB / 494.9 MB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004107/0.1473, allocations: 43.94 kB / 494.9 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.654e-05/0.1474, allocations: 39.89 kB / 495 MB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.09e-05/0.1474, allocations: 11.98 kB / 495 MB, free: 1.094 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003811/0.1478, allocations: 358.8 kB / 495.3 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1478, allocations: 4 kB / 495.3 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006663/0.1485, allocations: 144 kB / 495.5 MB, free: 0.6016 MB / 366.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.0001665/0.1486, allocations: 134 kB / 495.6 MB, free: 476 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.1503, allocations: 0.9642 MB / 496.6 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1503, allocations: 0 / 496.6 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009164/0.1513, allocations: 0.4944 MB / 497 MB, free: 14.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007924/0.1521, allocations: 154.3 kB / 497.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002562/0.1546, allocations: 1.565 MB / 498.8 MB, free: 13.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005146/0.1552, allocations: 0.9682 MB / 499.7 MB, free: 12.19 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.1553, allocations: 47.44 kB / 499.8 MB, free: 12.14 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1553, allocations: 0 / 499.8 MB, free: 12.14 MB / 382.1 MB Notification: Performance of Templates: time 0.01652/0.1718, allocations: 13.45 MB / 0.5012 GB, free: 14.72 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (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) 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) Reference file matches