Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 108.7 kB / 17.06 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 191 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2086/0.2086, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 55.91 kB / 458.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3066, allocations: 58.05 MB / 0.5041 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.005858/0.3125, allocations: 6.102 MB / 0.51 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.3152, allocations: 1.951 MB / 0.5119 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002348/0.3154, allocations: 22.97 kB / 0.512 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001527/0.3169, allocations: 0.6912 MB / 0.5126 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006961/0.3176, allocations: 373.1 kB / 0.513 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009776/0.3186, allocations: 401.5 kB / 0.5134 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001038/0.3197, allocations: 0.9422 MB / 0.5143 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006391/0.3203, allocations: 0.4954 MB / 0.5148 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005628/0.3209, allocations: 441.1 kB / 0.5152 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007324/0.3217, allocations: 0.5269 MB / 0.5157 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.424e-05/0.3218, allocations: 58.09 kB / 0.5158 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004782/0.3222, allocations: 234.9 kB / 0.516 GB, free: 476 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004394/0.3227, allocations: 420 kB / 0.5164 GB, free: 340 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004556/0.3232, allocations: 424.1 kB / 0.5168 GB, free: 92 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001412/0.3246, allocations: 1.013 MB / 0.5178 GB, free: 15.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.3246, allocations: 9.062 kB / 0.5178 GB, free: 15.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.3246, allocations: 0 / 0.5178 GB, free: 15.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.3246, allocations: 0 / 0.5178 GB, free: 15.71 MB / 398.1 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.001929/0.3266, allocations: 1.067 MB / 0.5188 GB, free: 14.97 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.3266, allocations: 18.17 kB / 0.5189 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007137/0.3273, allocations: 134.8 kB / 0.519 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008341/0.3282, allocations: 0.5436 MB / 0.5195 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.667e-05/0.3282, allocations: 56.34 kB / 0.5196 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.3284, allocations: 81.53 kB / 0.5197 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001735/0.3301, allocations: 1.139 MB / 0.5208 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.602e-05/0.3301, allocations: 4.344 kB / 0.5208 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.981e-05/0.3302, allocations: 33.33 kB / 0.5208 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.89e-05/0.3303, allocations: 51.36 kB / 0.5209 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.3317, allocations: 0.8676 MB / 0.5217 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00518/0.3369, allocations: 5.031 MB / 0.5266 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006841/0.3376, allocations: 419.2 kB / 0.527 GB, free: 9.547 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003044/0.3379, allocations: 214.9 kB / 0.5272 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.237e-05/0.338, allocations: 11.7 kB / 0.5272 GB, free: 9.457 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.338, allocations: 37.56 kB / 0.5273 GB, free: 9.414 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 2.305e-06/0.338, allocations: 0 / 0.5273 GB, free: 9.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=44): time 0.00181/0.3398, allocations: 1.077 MB / 0.5283 GB, free: 8.906 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.391e-05/0.3399, allocations: 85.52 kB / 0.5284 GB, free: 8.809 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005732/0.3405, allocations: 0.4927 MB / 0.5289 GB, free: 8.574 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.377e-05/0.3405, allocations: 30.98 kB / 0.5289 GB, free: 8.539 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003152/0.3408, allocations: 459.2 kB / 0.5293 GB, free: 8.176 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.341, allocations: 158.3 kB / 0.5295 GB, free: 8.055 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002137/0.3412, allocations: 148.2 kB / 0.5296 GB, free: 7.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3414, allocations: 366.2 kB / 0.53 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003842/0.3417, allocations: 236.8 kB / 0.5302 GB, free: 7.582 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006819/0.3424, allocations: 0.617 MB / 0.5308 GB, free: 6.996 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/0.3435, allocations: 0.9432 MB / 0.5317 GB, free: 6.242 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.393e-06/0.3436, allocations: 4.938 kB / 0.5317 GB, free: 6.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001319/0.3449, allocations: 0.8955 MB / 0.5326 GB, free: 5.891 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.3449, allocations: 10.59 kB / 0.5326 GB, free: 5.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.253e-05/0.3449, allocations: 18.81 kB / 0.5326 GB, free: 5.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.346e-05/0.345, allocations: 21.67 kB / 0.5327 GB, free: 5.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000704/0.3457, allocations: 221.1 kB / 0.5329 GB, free: 5.859 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.861e-05/0.3457, allocations: 28.45 kB / 0.5329 GB, free: 5.852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004331/0.3462, allocations: 56.42 kB / 0.533 GB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.859e-05/0.3462, allocations: 39.84 kB / 0.533 GB, free: 5.824 MB / 398.1 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.0003756/0.3466, allocations: 308.2 kB / 0.5333 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.625e-05/0.3467, allocations: 55.84 kB / 0.5333 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008906/0.3476, allocations: 0.5583 MB / 0.5339 GB, free: 5.254 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.3476, allocations: 4.594 kB / 0.5339 GB, free: 5.254 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.3476, allocations: 1.219 kB / 0.5339 GB, free: 5.254 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.3476, allocations: 4.984 kB / 0.5339 GB, free: 5.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001958/0.3496, allocations: 1.337 MB / 0.5352 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3496, allocations: 3.312 kB / 0.5352 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004185/0.35, allocations: 111.6 kB / 0.5353 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.978e-06/0.3501, allocations: 9.125 kB / 0.5353 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.015e-05/0.3501, allocations: 16.75 kB / 0.5353 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.582e-06/0.3501, allocations: 7.844 kB / 0.5353 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3501, allocations: 2.781 kB / 0.5353 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007407/0.3509, allocations: 0.6468 MB / 0.536 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.351, allocations: 126.6 kB / 0.5361 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.278e-05/0.3511, allocations: 20.81 kB / 0.5361 GB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.3513, allocations: 20.33 kB / 0.5361 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.376e-05/0.3514, allocations: 36.2 kB / 0.5362 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-05/0.3514, allocations: 12.38 kB / 0.5362 GB, free: 3.676 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003318/0.3518, allocations: 331.8 kB / 0.5365 GB, free: 3.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3518, allocations: 5.344 kB / 0.5365 GB, free: 3.477 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007078/0.3525, allocations: 160.9 kB / 0.5367 GB, free: 3.457 MB / 398.1 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 0.0001223/0.3526, allocations: 111.5 kB / 0.5368 GB, free: 3.355 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008695/0.3535, allocations: 0.6129 MB / 0.5374 GB, free: 3.082 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3535, allocations: 1.125 kB / 0.5374 GB, free: 3.082 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003075/0.3538, allocations: 241.2 kB / 0.5376 GB, free: 2.977 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006775/0.3545, allocations: 107.4 kB / 0.5377 GB, free: 2.922 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.3566, allocations: 1.357 MB / 0.539 GB, free: 2.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006024/0.3573, allocations: 0.9965 MB / 0.54 GB, free: 1.246 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004678/0.3577, allocations: 229.8 kB / 0.5402 GB, free: 1.141 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.3579, allocations: 49.77 kB / 0.5403 GB, free: 1.129 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3579, allocations: 1.156 kB / 0.5403 GB, free: 1.129 MB / 398.1 MB Notification: Performance of Templates: time 0.01132/0.3692, allocations: 5.74 MB / 0.5459 GB, free: 12.91 MB / 414.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches