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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001671/0.001671, allocations: 176.9 kB / 17.4 MB, free: 4.297 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.7/1.7, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.0007508/0.0007506, allocations: 79.94 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1749/0.1749, allocations: 38.09 MB / 358.3 MB, free: 1.715 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003931/0.0003931, allocations: 19.98 kB / 425.3 MB, free: 37.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2681, allocations: 56.31 MB / 481.6 MB, free: 9.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.4023, allocations: 98.28 MB / 0.5663 GB, free: 3.961 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.4026, allocations: 103.8 kB / 0.5664 GB, free: 3.863 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04271/0.4453, allocations: 16.09 MB / 0.5821 GB, free: 3.578 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4454, allocations: 3.938 kB / 0.5821 GB, free: 3.574 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.536e-05/0.4455, allocations: 12 kB / 0.5821 GB, free: 3.562 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.00238/0.4478, allocations: 0.9223 MB / 0.583 GB, free: 2.586 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.4479, allocations: 12.03 kB / 0.583 GB, free: 2.574 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003147/0.4482, allocations: 76.09 kB / 0.5831 GB, free: 2.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001981/0.4502, allocations: 0.8513 MB / 0.5839 GB, free: 1.609 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.4504, allocations: 117.2 kB / 0.584 GB, free: 1.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.4506, allocations: 60.38 kB / 0.5841 GB, free: 1.422 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.452, allocations: 0.7725 MB / 0.5848 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.452, allocations: 3.938 kB / 0.5848 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.083e-05/0.4521, allocations: 28 kB / 0.5849 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.4521, allocations: 12 kB / 0.5849 GB, free: 0.5664 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.4533, allocations: 0.6129 MB / 0.5855 GB, free: 15.95 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003554/0.4569, allocations: 2.514 MB / 0.5879 GB, free: 13.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008227/0.4577, allocations: 417.2 kB / 0.5883 GB, free: 12.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004145/0.4582, allocations: 201.9 kB / 0.5885 GB, free: 12.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.4582, allocations: 8.281 kB / 0.5885 GB, free: 12.69 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003967/0.4586, allocations: 239.3 kB / 0.5887 GB, free: 12.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=36): time 3.015e-06/0.4586, allocations: 0 / 0.5887 GB, free: 12.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=36): time 0.002631/0.4613, allocations: 0.8394 MB / 0.5896 GB, free: 11.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.79e-05/0.4613, allocations: 140.5 kB / 0.5897 GB, free: 11.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004233/0.4618, allocations: 405.9 kB / 0.5901 GB, free: 10.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.911e-05/0.4618, allocations: 29.7 kB / 0.5901 GB, free: 10.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/0.4621, allocations: 316 kB / 0.5904 GB, free: 10.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.254e-05/0.4622, allocations: 114.4 kB / 0.5905 GB, free: 10.53 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.931e-05/0.4622, allocations: 12 kB / 0.5905 GB, free: 10.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4623, allocations: 359.2 kB / 0.5909 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/0.4626, allocations: 128.8 kB / 0.591 GB, free: 10.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000329/0.4629, allocations: 242 kB / 0.5912 GB, free: 9.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/0.4643, allocations: 0.6524 MB / 0.5919 GB, free: 9.047 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.4643, allocations: 4 kB / 0.5919 GB, free: 9.043 MB / 426.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001186/0.4655, allocations: 0.5687 MB / 0.5924 GB, free: 8.465 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.4656, allocations: 4 kB / 0.5924 GB, free: 8.461 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.4656, allocations: 4 kB / 0.5924 GB, free: 8.457 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004389/0.466, allocations: 144.9 kB / 0.5926 GB, free: 8.312 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.4663, allocations: 87.81 kB / 0.5927 GB, free: 8.227 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002847/0.4692, allocations: 2.042 MB / 0.5947 GB, free: 6.047 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003273/0.4695, allocations: 47.52 kB / 0.5947 GB, free: 6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.4695, allocations: 20 kB / 0.5947 GB, free: 5.98 MB / 426.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t1: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.t0,$PRE.chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on) * 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 (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.0003512/0.4699, allocations: 253.5 kB / 0.595 GB, free: 5.723 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.664e-05/0.47, allocations: 47.53 kB / 0.595 GB, free: 5.676 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/0.4711, allocations: 482.5 kB / 0.5955 GB, free: 5.195 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.4711, allocations: 4 kB / 0.5955 GB, free: 5.191 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.4711, allocations: 4 kB / 0.5955 GB, free: 5.188 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.4711, allocations: 7.922 kB / 0.5955 GB, free: 5.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008241/0.472, allocations: 0.6668 MB / 0.5961 GB, free: 4.453 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.472, allocations: 4 kB / 0.5961 GB, free: 4.449 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002404/0.4722, allocations: 51.91 kB / 0.5962 GB, free: 4.398 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003799/0.4726, allocations: 144.8 kB / 0.5963 GB, free: 4.254 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.481e-05/0.4727, allocations: 15.94 kB / 0.5963 GB, free: 4.238 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002837/0.4755, allocations: 2.027 MB / 0.5983 GB, free: 2.074 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.4755, allocations: 3.984 kB / 0.5983 GB, free: 2.07 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.477, allocations: 0.6978 MB / 0.599 GB, free: 1.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.4772, allocations: 144.6 kB / 0.5991 GB, free: 1.18 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.134e-05/0.4772, allocations: 11.98 kB / 0.5991 GB, free: 1.168 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002218/0.4775, allocations: 15.98 kB / 0.5992 GB, free: 1.152 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.4776, allocations: 43.88 kB / 0.5992 GB, free: 1.109 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.168e-05/0.4776, allocations: 8 kB / 0.5992 GB, free: 1.102 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003158/0.4779, allocations: 279.2 kB / 0.5995 GB, free: 0.832 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4779, allocations: 3.938 kB / 0.5995 GB, free: 0.8281 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005795/0.4785, allocations: 175.4 kB / 0.5997 GB, free: 0.6562 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 () * 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 (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.0002027/0.4787, allocations: 142.6 kB / 0.5998 GB, free: 0.5117 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000929/0.4797, allocations: 0.4953 MB / 0.6003 GB, free: 4 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4797, allocations: 0 / 0.6003 GB, free: 4 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005264/0.4802, allocations: 335.4 kB / 0.6006 GB, free: 15.66 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006884/0.4809, allocations: 149.7 kB / 0.6007 GB, free: 15.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.4831, allocations: 1.488 MB / 0.6022 GB, free: 13.99 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004872/0.4836, allocations: 0.9328 MB / 0.6031 GB, free: 13.03 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003098/0.4839, allocations: 80.64 kB / 0.6032 GB, free: 12.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.812e-05/0.484, allocations: 39.44 kB / 0.6032 GB, free: 12.91 MB / 442.7 MB Notification: Performance of SimCode: time 2.2e-07/0.484, allocations: 0 / 0.6032 GB, free: 12.91 MB / 442.7 MB Notification: Performance of Templates: time 0.01591/0.4999, allocations: 7.881 MB / 0.6109 GB, free: 5.051 MB / 442.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/jenkins1/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