Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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.Inverters.Chopper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterDCin.i|meterDCin.p|meterDCin.v|meterDCout.i|meterDCout.p|meterDCout.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterDCin.i|meterDCin.p|meterDCin.v|meterDCout.i|meterDCout.p|meterDCout.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 107.1 kB / 16.62 MB, free: 6.812 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.001843/0.001843, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.356/1.356, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1761/0.1761, allocations: 38.03 MB / 329.4 MB, free: 9.062 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 61.94 kB / 398.3 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1046, allocations: 58.06 MB / 456.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.008885/0.1135, allocations: 7.202 MB / 463.6 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003157/0.1167, allocations: 1.92 MB / 465.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003963/0.1171, allocations: 31.81 kB / 465.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006332/0.1178, allocations: 206.8 kB / 465.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006613/0.1185, allocations: 338.3 kB / 466 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000395/0.1189, allocations: 207.8 kB / 466.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.1199, allocations: 1.075 MB / 467.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005676/0.1204, allocations: 0.51 MB / 467.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006427/0.1211, allocations: 474.2 kB / 468.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005832/0.1217, allocations: 0.4944 MB / 468.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.1218, allocations: 84 kB / 468.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.1219, allocations: 88 kB / 469 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002857/0.1222, allocations: 279.3 kB / 469.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003318/0.1226, allocations: 406.3 kB / 469.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000818/0.1234, allocations: 1.032 MB / 470.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1234, allocations: 3.938 kB / 470.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1234, allocations: 0 / 470.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1234, allocations: 4 kB / 470.7 MB, free: 10.05 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.001849/0.1253, allocations: 1.009 MB / 471.7 MB, free: 8.984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1253, allocations: 15.89 kB / 471.7 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000129/0.1255, allocations: 72.09 kB / 471.8 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001037/0.1265, allocations: 0.6252 MB / 472.4 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.1267, allocations: 113.2 kB / 472.5 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.791e-05/0.1268, allocations: 67.92 kB / 472.6 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.128, allocations: 0.7499 MB / 473.3 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.128, allocations: 0 / 473.3 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.635e-05/0.1281, allocations: 27.94 kB / 473.3 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.1281, allocations: 12 kB / 473.3 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00117/0.1293, allocations: 0.6089 MB / 474 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003177/0.1325, allocations: 2.464 MB / 476.4 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009085/0.1334, allocations: 417 kB / 476.8 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004261/0.1338, allocations: 205.1 kB / 477 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.045e-05/0.1339, allocations: 8.219 kB / 477 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004627/0.1344, allocations: 243.4 kB / 477.3 MB, free: 3.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.284e-06/0.1344, allocations: 0 / 477.3 MB, free: 3.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.002981/0.1374, allocations: 0.8784 MB / 478.2 MB, free: 2.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/0.1374, allocations: 140.5 kB / 478.3 MB, free: 2.062 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003839/0.1378, allocations: 401.8 kB / 478.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.1379, allocations: 37.7 kB / 478.7 MB, free: 1.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001984/0.1381, allocations: 316.1 kB / 479 MB, free: 1.305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.73e-05/0.1382, allocations: 122.3 kB / 479.1 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.1383, allocations: 74.12 kB / 479.2 MB, free: 1.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.1385, allocations: 354.8 kB / 479.6 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002798/0.1388, allocations: 136.7 kB / 479.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003422/0.1391, allocations: 246 kB / 479.9 MB, free: 332 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/0.1406, allocations: 0.6749 MB / 480.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1407, allocations: 0 / 480.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.000976/0.1416, allocations: 0.5133 MB / 481.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.1417, allocations: 8 kB / 481.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.1417, allocations: 4 kB / 481.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004532/0.1422, allocations: 160.8 kB / 481.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002747/0.1424, allocations: 75.91 kB / 481.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003545/0.146, allocations: 2.258 MB / 483.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003164/0.1463, allocations: 51.52 kB / 483.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.979e-05/0.1464, allocations: 19.98 kB / 483.7 MB, free: 12.37 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t1,$PRE.chopper.modulator.t0,chopper.chopper.diode.on,chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.gate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003107/0.1467, allocations: 255.4 kB / 483.9 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.908e-05/0.1467, allocations: 47.53 kB / 484 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001188/0.1479, allocations: 474.7 kB / 484.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.148, allocations: 7.938 kB / 484.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.148, allocations: 4 kB / 484.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.148, allocations: 3.984 kB / 484.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008099/0.1488, allocations: 0.6746 MB / 485.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.1488, allocations: 3.938 kB / 485.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002467/0.1491, allocations: 44.02 kB / 485.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003873/0.1495, allocations: 148.8 kB / 485.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.1495, allocations: 15.92 kB / 485.4 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003074/0.1526, allocations: 2.248 MB / 487.6 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1526, allocations: 0 / 487.6 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001496/0.1541, allocations: 0.6921 MB / 488.3 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001467/0.1543, allocations: 152.4 kB / 488.4 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.99e-05/0.1543, allocations: 11.98 kB / 488.5 MB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002278/0.1546, allocations: 19.92 kB / 488.5 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.1547, allocations: 35.95 kB / 488.5 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/0.1547, allocations: 8 kB / 488.5 MB, free: 7.277 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002948/0.155, allocations: 283.1 kB / 488.8 MB, free: 7 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.155, allocations: 4 kB / 488.8 MB, free: 6.996 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000571/0.1556, allocations: 159.5 kB / 489 MB, free: 6.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001274/0.1557, allocations: 111.3 kB / 489.1 MB, free: 6.719 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.1568, allocations: 0.5411 MB / 489.6 MB, free: 6.164 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1568, allocations: 0 / 489.6 MB, free: 6.164 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005326/0.1574, allocations: 331.2 kB / 489.9 MB, free: 5.828 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006566/0.158, allocations: 163 kB / 490.1 MB, free: 5.672 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002163/0.1602, allocations: 1.498 MB / 491.6 MB, free: 4.145 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004881/0.1607, allocations: 0.9289 MB / 492.5 MB, free: 3.188 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002878/0.161, allocations: 88.62 kB / 492.6 MB, free: 3.098 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.883e-05/0.1611, allocations: 39.44 kB / 492.6 MB, free: 3.059 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1611, allocations: 0 / 492.6 MB, free: 3.059 MB / 366.1 MB Notification: Performance of Templates: time 0.0128/0.1739, allocations: 8.022 MB / 0.4889 GB, free: 11.14 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches