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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 172.6 kB / 24.92 MB, free: 8.727 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.079/1.079, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2861/0.2861, allocations: 29.43 MB / 291.2 MB, free: 2.473 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.FixedCurrentTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|line.i.[0-9,]+.|line.p.[0-9,]+.|line.v.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest") translateModel(PowerSystems.Examples.Generic.Test.FixedCurrentTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|line.i.[0-9,]+.|line.p.[0-9,]+.|line.v.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.063e-06/2.063e-06, allocations: 0 / 316.8 MB, free: 4 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.935e-05/3.141e-05, allocations: 2.312 kB / 316.8 MB, free: 0 / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004848/0.00488, allocations: 3.497 MB / 320.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001784/0.006664, allocations: 1.219 MB / 321.6 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001881/0.006852, allocations: 15.88 kB / 321.6 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005968/0.007449, allocations: 199.1 kB / 321.8 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005904/0.008039, allocations: 282.6 kB / 322 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003504/0.008389, allocations: 123.5 kB / 322.2 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003841/0.008773, allocations: 347.2 kB / 322.5 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002384/0.009012, allocations: 134.6 kB / 322.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003304/0.009342, allocations: 203.4 kB / 322.8 MB, free: 9.973 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002215/0.009564, allocations: 135.6 kB / 323 MB, free: 9.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.009585, allocations: 16 kB / 323 MB, free: 9.824 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004063/0.009991, allocations: 279.1 kB / 323.2 MB, free: 9.551 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.01011, allocations: 107.7 kB / 323.4 MB, free: 9.445 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.116e-05/0.01018, allocations: 67.84 kB / 323.4 MB, free: 9.379 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004584/0.01064, allocations: 326.9 kB / 323.7 MB, free: 9.059 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.01064, allocations: 0 / 323.7 MB, free: 9.059 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.01064, allocations: 0 / 323.7 MB, free: 9.059 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.01065, allocations: 8 kB / 323.7 MB, free: 9.051 MB / 298.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.0005282/0.01118, allocations: 423.2 kB / 324.2 MB, free: 8.613 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.01122, allocations: 15.98 kB / 324.2 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005493/0.01177, allocations: 132.7 kB / 324.3 MB, free: 8.469 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002763/0.01205, allocations: 197.3 kB / 324.5 MB, free: 8.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.01206, allocations: 12.38 kB / 324.5 MB, free: 8.238 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.977e-05/0.0121, allocations: 32.28 kB / 324.5 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002305/0.01233, allocations: 202 kB / 324.7 MB, free: 7.988 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.01235, allocations: 4.188 kB / 324.7 MB, free: 7.984 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.74e-05/0.01236, allocations: 8.359 kB / 324.7 MB, free: 7.977 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.664e-05/0.0124, allocations: 23.92 kB / 324.8 MB, free: 7.953 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001244/0.01252, allocations: 90.62 kB / 324.9 MB, free: 7.863 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.01356, allocations: 0.8987 MB / 325.8 MB, free: 6.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/0.01377, allocations: 153.5 kB / 325.9 MB, free: 6.738 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.821e-05/0.01382, allocations: 40.52 kB / 325.9 MB, free: 6.695 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.01384, allocations: 7.938 kB / 326 MB, free: 6.688 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.01387, allocations: 38.56 kB / 326 MB, free: 6.641 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 2.484e-06/0.01387, allocations: 0 / 326 MB, free: 6.641 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003712/0.01424, allocations: 157.5 kB / 326.1 MB, free: 6.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.01428, allocations: 81.11 kB / 326.2 MB, free: 6.383 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.01439, allocations: 187.4 kB / 326.4 MB, free: 6.184 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.0144, allocations: 29.7 kB / 326.4 MB, free: 6.148 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.832e-05/0.01446, allocations: 148.3 kB / 326.6 MB, free: 6 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.751e-05/0.0145, allocations: 63.47 kB / 326.6 MB, free: 5.938 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.645e-05/0.01456, allocations: 53.84 kB / 326.7 MB, free: 5.879 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.743e-05/0.01465, allocations: 334.7 kB / 327 MB, free: 5.543 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.924e-05/0.01469, allocations: 31.28 kB / 327.1 MB, free: 5.512 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.705e-05/0.01476, allocations: 89.02 kB / 327.1 MB, free: 5.395 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001248/0.01488, allocations: 148.2 kB / 327.3 MB, free: 5.219 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.01488, allocations: 4 kB / 327.3 MB, free: 5.215 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0001647/0.01505, allocations: 152.4 kB / 327.4 MB, free: 5.059 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.01507, allocations: 8 kB / 327.4 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.01507, allocations: 0 / 327.4 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.01509, allocations: 4 kB / 327.5 MB, free: 5.047 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.01522, allocations: 43.92 kB / 327.5 MB, free: 5.004 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.01522, allocations: 4 kB / 327.5 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.412e-05/0.01528, allocations: 11.98 kB / 327.5 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.0153, allocations: 8 kB / 327.5 MB, free: 4.98 MB / 298.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 8.98e-05/0.01539, allocations: 132.5 kB / 327.6 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.829e-05/0.01542, allocations: 11.98 kB / 327.7 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000165/0.01558, allocations: 122 kB / 327.8 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.01558, allocations: 7.984 kB / 327.8 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.01559, allocations: 0 / 327.8 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.01559, allocations: 3.938 kB / 327.8 MB, free: 4.691 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005668/0.01616, allocations: 0.603 MB / 328.4 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.01616, allocations: 7.938 kB / 328.4 MB, free: 3.992 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.252e-05/0.01622, allocations: 27.98 kB / 328.4 MB, free: 3.965 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.01623, allocations: 4 kB / 328.4 MB, free: 3.961 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.01624, allocations: 8 kB / 328.4 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.01624, allocations: 11.94 kB / 328.5 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.01625, allocations: 4 kB / 328.5 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002313/0.01648, allocations: 390.5 kB / 328.8 MB, free: 3.473 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.94e-05/0.01651, allocations: 19.89 kB / 328.9 MB, free: 3.453 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.01653, allocations: 16 kB / 328.9 MB, free: 3.438 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.319e-05/0.01661, allocations: 4 kB / 328.9 MB, free: 3.434 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.755e-05/0.01663, allocations: 23.91 kB / 328.9 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.01664, allocations: 8 kB / 328.9 MB, free: 3.402 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.334e-05/0.01669, allocations: 52.66 kB / 329 MB, free: 3.348 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01669, allocations: 3.938 kB / 329 MB, free: 3.344 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002375/0.01693, allocations: 52 kB / 329 MB, free: 3.293 MB / 298.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.0001/0.01703, allocations: 88.36 kB / 329.1 MB, free: 3.195 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001632/0.01719, allocations: 112.5 kB / 329.2 MB, free: 3.082 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.0172, allocations: 0 / 329.2 MB, free: 3.082 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.594e-05/0.01725, allocations: 54.16 kB / 329.3 MB, free: 3.027 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.01751, allocations: 53.38 kB / 329.3 MB, free: 2.977 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008906/0.0184, allocations: 0.5506 MB / 329.9 MB, free: 2.344 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.683e-05/0.01848, allocations: 99.95 kB / 330 MB, free: 2.227 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.993e-05/0.01855, allocations: 17.64 kB / 330 MB, free: 2.207 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.6e-05/0.01865, allocations: 71.36 kB / 330.1 MB, free: 2.137 MB / 298.7 MB Notification: Performance of SimCode: time 9.92e-07/0.01865, allocations: 4 kB / 330.1 MB, free: 2.133 MB / 298.7 MB Notification: Performance of Templates: time 0.00404/0.02269, allocations: 1.971 MB / 332 MB, free: 192 kB / 298.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1874152459204197]