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.001597/0.001597, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.323/1.323, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0008216/0.0008215, allocations: 92.14 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1602/0.1602, allocations: 38.06 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000304/0.000304, allocations: 11.98 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.272, allocations: 56.31 MB / 480.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1442/0.4162, allocations: 98.26 MB / 0.565 GB, free: 4.145 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/0.4166, allocations: 95.95 kB / 0.5651 GB, free: 4.051 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04279/0.4594, allocations: 16.11 MB / 0.5808 GB, free: 3.754 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4594, allocations: 0 / 0.5808 GB, free: 3.754 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.687e-05/0.4595, allocations: 16 kB / 0.5808 GB, free: 3.738 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.00219/0.4617, allocations: 0.9377 MB / 0.5818 GB, free: 2.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.4617, allocations: 8.031 kB / 0.5818 GB, free: 2.742 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002612/0.462, allocations: 79.16 kB / 0.5818 GB, free: 2.664 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002953/0.4649, allocations: 1.166 MB / 0.583 GB, free: 1.449 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.4651, allocations: 116.7 kB / 0.5831 GB, free: 1.324 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.4653, allocations: 56 kB / 0.5831 GB, free: 1.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.4666, allocations: 0.7607 MB / 0.5839 GB, free: 480 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.4667, allocations: 11.89 kB / 0.5839 GB, free: 468 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.314e-05/0.4667, allocations: 28 kB / 0.5839 GB, free: 440 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.4668, allocations: 16 kB / 0.5839 GB, free: 424 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.468, allocations: 0.6168 MB / 0.5845 GB, free: 15.79 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003737/0.4718, allocations: 2.509 MB / 0.587 GB, free: 13.19 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.4728, allocations: 437.4 kB / 0.5874 GB, free: 12.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.4728, allocations: 8.281 kB / 0.5874 GB, free: 12.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004583/0.4733, allocations: 243.3 kB / 0.5876 GB, free: 12.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=36): time 2.725e-06/0.4733, allocations: 4 kB / 0.5876 GB, free: 12.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=36): time 0.002751/0.4761, allocations: 0.8288 MB / 0.5885 GB, free: 11.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.123e-05/0.4762, allocations: 140.5 kB / 0.5886 GB, free: 11.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004244/0.4766, allocations: 349.1 kB / 0.5889 GB, free: 11.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.359e-05/0.4767, allocations: 37.7 kB / 0.589 GB, free: 11.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002158/0.4769, allocations: 312.1 kB / 0.5893 GB, free: 10.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.477, allocations: 122.3 kB / 0.5894 GB, free: 10.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.971e-05/0.477, allocations: 8 kB / 0.5894 GB, free: 10.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.4772, allocations: 354.8 kB / 0.5897 GB, free: 10.24 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002876/0.4775, allocations: 128.8 kB / 0.5898 GB, free: 10.12 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003406/0.4778, allocations: 242 kB / 0.5901 GB, free: 9.836 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003414/0.4782, allocations: 164.8 kB / 0.5902 GB, free: 9.672 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.4782, allocations: 3.938 kB / 0.5902 GB, free: 9.668 MB / 426.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001265/0.4795, allocations: 0.5591 MB / 0.5908 GB, free: 9.102 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.4795, allocations: 4 kB / 0.5908 GB, free: 9.098 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.4795, allocations: 4 kB / 0.5908 GB, free: 9.094 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004664/0.48, allocations: 144.9 kB / 0.5909 GB, free: 8.949 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003132/0.4803, allocations: 91.83 kB / 0.591 GB, free: 8.859 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003122/0.4835, allocations: 2.09 MB / 0.5931 GB, free: 6.637 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000356/0.4838, allocations: 51.5 kB / 0.5931 GB, free: 6.586 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.13e-05/0.4839, allocations: 20 kB / 0.5931 GB, free: 6.566 MB / 426.7 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.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,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.0003426/0.4842, allocations: 245.7 kB / 0.5934 GB, free: 6.316 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.275e-05/0.4843, allocations: 43.44 kB / 0.5934 GB, free: 6.273 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/0.4855, allocations: 482.6 kB / 0.5939 GB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.4855, allocations: 4 kB / 0.5939 GB, free: 5.789 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.4855, allocations: 3.984 kB / 0.5939 GB, free: 5.785 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.4855, allocations: 4 kB / 0.5939 GB, free: 5.781 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007434/0.4863, allocations: 0.6862 MB / 0.5945 GB, free: 5.035 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.4863, allocations: 0 / 0.5945 GB, free: 5.035 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002647/0.4866, allocations: 51.91 kB / 0.5946 GB, free: 4.984 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003906/0.487, allocations: 148.9 kB / 0.5947 GB, free: 4.836 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.721e-05/0.487, allocations: 11.94 kB / 0.5947 GB, free: 4.824 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00284/0.4898, allocations: 2.072 MB / 0.5968 GB, free: 2.613 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4899, allocations: 96 / 0.5968 GB, free: 2.613 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.4913, allocations: 0.7227 MB / 0.5975 GB, free: 1.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001709/0.4915, allocations: 152.5 kB / 0.5976 GB, free: 1.672 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.195e-05/0.4916, allocations: 11.98 kB / 0.5976 GB, free: 1.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002251/0.4918, allocations: 15.98 kB / 0.5976 GB, free: 1.645 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.4919, allocations: 35.94 kB / 0.5977 GB, free: 1.609 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.649e-05/0.4919, allocations: 12 kB / 0.5977 GB, free: 1.598 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002894/0.4922, allocations: 279.1 kB / 0.598 GB, free: 1.328 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4922, allocations: 0 / 0.598 GB, free: 1.328 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005979/0.4928, allocations: 179.4 kB / 0.5981 GB, free: 1.152 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.0002147/0.4931, allocations: 131.2 kB / 0.5983 GB, free: 1.016 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009234/0.494, allocations: 0.5047 MB / 0.5987 GB, free: 0.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.494, allocations: 0 / 0.5987 GB, free: 0.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005182/0.4945, allocations: 318.5 kB / 0.5991 GB, free: 180 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000577/0.4951, allocations: 158.2 kB / 0.5992 GB, free: 24 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001896/0.497, allocations: 1.488 MB / 0.6007 GB, free: 14.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004694/0.4975, allocations: 0.9406 MB / 0.6016 GB, free: 13.53 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002674/0.4978, allocations: 84.62 kB / 0.6017 GB, free: 13.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.648e-05/0.4979, allocations: 35.44 kB / 0.6017 GB, free: 13.41 MB / 442.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4979, allocations: 3.938 kB / 0.6017 GB, free: 13.41 MB / 442.7 MB Notification: Performance of Templates: time 0.01262/0.5105, allocations: 7.774 MB / 0.6093 GB, free: 5.648 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/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