Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00244/0.00244, allocations: 186.5 kB / 17.27 MB, free: 4.48 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.674/1.674, allocations: 205.1 MB / 223.1 MB, free: 8.477 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.001368/0.001367, allocations: 102.3 kB / 270.5 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1773/0.1773, allocations: 38 MB / 355.8 MB, free: 2.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001075, allocations: 55.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.36, allocations: 55.24 MB / 477.1 MB, free: 9.91 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.006273/0.3663, allocations: 4.693 MB / 481.8 MB, free: 6.59 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001989/0.3684, allocations: 1.133 MB / 482.9 MB, free: 5.781 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002532/0.3687, allocations: 23.12 kB / 483 MB, free: 5.773 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002286/0.3689, allocations: 38.5 kB / 483 MB, free: 5.754 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005009/0.3694, allocations: 168.4 kB / 483.2 MB, free: 5.656 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002449/0.3697, allocations: 78.97 kB / 483.2 MB, free: 5.613 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008114/0.3705, allocations: 0.5624 MB / 483.8 MB, free: 5.422 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003043/0.3708, allocations: 105.7 kB / 483.9 MB, free: 5.387 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003155/0.3712, allocations: 157.8 kB / 484.1 MB, free: 5.32 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004729/0.3716, allocations: 217.4 kB / 484.3 MB, free: 5.242 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.393e-05/0.3717, allocations: 13.72 kB / 484.3 MB, free: 5.242 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.354e-05/0.3718, allocations: 14.91 kB / 484.3 MB, free: 5.242 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001876/0.372, allocations: 97.09 kB / 484.4 MB, free: 5.211 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002009/0.3722, allocations: 141.1 kB / 484.5 MB, free: 5.133 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004558/0.3726, allocations: 301.3 kB / 484.8 MB, free: 5.012 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3727, allocations: 0.6562 kB / 484.8 MB, free: 5.012 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.727e-06/0.3727, allocations: 1.062 kB / 484.8 MB, free: 5.012 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.3727, allocations: 0 / 484.8 MB, free: 5.012 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001202/0.3739, allocations: 0.6145 MB / 485.4 MB, free: 4.512 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.3739, allocations: 9.562 kB / 485.4 MB, free: 4.512 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.281e-05/0.374, allocations: 36.95 kB / 485.5 MB, free: 4.492 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004756/0.3745, allocations: 324.6 kB / 485.8 MB, free: 4.227 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.3745, allocations: 19.12 kB / 485.8 MB, free: 4.219 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.7e-05/0.3746, allocations: 25.75 kB / 485.8 MB, free: 4.207 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005025/0.3751, allocations: 320.2 kB / 486.2 MB, free: 4.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.3751, allocations: 0 / 486.2 MB, free: 4.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.951e-05/0.3752, allocations: 11.31 kB / 486.2 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.3752, allocations: 13.09 kB / 486.2 MB, free: 4.004 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004323/0.3756, allocations: 217.9 kB / 486.4 MB, free: 3.938 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/0.3774, allocations: 1.344 MB / 487.7 MB, free: 2.855 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003657/0.3778, allocations: 144.1 kB / 487.9 MB, free: 2.773 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.3779, allocations: 67.95 kB / 487.9 MB, free: 2.734 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.3779, allocations: 1.375 kB / 487.9 MB, free: 2.734 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.378, allocations: 36.55 kB / 488 MB, free: 2.691 MB / 314.7 MB Notification: Performance of pre-optimization done (n=12): time 2.234e-06/0.378, allocations: 0 / 488 MB, free: 2.691 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009668/0.379, allocations: 365.5 kB / 488.3 MB, free: 2.508 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.379, allocations: 86.77 kB / 488.4 MB, free: 2.406 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002912/0.3793, allocations: 257.8 kB / 488.7 MB, free: 2.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.3793, allocations: 31.72 kB / 488.7 MB, free: 2.215 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.3795, allocations: 203.5 kB / 488.9 MB, free: 2.043 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.756e-05/0.3795, allocations: 45.92 kB / 488.9 MB, free: 2.008 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.003e-05/0.3796, allocations: 45.95 kB / 489 MB, free: 1.977 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.526e-05/0.3797, allocations: 340 kB / 489.3 MB, free: 1.648 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.3798, allocations: 49.91 kB / 489.4 MB, free: 1.637 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.38, allocations: 159.7 kB / 489.5 MB, free: 1.484 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002674/0.3802, allocations: 232.3 kB / 489.8 MB, free: 1.297 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3803, allocations: 5.25 kB / 489.8 MB, free: 1.293 MB / 314.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003737/0.3806, allocations: 247.2 kB / 490 MB, free: 1.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.3807, allocations: 6.812 kB / 490 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.3807, allocations: 3.656 kB / 490 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.323e-05/0.3807, allocations: 5.5 kB / 490 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001942/0.3809, allocations: 46.52 kB / 490.1 MB, free: 1.176 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.3809, allocations: 10.69 kB / 490.1 MB, free: 1.172 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001279/0.3811, allocations: 13.39 kB / 490.1 MB, free: 1.164 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.3811, allocations: 17.81 kB / 490.1 MB, free: 1.156 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (25): * Single equations (assignments): 25 * 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.0001456/0.3812, allocations: 157.1 kB / 490.3 MB, free: 1.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.783e-05/0.3813, allocations: 23.81 kB / 490.3 MB, free: 1.008 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003706/0.3817, allocations: 194.2 kB / 490.5 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.3817, allocations: 2.531 kB / 490.5 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3817, allocations: 0 / 490.5 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.3817, allocations: 2.672 kB / 490.5 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007382/0.3825, allocations: 0.5627 MB / 491 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3825, allocations: 1.125 kB / 491 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001607/0.3826, allocations: 30.61 kB / 491.1 MB, free: 0.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.3827, allocations: 6.047 kB / 491.1 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.3827, allocations: 3.047 kB / 491.1 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.3827, allocations: 4.938 kB / 491.1 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3827, allocations: 1.156 kB / 491.1 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000806/0.3835, allocations: 0.9426 MB / 492 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.136e-05/0.3836, allocations: 96.53 kB / 492.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.01e-05/0.3837, allocations: 9.062 kB / 492.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.3838, allocations: 3.547 kB / 492.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.541e-05/0.3838, allocations: 13.41 kB / 492.1 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.3838, allocations: 8.641 kB / 492.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002288/0.3841, allocations: 183.3 kB / 492.3 MB, free: 15.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3841, allocations: 0 / 492.3 MB, free: 15.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004878/0.3846, allocations: 48.28 kB / 492.4 MB, free: 15.43 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 16 * 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.0001264/0.3847, allocations: 100.1 kB / 492.5 MB, free: 15.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003507/0.3851, allocations: 164.1 kB / 492.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.3851, allocations: 4.125 kB / 492.6 MB, free: 15.28 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.3852, allocations: 75.12 kB / 492.7 MB, free: 15.26 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005269/0.3858, allocations: 61.61 kB / 492.8 MB, free: 15.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.3871, allocations: 0.7927 MB / 493.6 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004456/0.3876, allocations: 0.781 MB / 494.3 MB, free: 13.96 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001701/0.3878, allocations: 43.59 kB / 494.4 MB, free: 13.95 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.986e-05/0.3878, allocations: 27.28 kB / 494.4 MB, free: 13.94 MB / 330.7 MB Notification: Performance of SimCode: time 3.71e-07/0.3878, allocations: 4 kB / 494.4 MB, free: 13.93 MB / 330.7 MB Notification: Performance of Templates: time 0.007028/0.3949, allocations: 2.193 MB / 496.6 MB, free: 13.73 MB / 330.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches