Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.Generic.Test.FixedCurrentTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest") translateModel(PowerSystems.Examples.Generic.Test.FixedCurrentTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002003/0.002003, allocations: 186.5 kB / 17.27 MB, free: 4.504 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.603/1.603, allocations: 205.1 MB / 223.1 MB, free: 8.469 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.00104/0.00104, allocations: 99.91 kB / 270.5 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1777/0.1777, allocations: 38.01 MB / 355.8 MB, free: 2.934 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 63.91 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3565, allocations: 55.24 MB / 477.1 MB, free: 9.914 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.006085/0.3627, allocations: 3.718 MB / 480.8 MB, free: 7.289 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002318/0.365, allocations: 1.6 MB / 482.4 MB, free: 6.172 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001575/0.3652, allocations: 15.31 kB / 482.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008145/0.366, allocations: 247.5 kB / 482.7 MB, free: 6.012 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006443/0.3667, allocations: 255.9 kB / 482.9 MB, free: 5.887 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003367/0.367, allocations: 117.4 kB / 483 MB, free: 5.824 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000765/0.3678, allocations: 0.5674 MB / 483.6 MB, free: 5.656 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003576/0.3681, allocations: 144.6 kB / 483.7 MB, free: 5.598 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002613/0.3684, allocations: 131.1 kB / 483.9 MB, free: 5.539 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003077/0.3687, allocations: 162.6 kB / 484 MB, free: 5.48 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.302e-05/0.3688, allocations: 10.41 kB / 484 MB, free: 5.48 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009027/0.3697, allocations: 404 kB / 484.4 MB, free: 5.332 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002275/0.3699, allocations: 91.11 kB / 484.5 MB, free: 5.309 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001941/0.3701, allocations: 112.7 kB / 484.6 MB, free: 5.242 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000901/0.371, allocations: 373.9 kB / 485 MB, free: 5.113 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3711, allocations: 3.938 kB / 485 MB, free: 5.109 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3711, allocations: 1.188 kB / 485 MB, free: 5.109 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.3711, allocations: 0 / 485 MB, free: 5.109 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009588/0.3721, allocations: 0.5211 MB / 485.5 MB, free: 4.637 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.283e-05/0.3721, allocations: 10.05 kB / 485.5 MB, free: 4.637 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/0.3732, allocations: 92.75 kB / 485.6 MB, free: 4.621 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003573/0.3736, allocations: 262.6 kB / 485.9 MB, free: 4.379 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.3736, allocations: 15.47 kB / 485.9 MB, free: 4.371 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.933e-05/0.3737, allocations: 15.66 kB / 485.9 MB, free: 4.367 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005524/0.3742, allocations: 323.6 kB / 486.2 MB, free: 4.195 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.3743, allocations: 1.25 kB / 486.2 MB, free: 4.195 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.3743, allocations: 5.469 kB / 486.2 MB, free: 4.191 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.336e-05/0.3743, allocations: 20.52 kB / 486.3 MB, free: 4.188 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00055/0.3749, allocations: 298.1 kB / 486.6 MB, free: 4.094 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.377, allocations: 1.268 MB / 487.8 MB, free: 3.156 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005171/0.3775, allocations: 230.1 kB / 488 MB, free: 3.047 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.3777, allocations: 100.2 kB / 488.1 MB, free: 3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.87e-05/0.3777, allocations: 2.938 kB / 488.1 MB, free: 3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/0.3778, allocations: 40.53 kB / 488.2 MB, free: 2.953 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.3778, allocations: 0 / 488.2 MB, free: 2.953 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009383/0.3787, allocations: 440.2 kB / 488.6 MB, free: 2.754 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.3788, allocations: 82.92 kB / 488.7 MB, free: 2.656 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002344/0.379, allocations: 196.8 kB / 488.9 MB, free: 2.523 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.3791, allocations: 26.92 kB / 488.9 MB, free: 2.492 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.728e-05/0.3792, allocations: 160.4 kB / 489.1 MB, free: 2.352 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.23e-05/0.3792, allocations: 61.14 kB / 489.1 MB, free: 2.305 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.084e-05/0.3793, allocations: 52.83 kB / 489.2 MB, free: 2.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.093e-05/0.3794, allocations: 328 kB / 489.5 MB, free: 1.949 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001461/0.3796, allocations: 89.67 kB / 489.6 MB, free: 1.918 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/0.3797, allocations: 157.5 kB / 489.7 MB, free: 1.801 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003406/0.3801, allocations: 267.5 kB / 490 MB, free: 1.629 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3801, allocations: 0 / 490 MB, free: 1.629 MB / 314.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004681/0.3806, allocations: 295 kB / 490.3 MB, free: 1.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.3806, allocations: 15.16 kB / 490.3 MB, free: 1.492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.3806, allocations: 5.312 kB / 490.3 MB, free: 1.488 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.3806, allocations: 3.938 kB / 490.3 MB, free: 1.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002495/0.3809, allocations: 53.58 kB / 490.4 MB, free: 1.484 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.3809, allocations: 7.578 kB / 490.4 MB, free: 1.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.3811, allocations: 15.56 kB / 490.4 MB, free: 1.477 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.901e-05/0.3811, allocations: 12.66 kB / 490.4 MB, free: 1.473 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (27): * Single equations (assignments): 27 * 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.0001214/0.3812, allocations: 159.5 kB / 490.6 MB, free: 1.332 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.262e-05/0.3813, allocations: 17.08 kB / 490.6 MB, free: 1.324 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00038/0.3817, allocations: 226.4 kB / 490.8 MB, free: 1.219 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.3817, allocations: 2.25 kB / 490.8 MB, free: 1.219 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3817, allocations: 5.578 kB / 490.8 MB, free: 1.215 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.3817, allocations: 1.844 kB / 490.8 MB, free: 1.215 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.3831, allocations: 0.9523 MB / 491.8 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.3831, allocations: 4.875 kB / 491.8 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/0.3833, allocations: 37.03 kB / 491.8 MB, free: 0.582 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.3833, allocations: 4.125 kB / 491.8 MB, free: 0.582 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.3834, allocations: 9.938 kB / 491.8 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.806e-06/0.3834, allocations: 11.72 kB / 491.8 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.3834, allocations: 8.188 kB / 491.8 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008053/0.3842, allocations: 1.078 MB / 492.9 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.217e-05/0.3843, allocations: 101.4 kB / 493 MB, free: 15.49 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.985e-05/0.3843, allocations: 6.5 kB / 493 MB, free: 15.49 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.3845, allocations: 12.3 kB / 493 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.854e-05/0.3846, allocations: 30.31 kB / 493.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.3846, allocations: 9.375 kB / 493.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000181/0.3848, allocations: 149.6 kB / 493.2 MB, free: 15.37 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3848, allocations: 0 / 493.2 MB, free: 15.37 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004967/0.3853, allocations: 54.59 kB / 493.3 MB, free: 15.36 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (18): * Single equations (assignments): 17 * 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.0001358/0.3854, allocations: 105 kB / 493.4 MB, free: 15.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004595/0.3859, allocations: 217.5 kB / 493.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.3859, allocations: 1.062 kB / 493.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001886/0.3861, allocations: 98.89 kB / 493.7 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005009/0.3866, allocations: 49.17 kB / 493.7 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.3879, allocations: 0.8132 MB / 494.5 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004337/0.3883, allocations: 0.7715 MB / 495.3 MB, free: 13.79 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002105/0.3885, allocations: 49.67 kB / 495.4 MB, free: 13.79 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.582e-05/0.3886, allocations: 24.34 kB / 495.4 MB, free: 13.78 MB / 330.7 MB Notification: Performance of SimCode: time 3.9e-07/0.3886, allocations: 0 / 495.4 MB, free: 13.78 MB / 330.7 MB Notification: Performance of Templates: time 0.006204/0.3948, allocations: 1.86 MB / 497.2 MB, free: 13.53 MB / 330.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches