Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.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.Introductory.Units,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter_SI.i.1.|meter_SI.i.2.|meter_SI.i.3.|meter_SI.p.1.|meter_SI.p.2.|meter_SI.p.3.|meter_SI.v.1.|meter_SI.v.2.|meter_SI.v.3.|meter_pu.i.1.|meter_pu.i.2.|meter_pu.i.3.|meter_pu.p.1.|meter_pu.p.2.|meter_pu.p.3.|meter_pu.v.1.|meter_pu.v.2.|meter_pu.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Units") translateModel(PowerSystems.Examples.Introductory.Units,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter_SI.i.1.|meter_SI.i.2.|meter_SI.i.3.|meter_SI.p.1.|meter_SI.p.2.|meter_SI.p.3.|meter_SI.v.1.|meter_SI.v.2.|meter_SI.v.3.|meter_pu.i.1.|meter_pu.i.2.|meter_pu.i.3.|meter_pu.p.1.|meter_pu.p.2.|meter_pu.p.3.|meter_pu.v.1.|meter_pu.v.2.|meter_pu.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Units") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000958/0.0009581, allocations: 177.9 kB / 16.71 MB, free: 5.09 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.216/1.216, allocations: 225.7 MB / 243.2 MB, free: 8.5 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.0007592/0.0007592, allocations: 90.84 kB / 294.4 MB, free: 9.52 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.2964/0.2964, allocations: 38.19 MB / 383.7 MB, free: 40.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002691/0.0002691, allocations: 8 kB / 453.5 MB, free: 8.797 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2534, allocations: 59.14 MB / 0.5007 GB, free: 38.97 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.005618/0.2591, allocations: 6.651 MB / 0.5072 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003367/0.2624, allocations: 3.397 MB / 0.5105 GB, free: 34.1 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004621/0.2629, allocations: 41.19 kB / 0.5105 GB, free: 34.09 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002655/0.2632, allocations: 113.9 kB / 0.5106 GB, free: 34.02 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007736/0.264, allocations: 354.9 kB / 0.511 GB, free: 33.83 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008361/0.2648, allocations: 363.1 kB / 0.5113 GB, free: 33.68 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001236/0.2661, allocations: 1.501 MB / 0.5128 GB, free: 33.22 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001154/0.2673, allocations: 1.282 MB / 0.514 GB, free: 32.24 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004522/0.2677, allocations: 353.5 kB / 0.5144 GB, free: 32.1 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005179/0.2682, allocations: 0.5293 MB / 0.5149 GB, free: 31.93 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.961e-05/0.2683, allocations: 27.72 kB / 0.5149 GB, free: 31.93 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003935/0.2687, allocations: 223 kB / 0.5151 GB, free: 31.87 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002543/0.269, allocations: 386.1 kB / 0.5155 GB, free: 31.77 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002732/0.2693, allocations: 410 kB / 0.5159 GB, free: 31.52 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006334/0.2699, allocations: 0.9636 MB / 0.5168 GB, free: 31.24 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2699, allocations: 0 / 0.5168 GB, free: 31.24 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2699, allocations: 0 / 0.5168 GB, free: 31.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.27, allocations: 0 / 0.5168 GB, free: 31.24 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.001173/0.2711, allocations: 0.9312 MB / 0.5177 GB, free: 30.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.2712, allocations: 8.062 kB / 0.5177 GB, free: 30.58 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005696/0.2718, allocations: 137.9 kB / 0.5179 GB, free: 30.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006122/0.2724, allocations: 0.5142 MB / 0.5184 GB, free: 30.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.095e-05/0.2724, allocations: 61.39 kB / 0.5184 GB, free: 30.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.825e-05/0.2725, allocations: 78.47 kB / 0.5185 GB, free: 30.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.2738, allocations: 1.125 MB / 0.5196 GB, free: 29.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.2738, allocations: 6.969 kB / 0.5196 GB, free: 29.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.823e-05/0.2739, allocations: 33.03 kB / 0.5196 GB, free: 29.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.807e-05/0.274, allocations: 48.55 kB / 0.5197 GB, free: 29.47 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/0.275, allocations: 0.8572 MB / 0.5205 GB, free: 29.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003784/0.2788, allocations: 5.072 MB / 0.5255 GB, free: 25.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005806/0.2794, allocations: 416.5 kB / 0.5259 GB, free: 25.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002538/0.2796, allocations: 212 kB / 0.5261 GB, free: 25.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.769e-05/0.2797, allocations: 14.61 kB / 0.5261 GB, free: 25.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.2797, allocations: 49.28 kB / 0.5261 GB, free: 25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.985e-06/0.2797, allocations: 0 / 0.5261 GB, free: 25 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.001461/0.2812, allocations: 1.063 MB / 0.5272 GB, free: 24.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.637e-05/0.2812, allocations: 88.34 kB / 0.5273 GB, free: 24.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003649/0.2816, allocations: 498 kB / 0.5277 GB, free: 24.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.2816, allocations: 36.7 kB / 0.5278 GB, free: 24.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.2818, allocations: 452.8 kB / 0.5282 GB, free: 23.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.215e-05/0.2819, allocations: 157.4 kB / 0.5284 GB, free: 23.65 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.554e-05/0.2819, allocations: 15.09 kB / 0.5284 GB, free: 23.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.567e-05/0.282, allocations: 370.1 kB / 0.5287 GB, free: 23.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002623/0.2822, allocations: 233.3 kB / 0.5289 GB, free: 23.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003838/0.2826, allocations: 0.613 MB / 0.5295 GB, free: 22.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007383/0.2834, allocations: 0.9338 MB / 0.5305 GB, free: 21.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.2834, allocations: 7 kB / 0.5305 GB, free: 21.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0009623/0.2844, allocations: 0.8948 MB / 0.5313 GB, free: 21.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.2844, allocations: 12.47 kB / 0.5314 GB, free: 21.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.2844, allocations: 12.25 kB / 0.5314 GB, free: 21.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.2844, allocations: 18.75 kB / 0.5314 GB, free: 21.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006216/0.2851, allocations: 220.5 kB / 0.5316 GB, free: 21.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.916e-05/0.2851, allocations: 28.91 kB / 0.5316 GB, free: 21.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003568/0.2855, allocations: 54.59 kB / 0.5317 GB, free: 21.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.673e-05/0.2855, allocations: 44.08 kB / 0.5317 GB, free: 21.49 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002651/0.2858, allocations: 304.4 kB / 0.532 GB, free: 21.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.113e-05/0.2858, allocations: 51.53 kB / 0.5321 GB, free: 21.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007181/0.2866, allocations: 0.5554 MB / 0.5326 GB, free: 21.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.738e-06/0.2866, allocations: 6.406 kB / 0.5326 GB, free: 21.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2866, allocations: 0 / 0.5326 GB, free: 21.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.2866, allocations: 6.156 kB / 0.5326 GB, free: 21.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.2881, allocations: 1.331 MB / 0.5339 GB, free: 20.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2881, allocations: 3.156 kB / 0.5339 GB, free: 20.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003719/0.2885, allocations: 112.1 kB / 0.534 GB, free: 20.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.2885, allocations: 6.812 kB / 0.534 GB, free: 20.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.531e-05/0.2885, allocations: 14.44 kB / 0.534 GB, free: 20.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.2886, allocations: 11 kB / 0.534 GB, free: 20.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.2886, allocations: 3.062 kB / 0.5341 GB, free: 20.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005692/0.2891, allocations: 0.6389 MB / 0.5347 GB, free: 19.92 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.044e-05/0.2892, allocations: 120.8 kB / 0.5348 GB, free: 19.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.204e-05/0.2893, allocations: 21.55 kB / 0.5348 GB, free: 19.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.2895, allocations: 20.55 kB / 0.5348 GB, free: 19.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.349e-05/0.2896, allocations: 36.86 kB / 0.5349 GB, free: 19.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.403e-05/0.2896, allocations: 16.28 kB / 0.5349 GB, free: 19.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002437/0.2899, allocations: 325.3 kB / 0.5352 GB, free: 19.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2899, allocations: 0 / 0.5352 GB, free: 19.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000552/0.2904, allocations: 159.8 kB / 0.5353 GB, free: 19.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.643e-05/0.2905, allocations: 118.2 kB / 0.5355 GB, free: 19.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006672/0.2912, allocations: 0.5976 MB / 0.536 GB, free: 19.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2912, allocations: 0.5 kB / 0.536 GB, free: 19.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002416/0.2914, allocations: 241.5 kB / 0.5363 GB, free: 19.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006641/0.2921, allocations: 107.4 kB / 0.5364 GB, free: 19.19 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.2937, allocations: 1.722 MB / 0.5381 GB, free: 18.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/0.2941, allocations: 0.9968 MB / 0.539 GB, free: 17.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004742/0.2946, allocations: 228.6 kB / 0.5392 GB, free: 17.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.2947, allocations: 47.5 kB / 0.5393 GB, free: 17.38 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.2947, allocations: 1.125 kB / 0.5393 GB, free: 17.38 MB / 378.7 MB Notification: Performance of Templates: time 0.008671/0.3034, allocations: 5.264 MB / 0.5444 GB, free: 16.97 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Units -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Units.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches