Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 182.8 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.228/1.228, allocations: 225.7 MB / 243.2 MB, free: 8.461 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007986/0.0007984, allocations: 94.81 kB / 294.4 MB, free: 9.508 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2729/0.2729, allocations: 38.18 MB / 383.7 MB, free: 40.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003039/0.0003039, allocations: 12 kB / 453.6 MB, free: 8.773 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2668, allocations: 59.14 MB / 0.5007 GB, free: 39.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.006732/0.2736, allocations: 6.546 MB / 0.5071 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00325/0.2769, allocations: 2.226 MB / 0.5092 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006481/0.2776, allocations: 31 kB / 0.5093 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006778/0.2783, allocations: 200.3 kB / 0.5095 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008314/0.2791, allocations: 355.7 kB / 0.5098 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005065/0.2796, allocations: 196.5 kB / 0.51 GB, free: 35.08 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001398/0.281, allocations: 1.415 MB / 0.5114 GB, free: 34.56 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005496/0.2816, allocations: 432.6 kB / 0.5118 GB, free: 34.4 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005538/0.2822, allocations: 374.8 kB / 0.5121 GB, free: 34.25 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004983/0.2827, allocations: 452.9 kB / 0.5126 GB, free: 34.08 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.782e-05/0.2827, allocations: 41.56 kB / 0.5126 GB, free: 34.08 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001015/0.2829, allocations: 35.19 kB / 0.5127 GB, free: 34.08 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001757/0.283, allocations: 221.9 kB / 0.5129 GB, free: 34 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002861/0.2833, allocations: 373.9 kB / 0.5132 GB, free: 33.77 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006111/0.2839, allocations: 0.9711 MB / 0.5142 GB, free: 33.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.284, allocations: 0 / 0.5142 GB, free: 33.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.284, allocations: 0 / 0.5142 GB, free: 33.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.284, allocations: 0 / 0.5142 GB, free: 33.51 MB / 378.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.00148/0.2855, allocations: 0.9109 MB / 0.5151 GB, free: 32.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.2855, allocations: 8.562 kB / 0.5151 GB, free: 32.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.2856, allocations: 74.09 kB / 0.5151 GB, free: 32.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008511/0.2865, allocations: 0.6288 MB / 0.5158 GB, free: 32.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.2866, allocations: 113.2 kB / 0.5159 GB, free: 32.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.601e-05/0.2867, allocations: 60.53 kB / 0.5159 GB, free: 32.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.2878, allocations: 0.752 MB / 0.5167 GB, free: 31.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.2878, allocations: 4.734 kB / 0.5167 GB, free: 31.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.103e-05/0.2878, allocations: 25.94 kB / 0.5167 GB, free: 31.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.2879, allocations: 14.97 kB / 0.5167 GB, free: 31.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.289, allocations: 0.6261 MB / 0.5173 GB, free: 31.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002528/0.2915, allocations: 2.479 MB / 0.5197 GB, free: 30.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007142/0.2923, allocations: 427.6 kB / 0.5201 GB, free: 29.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003219/0.2926, allocations: 203.4 kB / 0.5203 GB, free: 29.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.2926, allocations: 6.891 kB / 0.5203 GB, free: 29.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003982/0.293, allocations: 247.2 kB / 0.5206 GB, free: 29.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.384e-06/0.2931, allocations: 0 / 0.5206 GB, free: 29.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.002781/0.2958, allocations: 0.8727 MB / 0.5214 GB, free: 29.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.816e-05/0.2959, allocations: 141.7 kB / 0.5216 GB, free: 29.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004196/0.2963, allocations: 389.9 kB / 0.5219 GB, free: 28.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.2964, allocations: 35.97 kB / 0.522 GB, free: 28.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.2966, allocations: 323.4 kB / 0.5223 GB, free: 28.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.662e-05/0.2967, allocations: 122.2 kB / 0.5224 GB, free: 28.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.201e-05/0.2967, allocations: 6.719 kB / 0.5224 GB, free: 28.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.726e-05/0.2968, allocations: 358.5 kB / 0.5227 GB, free: 28.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003213/0.2971, allocations: 128.6 kB / 0.5229 GB, free: 28.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003398/0.2975, allocations: 241.3 kB / 0.5231 GB, free: 27.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001576/0.2991, allocations: 0.6584 MB / 0.5237 GB, free: 27.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.2991, allocations: 2.906 kB / 0.5237 GB, free: 27.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001512/0.3006, allocations: 0.5671 MB / 0.5243 GB, free: 27.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.3006, allocations: 5.906 kB / 0.5243 GB, free: 27.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.3007, allocations: 2.906 kB / 0.5243 GB, free: 27.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005029/0.3012, allocations: 146.8 kB / 0.5244 GB, free: 27.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003282/0.3015, allocations: 77.66 kB / 0.5245 GB, free: 27.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003169/0.3047, allocations: 2.037 MB / 0.5265 GB, free: 25.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003725/0.3051, allocations: 60.94 kB / 0.5266 GB, free: 25.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.3051, allocations: 17.41 kB / 0.5266 GB, free: 25.61 MB / 378.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.gate,chopper.modulator.t0,chopper.modulator.t1,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 (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.0003273/0.3055, allocations: 243.6 kB / 0.5268 GB, free: 25.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.462e-05/0.3055, allocations: 49.88 kB / 0.5269 GB, free: 25.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001256/0.3068, allocations: 487.7 kB / 0.5273 GB, free: 25.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.3068, allocations: 6.219 kB / 0.5273 GB, free: 25.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.3068, allocations: 0 / 0.5273 GB, free: 25.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.3068, allocations: 6.438 kB / 0.5273 GB, free: 25.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007725/0.3076, allocations: 0.6811 MB / 0.528 GB, free: 24.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.3076, allocations: 4 kB / 0.528 GB, free: 24.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.3079, allocations: 51.42 kB / 0.5281 GB, free: 24.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003528/0.3083, allocations: 141.4 kB / 0.5282 GB, free: 24.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.033e-05/0.3083, allocations: 11.03 kB / 0.5282 GB, free: 24.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002237/0.3105, allocations: 2.025 MB / 0.5302 GB, free: 22.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.3106, allocations: 7.875 kB / 0.5302 GB, free: 22.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.3119, allocations: 0.6822 MB / 0.5308 GB, free: 22.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.312, allocations: 149.6 kB / 0.531 GB, free: 22.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.552e-05/0.3121, allocations: 9.875 kB / 0.531 GB, free: 22.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.3123, allocations: 20.09 kB / 0.531 GB, free: 22.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.261e-05/0.3124, allocations: 33.92 kB / 0.5311 GB, free: 22.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.3124, allocations: 20.06 kB / 0.5311 GB, free: 22.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002276/0.3127, allocations: 275.4 kB / 0.5313 GB, free: 22.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3127, allocations: 0 / 0.5313 GB, free: 22.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005075/0.3132, allocations: 168.9 kB / 0.5315 GB, free: 22.3 MB / 378.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.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.0001071/0.3133, allocations: 109.5 kB / 0.5316 GB, free: 22.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009143/0.3142, allocations: 0.4961 MB / 0.5321 GB, free: 21.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.3142, allocations: 0 / 0.5321 GB, free: 21.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000448/0.3147, allocations: 339.6 kB / 0.5324 GB, free: 21.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006299/0.3153, allocations: 148.6 kB / 0.5326 GB, free: 21.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001875/0.3172, allocations: 1.579 MB / 0.5341 GB, free: 20.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.3175, allocations: 0.9271 MB / 0.535 GB, free: 19.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002763/0.3178, allocations: 87.41 kB / 0.5351 GB, free: 19.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.76e-05/0.3179, allocations: 34.31 kB / 0.5351 GB, free: 19.96 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.3179, allocations: 0 / 0.5351 GB, free: 19.96 MB / 378.7 MB Notification: Performance of Templates: time 0.01307/0.331, allocations: 7.62 MB / 0.5426 GB, free: 19.45 MB / 378.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