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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001032/0.001032, allocations: 182.5 kB / 8.134 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.284/1.284, allocations: 205.2 MB / 213.7 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000892/0.0008917, allocations: 86.53 kB / 261.7 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1689/0.1689, allocations: 37.97 MB / 347.7 MB, free: 7.492 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.424e-06/7.444e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1027, allocations: 56.31 MB / 466.3 MB, free: 6.484 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2964/0.3991, allocations: 97.46 MB / 0.5506 GB, free: 13.12 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/0.3994, allocations: 91.94 kB / 0.5507 GB, free: 13.03 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04248/0.4419, allocations: 15.71 MB / 0.566 GB, free: 13.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.872e-05/0.442, allocations: 15.94 kB / 0.566 GB, free: 13.12 MB / 410.7 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.001619/0.4436, allocations: 0.883 MB / 0.5669 GB, free: 12.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.4437, allocations: 8.031 kB / 0.5669 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.4438, allocations: 75.16 kB / 0.567 GB, free: 12.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002842/0.4467, allocations: 1.166 MB / 0.5681 GB, free: 10.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.4468, allocations: 92.72 kB / 0.5682 GB, free: 10.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.297e-05/0.4469, allocations: 43.92 kB / 0.5682 GB, free: 10.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008938/0.4478, allocations: 0.4907 MB / 0.5687 GB, free: 10.26 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000979/0.4488, allocations: 0.6484 MB / 0.5693 GB, free: 9.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.4489, allocations: 4 kB / 0.5693 GB, free: 9.566 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.939e-05/0.4489, allocations: 0 / 0.5693 GB, free: 9.566 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.4489, allocations: 16 kB / 0.5694 GB, free: 9.551 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003235/0.4522, allocations: 2.376 MB / 0.5717 GB, free: 7.086 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006754/0.4529, allocations: 367.7 kB / 0.572 GB, free: 6.699 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003135/0.4532, allocations: 183.7 kB / 0.5722 GB, free: 6.512 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.4532, allocations: 4.281 kB / 0.5722 GB, free: 6.508 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003138/0.4535, allocations: 215.4 kB / 0.5724 GB, free: 6.273 MB / 410.7 MB Notification: Performance of pre-optimization done (n=36): time 2.876e-06/0.4536, allocations: 0 / 0.5724 GB, free: 6.273 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.001045/0.4546, allocations: 395.7 kB / 0.5728 GB, free: 5.879 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.848e-05/0.4547, allocations: 140.5 kB / 0.5729 GB, free: 5.711 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.455, allocations: 282 kB / 0.5732 GB, free: 5.438 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.455, allocations: 25.7 kB / 0.5732 GB, free: 5.406 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.4552, allocations: 279.8 kB / 0.5735 GB, free: 5.125 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.305e-05/0.4553, allocations: 110.4 kB / 0.5736 GB, free: 5.016 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.625e-05/0.4553, allocations: 0 / 0.5736 GB, free: 5.016 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.4555, allocations: 358.7 kB / 0.5739 GB, free: 4.656 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001884/0.4557, allocations: 112.8 kB / 0.574 GB, free: 4.547 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002465/0.4559, allocations: 229.1 kB / 0.5743 GB, free: 4.277 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002245/0.4561, allocations: 132.9 kB / 0.5744 GB, free: 4.145 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4562, allocations: 0 / 0.5744 GB, free: 4.145 MB / 410.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001004/0.4572, allocations: 484.7 kB / 0.5749 GB, free: 3.664 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.4572, allocations: 5.406 kB / 0.5749 GB, free: 3.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.4572, allocations: 4 kB / 0.5749 GB, free: 3.656 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000313/0.4575, allocations: 128.9 kB / 0.575 GB, free: 3.527 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003287/0.4579, allocations: 83.84 kB / 0.5751 GB, free: 3.445 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/0.4599, allocations: 1.686 MB / 0.5767 GB, free: 1.645 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003029/0.4603, allocations: 39.73 kB / 0.5767 GB, free: 1.605 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.21e-05/0.4603, allocations: 20 kB / 0.5768 GB, free: 1.586 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = false protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = false 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.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001564/0.4605, allocations: 113 kB / 0.5769 GB, free: 1.469 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.776e-05/0.4605, allocations: 47.42 kB / 0.5769 GB, free: 1.422 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009289/0.4615, allocations: 414.6 kB / 0.5773 GB, free: 1.008 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.4615, allocations: 4 kB / 0.5773 GB, free: 1.004 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.4615, allocations: 0 / 0.5773 GB, free: 1.004 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.4615, allocations: 3.984 kB / 0.5773 GB, free: 1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006797/0.4622, allocations: 0.5893 MB / 0.5779 GB, free: 372 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.4622, allocations: 4 kB / 0.5779 GB, free: 368 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002745/0.4625, allocations: 47.92 kB / 0.5779 GB, free: 320 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002635/0.4628, allocations: 124.8 kB / 0.5781 GB, free: 192 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.744e-05/0.4628, allocations: 4 kB / 0.5781 GB, free: 188 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001908/0.4647, allocations: 1.682 MB / 0.5797 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.4647, allocations: 0 / 0.5797 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00116/0.4659, allocations: 0.6445 MB / 0.5803 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001624/0.4661, allocations: 148.5 kB / 0.5805 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.062e-05/0.4661, allocations: 3.906 kB / 0.5805 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002272/0.4664, allocations: 15.98 kB / 0.5805 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.026e-05/0.4665, allocations: 27.95 kB / 0.5805 GB, free: 13.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.549e-05/0.4665, allocations: 15.94 kB / 0.5805 GB, free: 13.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002244/0.4667, allocations: 216.6 kB / 0.5808 GB, free: 13.24 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005131/0.4673, allocations: 147.4 kB / 0.5809 GB, free: 13.1 MB / 426.7 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.t0,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on,system.initime) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002094/0.4675, allocations: 144.1 kB / 0.581 GB, free: 12.95 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007467/0.4682, allocations: 429.5 kB / 0.5814 GB, free: 12.52 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4683, allocations: 0 / 0.5814 GB, free: 12.52 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000404/0.4687, allocations: 274.6 kB / 0.5817 GB, free: 12.25 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004822/0.4692, allocations: 105.2 kB / 0.5818 GB, free: 12.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.4708, allocations: 0.884 MB / 0.5827 GB, free: 11.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005763/0.4714, allocations: 0.9675 MB / 0.5836 GB, free: 10.23 MB / 426.7 MB Notification: Performance of SimCode: time 5.01e-07/0.4714, allocations: 3.938 kB / 0.5836 GB, free: 10.23 MB / 426.7 MB Notification: Performance of Templates: time 0.01212/0.4835, allocations: 6.749 MB / 0.5902 GB, free: 3.492 MB / 426.7 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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches