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.001326/0.001326, allocations: 101.6 kB / 17.59 MB, free: 5.426 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.001285/0.001285, 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.296/1.296, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1774/0.1774, allocations: 38.03 MB / 330.4 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 59.36 kB / 399.5 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0897/0.09102, allocations: 58.06 MB / 457.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.007582/0.09864, allocations: 6.581 MB / 464.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00285/0.1015, allocations: 1.752 MB / 465.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005181/0.1021, allocations: 23.88 kB / 465.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000761/0.1028, allocations: 230.4 kB / 466.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001018/0.1039, allocations: 377.8 kB / 466.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005423/0.1045, allocations: 231.7 kB / 466.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001183/0.1057, allocations: 1.075 MB / 467.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006383/0.1063, allocations: 0.5022 MB / 468.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007564/0.1071, allocations: 470.2 kB / 468.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008149/0.1079, allocations: 486.3 kB / 469.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001558/0.1081, allocations: 84 kB / 469.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002067/0.1083, allocations: 84 kB / 469.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003064/0.1086, allocations: 283.3 kB / 469.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004793/0.1091, allocations: 406.3 kB / 470.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008874/0.11, allocations: 1.032 MB / 471.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.11, allocations: 4 kB / 471.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.11, allocations: 0 / 471.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.1101, allocations: 0 / 471.1 MB, free: 10.43 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.00188/0.1119, allocations: 1.009 MB / 472.1 MB, free: 9.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.112, allocations: 11.89 kB / 472.1 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.1121, allocations: 72.09 kB / 472.2 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.1132, allocations: 0.633 MB / 472.8 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.1133, allocations: 109.3 kB / 472.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.666e-05/0.1134, allocations: 59.94 kB / 473 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.1147, allocations: 0.7499 MB / 473.7 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.1147, allocations: 3.938 kB / 473.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.923e-05/0.1147, allocations: 24 kB / 473.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-05/0.1148, allocations: 16 kB / 473.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.116, allocations: 0.605 MB / 474.4 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003188/0.1192, allocations: 2.468 MB / 476.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009889/0.1202, allocations: 428.9 kB / 477.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004284/0.1206, allocations: 196.9 kB / 477.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.232e-05/0.1206, allocations: 4.281 kB / 477.5 MB, free: 3.785 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004419/0.1211, allocations: 247.3 kB / 477.7 MB, free: 3.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.164e-06/0.1211, allocations: 0 / 477.7 MB, free: 3.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003474/0.1246, allocations: 0.8745 MB / 478.6 MB, free: 2.617 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.57e-05/0.1247, allocations: 140.4 kB / 478.7 MB, free: 2.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000492/0.1252, allocations: 405.9 kB / 479.1 MB, free: 2.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/0.1252, allocations: 37.7 kB / 479.2 MB, free: 2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/0.1255, allocations: 316 kB / 479.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.1257, allocations: 122.3 kB / 479.6 MB, free: 1.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/0.1258, allocations: 78.08 kB / 479.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.126, allocations: 354.8 kB / 480 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003133/0.1263, allocations: 132.8 kB / 480.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003727/0.1267, allocations: 242 kB / 480.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001556/0.1282, allocations: 0.6672 MB / 481 MB, free: 15.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.1283, allocations: 4 kB / 481.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001122/0.1294, allocations: 0.5168 MB / 481.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.1294, allocations: 8 kB / 481.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.1294, allocations: 4.469 kB / 481.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005377/0.13, allocations: 152.7 kB / 481.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.1303, allocations: 79.84 kB / 481.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003769/0.1341, allocations: 2.263 MB / 484.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003625/0.1344, allocations: 51.52 kB / 484.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.182e-05/0.1345, allocations: 20 kB / 484.1 MB, free: 12.75 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.000366/0.1349, allocations: 248.2 kB / 484.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.764e-05/0.135, allocations: 47.38 kB / 484.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001326/0.1363, allocations: 474.7 kB / 484.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.1363, allocations: 11.94 kB / 484.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.1363, allocations: 0 / 484.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.1363, allocations: 3.984 kB / 484.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008126/0.1372, allocations: 0.6746 MB / 485.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.1372, allocations: 11.92 kB / 485.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002397/0.1374, allocations: 43.92 kB / 485.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004233/0.1379, allocations: 144.8 kB / 485.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.06e-05/0.1379, allocations: 11.98 kB / 485.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003513/0.1414, allocations: 2.244 MB / 488 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.1414, allocations: 8.062 kB / 488 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.1431, allocations: 0.6882 MB / 488.7 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000244/0.1433, allocations: 152.4 kB / 488.9 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.128e-05/0.1434, allocations: 7.984 kB / 488.9 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.1437, allocations: 27.86 kB / 488.9 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.1438, allocations: 35.95 kB / 488.9 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.54e-05/0.1438, allocations: 12 kB / 489 MB, free: 7.656 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003405/0.1442, allocations: 283.1 kB / 489.2 MB, free: 7.383 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1442, allocations: 3.938 kB / 489.2 MB, free: 7.379 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006142/0.1448, allocations: 163.4 kB / 489.4 MB, free: 7.219 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.000229/0.145, allocations: 103.2 kB / 489.5 MB, free: 7.105 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001105/0.1462, allocations: 0.5369 MB / 490 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.1462, allocations: 0 / 490 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005598/0.1467, allocations: 339.5 kB / 490.4 MB, free: 6.211 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006793/0.1474, allocations: 160.1 kB / 490.5 MB, free: 6.059 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002527/0.15, allocations: 1.306 MB / 491.8 MB, free: 4.715 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005/0.1505, allocations: 0.925 MB / 492.8 MB, free: 3.762 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.786e-05/0.1506, allocations: 39.44 kB / 492.8 MB, free: 3.723 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1506, allocations: 4 kB / 492.8 MB, free: 3.719 MB / 366.1 MB Notification: Performance of Templates: time 0.01449/0.1651, allocations: 10.26 MB / 0.4913 GB, free: 9.496 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.mat","/var/lib/jenkins1/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