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.00141/0.00141, allocations: 111.1 kB / 17.68 MB, free: 5.355 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.001133/0.001133, allocations: 192 kB / 18.62 MB, free: 4.434 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.708/1.708, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2216/0.2216, allocations: 38.03 MB / 330.5 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 70.36 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1728, allocations: 58.06 MB / 458.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.01045/0.1833, allocations: 6.577 MB / 464.9 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00451/0.1879, allocations: 1.756 MB / 466.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004627/0.1884, allocations: 23.88 kB / 466.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008906/0.1894, allocations: 230.3 kB / 466.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001071/0.1904, allocations: 381.9 kB / 467.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006107/0.1911, allocations: 219.6 kB / 467.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001367/0.1924, allocations: 1.071 MB / 468.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007858/0.1932, allocations: 0.5178 MB / 469.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008082/0.1941, allocations: 470.2 kB / 469.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008576/0.1949, allocations: 486.3 kB / 470 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001459/0.1951, allocations: 84 kB / 470.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001682/0.1953, allocations: 84 kB / 470.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004509/0.1957, allocations: 283.2 kB / 470.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005961/0.1963, allocations: 402.3 kB / 470.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001316/0.1977, allocations: 1.04 MB / 471.9 MB, free: 9.707 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.836e-06/0.1977, allocations: 0 / 471.9 MB, free: 9.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.1977, allocations: 3.938 kB / 471.9 MB, free: 9.703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.407e-05/0.1977, allocations: 0 / 471.9 MB, free: 9.703 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.002488/0.2002, allocations: 1.02 MB / 472.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.16e-05/0.2003, allocations: 16.02 kB / 472.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001935/0.2005, allocations: 72.09 kB / 473 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.2019, allocations: 0.6603 MB / 473.7 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/0.2021, allocations: 109.3 kB / 473.8 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002263/0.2023, allocations: 59.94 kB / 473.8 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.2037, allocations: 0.7499 MB / 474.6 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.2037, allocations: 0 / 474.6 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.419e-05/0.2038, allocations: 24 kB / 474.6 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.753e-05/0.2038, allocations: 12 kB / 474.6 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/0.2051, allocations: 0.6089 MB / 475.2 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003977/0.2091, allocations: 2.452 MB / 477.7 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000968/0.21, allocations: 413.2 kB / 478.1 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005215/0.2106, allocations: 207.1 kB / 478.3 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.226e-05/0.2106, allocations: 8.266 kB / 478.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004801/0.2111, allocations: 235.3 kB / 478.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.064e-06/0.2111, allocations: 4 kB / 478.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003113/0.2142, allocations: 0.8822 MB / 479.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001692/0.2144, allocations: 136.5 kB / 479.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005505/0.215, allocations: 401.9 kB / 479.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.215, allocations: 37.7 kB / 480 MB, free: 1.266 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003085/0.2154, allocations: 316 kB / 480.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.2155, allocations: 114.3 kB / 480.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002631/0.2158, allocations: 82.16 kB / 480.5 MB, free: 0.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003282/0.2161, allocations: 358.8 kB / 480.8 MB, free: 400 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003162/0.2164, allocations: 132.8 kB / 480.9 MB, free: 268 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004131/0.2168, allocations: 246 kB / 481.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001677/0.2185, allocations: 0.6603 MB / 481.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.2185, allocations: 0 / 481.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001099/0.2196, allocations: 0.5213 MB / 482.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.202e-05/0.2197, allocations: 8 kB / 482.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.2197, allocations: 8 kB / 482.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004965/0.2202, allocations: 152.9 kB / 482.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003145/0.2205, allocations: 79.83 kB / 482.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00424/0.2248, allocations: 2.262 MB / 484.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004021/0.2252, allocations: 51.52 kB / 484.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-05/0.2253, allocations: 16 kB / 484.9 MB, free: 12.02 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.0005128/0.2258, allocations: 247.8 kB / 485.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.205e-05/0.2259, allocations: 55.31 kB / 485.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/0.2274, allocations: 478.6 kB / 485.7 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.547e-06/0.2274, allocations: 7.938 kB / 485.7 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.2274, allocations: 192 / 485.7 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.2275, allocations: 4 kB / 485.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001317/0.2288, allocations: 0.6823 MB / 486.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.2288, allocations: 3.938 kB / 486.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002432/0.2291, allocations: 47.97 kB / 486.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004489/0.2295, allocations: 144.7 kB / 486.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.2e-05/0.2296, allocations: 8 kB / 486.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004147/0.2337, allocations: 2.244 MB / 488.8 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.2337, allocations: 4.062 kB / 488.8 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/0.2355, allocations: 0.6868 MB / 489.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002597/0.2358, allocations: 152.4 kB / 489.7 MB, free: 7.008 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.301e-05/0.2358, allocations: 8 kB / 489.7 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.2361, allocations: 24.02 kB / 489.7 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.2362, allocations: 43.92 kB / 489.7 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.908e-05/0.2362, allocations: 12 kB / 489.8 MB, free: 6.922 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003905/0.2366, allocations: 279.1 kB / 490 MB, free: 6.652 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2366, allocations: 0 / 490 MB, free: 6.652 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007845/0.2374, allocations: 163.4 kB / 490.2 MB, free: 6.492 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.0001842/0.2376, allocations: 111.2 kB / 490.3 MB, free: 6.371 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.2388, allocations: 0.5162 MB / 490.8 MB, free: 5.844 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.2388, allocations: 3.938 kB / 490.8 MB, free: 5.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005992/0.2394, allocations: 330.5 kB / 491.1 MB, free: 5.504 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000864/0.2403, allocations: 158.7 kB / 491.3 MB, free: 5.352 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00299/0.2433, allocations: 1.245 MB / 492.5 MB, free: 4.074 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009802/0.2443, allocations: 0.9211 MB / 493.5 MB, free: 3.125 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003177/0.2446, allocations: 88.62 kB / 493.6 MB, free: 3.035 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.2448, allocations: 35.44 kB / 493.6 MB, free: 3 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2448, allocations: 0 / 493.6 MB, free: 3 MB / 366.1 MB Notification: Performance of Templates: time 0.01711/0.2619, allocations: 8.213 MB / 0.49 GB, free: 10.89 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 -s cvode -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