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.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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 94 kB / 16.31 MB, free: 5.586 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.001356/0.001356, allocations: 181.5 kB / 17.2 MB, free: 5.504 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.267/1.267, allocations: 223.3 MB / 241.2 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2891/0.2891, allocations: 38.07 MB / 330.4 MB, free: 14.14 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002845/0.0002846, allocations: 8 kB / 400.1 MB, free: 9.246 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2401, allocations: 59.16 MB / 459.2 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.003028/0.2431, allocations: 3.206 MB / 462.4 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.2448, allocations: 1.452 MB / 463.9 MB, free: 26.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001272/0.2449, allocations: 11.03 kB / 463.9 MB, free: 26.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.2451, allocations: 39.44 kB / 463.9 MB, free: 26.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004841/0.2456, allocations: 213.9 kB / 464.2 MB, free: 26.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002292/0.2458, allocations: 96.59 kB / 464.2 MB, free: 26.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004492/0.2463, allocations: 447.4 kB / 464.7 MB, free: 26.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005177/0.2468, allocations: 307.7 kB / 465 MB, free: 26.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002078/0.247, allocations: 127.8 kB / 465.1 MB, free: 26.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002268/0.2473, allocations: 143.5 kB / 465.2 MB, free: 26.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.277e-05/0.2473, allocations: 12.78 kB / 465.3 MB, free: 26.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003619/0.2477, allocations: 177.6 kB / 465.4 MB, free: 26.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.2478, allocations: 92.58 kB / 465.5 MB, free: 26.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.971e-05/0.2479, allocations: 65.73 kB / 465.6 MB, free: 26.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003307/0.2482, allocations: 251.3 kB / 465.8 MB, free: 26.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2482, allocations: 0 / 465.8 MB, free: 26.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2482, allocations: 1.031 kB / 465.8 MB, free: 26.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.2482, allocations: 0 / 465.8 MB, free: 26.01 MB / 350.1 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.0004931/0.2487, allocations: 486.2 kB / 466.3 MB, free: 25.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.2488, allocations: 8.812 kB / 466.3 MB, free: 25.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007988/0.2496, allocations: 97.78 kB / 466.4 MB, free: 25.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.2499, allocations: 256.3 kB / 466.7 MB, free: 25.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.346e-05/0.2499, allocations: 24.14 kB / 466.7 MB, free: 25.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.028e-05/0.2499, allocations: 18.97 kB / 466.7 MB, free: 25.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004976/0.2504, allocations: 313.8 kB / 467 MB, free: 25.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.2505, allocations: 1.094 kB / 467 MB, free: 25.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.488e-05/0.2505, allocations: 10.81 kB / 467 MB, free: 25.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.38e-05/0.2505, allocations: 23.92 kB / 467 MB, free: 25.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004194/0.251, allocations: 283.4 kB / 467.3 MB, free: 25.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.2524, allocations: 1.268 MB / 468.6 MB, free: 24.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003753/0.2527, allocations: 237.9 kB / 468.8 MB, free: 23.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.2529, allocations: 95.88 kB / 468.9 MB, free: 23.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.2529, allocations: 3.125 kB / 468.9 MB, free: 23.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.2529, allocations: 40.22 kB / 469 MB, free: 23.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.543e-06/0.2529, allocations: 0 / 469 MB, free: 23.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006983/0.2536, allocations: 442.1 kB / 469.4 MB, free: 23.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.2537, allocations: 79.73 kB / 469.5 MB, free: 23.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001518/0.2538, allocations: 207.3 kB / 469.7 MB, free: 23.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.2e-05/0.2539, allocations: 26.95 kB / 469.7 MB, free: 23.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.043e-05/0.2539, allocations: 153.6 kB / 469.8 MB, free: 23.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.046e-05/0.254, allocations: 63.25 kB / 469.9 MB, free: 23.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.15e-05/0.254, allocations: 5 kB / 469.9 MB, free: 23.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.71e-05/0.254, allocations: 333.5 kB / 470.2 MB, free: 22.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.2542, allocations: 85.12 kB / 470.3 MB, free: 22.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.2543, allocations: 153.2 kB / 470.5 MB, free: 22.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.2545, allocations: 113.8 kB / 470.6 MB, free: 22.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2545, allocations: 1.062 kB / 470.6 MB, free: 22.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.00037/0.2549, allocations: 291.5 kB / 470.9 MB, free: 22.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.2549, allocations: 10.06 kB / 470.9 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.2549, allocations: 2.922 kB / 470.9 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.2549, allocations: 4.281 kB / 470.9 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002189/0.2552, allocations: 57.61 kB / 470.9 MB, free: 22.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.2552, allocations: 7.578 kB / 470.9 MB, free: 22.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001217/0.2553, allocations: 18.28 kB / 471 MB, free: 22.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.228e-05/0.2553, allocations: 9.188 kB / 471 MB, free: 22.56 MB / 350.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000109/0.2554, allocations: 160.9 kB / 471.1 MB, free: 22.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.786e-05/0.2555, allocations: 18.75 kB / 471.2 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003326/0.2558, allocations: 226.5 kB / 471.4 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.2558, allocations: 2.594 kB / 471.4 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2558, allocations: 1.312 kB / 471.4 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.2559, allocations: 5.875 kB / 471.4 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/0.257, allocations: 0.9521 MB / 472.3 MB, free: 21.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.257, allocations: 4.312 kB / 472.3 MB, free: 21.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001336/0.2571, allocations: 35.77 kB / 472.4 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.323e-06/0.2571, allocations: 11.64 kB / 472.4 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.2572, allocations: 5.469 kB / 472.4 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.873e-06/0.2572, allocations: 9.219 kB / 472.4 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.2572, allocations: 5.094 kB / 472.4 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003097/0.2575, allocations: 419.3 kB / 472.8 MB, free: 21.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.341e-05/0.2575, allocations: 97.39 kB / 472.9 MB, free: 21.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.399e-05/0.2576, allocations: 16.2 kB / 472.9 MB, free: 21.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.2577, allocations: 8.25 kB / 472.9 MB, free: 21.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.246e-05/0.2578, allocations: 25.05 kB / 473 MB, free: 21.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.2578, allocations: 9.688 kB / 473 MB, free: 21.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001026/0.2579, allocations: 149.4 kB / 473.1 MB, free: 21.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2579, allocations: 0 / 473.1 MB, free: 21.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003594/0.2583, allocations: 58.75 kB / 473.2 MB, free: 21.08 MB / 350.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.146e-05/0.2584, allocations: 109.2 kB / 473.3 MB, free: 20.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003037/0.2587, allocations: 216.7 kB / 473.5 MB, free: 20.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2587, allocations: 0 / 473.5 MB, free: 20.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.2588, allocations: 103.2 kB / 473.6 MB, free: 20.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004216/0.2592, allocations: 39.72 kB / 473.6 MB, free: 20.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000709/0.26, allocations: 0.653 MB / 474.3 MB, free: 20.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.2602, allocations: 0.7653 MB / 475 MB, free: 19.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001526/0.2603, allocations: 53.62 kB / 475.1 MB, free: 19.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.764e-05/0.2604, allocations: 18.69 kB / 475.1 MB, free: 19.66 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2604, allocations: 1.156 kB / 475.1 MB, free: 19.66 MB / 350.1 MB Notification: Performance of Templates: time 0.004242/0.2647, allocations: 1.692 MB / 476.8 MB, free: 19.3 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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