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.001513/0.001513, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008488/0.0008488, allocations: 89.92 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2155/0.2155, allocations: 37.99 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.394e-05/2.406e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.1866, allocations: 56.33 MB / 466.9 MB, free: 6.566 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.506/0.6927, allocations: 93.93 MB / 0.5477 GB, free: 0.9844 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/0.693, allocations: 79.95 kB / 0.5478 GB, free: 0.9062 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0344/0.7274, allocations: 14.15 MB / 0.5616 GB, free: 2.605 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.7275, allocations: 4 kB / 0.5616 GB, free: 2.602 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.7275, allocations: 4 kB / 0.5616 GB, free: 2.598 MB / 395.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.0006683/0.7282, allocations: 490.1 kB / 0.5621 GB, free: 2.074 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.7282, allocations: 12.03 kB / 0.5621 GB, free: 2.062 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008431/0.7291, allocations: 99.56 kB / 0.5622 GB, free: 1.965 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003543/0.7294, allocations: 262.5 kB / 0.5624 GB, free: 1.668 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/0.7295, allocations: 4 kB / 0.5624 GB, free: 1.664 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.991e-05/0.7295, allocations: 20 kB / 0.5624 GB, free: 1.645 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003209/0.7298, allocations: 192.3 kB / 0.5626 GB, free: 1.457 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003966/0.7302, allocations: 285.7 kB / 0.5629 GB, free: 1.152 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.7303, allocations: 0 / 0.5629 GB, free: 1.152 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.336e-05/0.7303, allocations: 0 / 0.5629 GB, free: 1.152 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-05/0.7304, allocations: 23.98 kB / 0.5629 GB, free: 1.129 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.732, allocations: 1.227 MB / 0.5641 GB, free: 15.83 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003935/0.7324, allocations: 229.1 kB / 0.5643 GB, free: 15.59 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.7325, allocations: 93.73 kB / 0.5644 GB, free: 15.49 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.7326, allocations: 4.234 kB / 0.5644 GB, free: 15.48 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.7326, allocations: 38.56 kB / 0.5645 GB, free: 15.44 MB / 411.1 MB Notification: Performance of pre-optimization done (n=16): time 1.804e-06/0.7326, allocations: 0 / 0.5645 GB, free: 15.44 MB / 411.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006432/0.7333, allocations: 344.2 kB / 0.5648 GB, free: 15.09 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.7333, allocations: 77.11 kB / 0.5649 GB, free: 15 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.7335, allocations: 171.1 kB / 0.565 GB, free: 14.82 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.7335, allocations: 25.7 kB / 0.5651 GB, free: 14.79 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.7336, allocations: 155.8 kB / 0.5652 GB, free: 14.64 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.039e-05/0.7337, allocations: 59.11 kB / 0.5653 GB, free: 14.58 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.04e-05/0.7337, allocations: 0 / 0.5653 GB, free: 14.58 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.7339, allocations: 330.8 kB / 0.5656 GB, free: 14.25 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.734, allocations: 80.47 kB / 0.5657 GB, free: 14.16 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.7341, allocations: 147.1 kB / 0.5658 GB, free: 13.99 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000152/0.7343, allocations: 99.94 kB / 0.5659 GB, free: 13.89 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.7343, allocations: 0 / 0.5659 GB, free: 13.89 MB / 411.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003713/0.7347, allocations: 269 kB / 0.5661 GB, free: 13.62 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.7347, allocations: 8.234 kB / 0.5662 GB, free: 13.62 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.7347, allocations: 8 kB / 0.5662 GB, free: 13.61 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.7347, allocations: 4 kB / 0.5662 GB, free: 13.61 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002426/0.735, allocations: 55.89 kB / 0.5662 GB, free: 13.55 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.735, allocations: 4 kB / 0.5662 GB, free: 13.55 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.7352, allocations: 15.98 kB / 0.5662 GB, free: 13.53 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.7352, allocations: 12 kB / 0.5662 GB, free: 13.52 MB / 411.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 () * 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.0001009/0.7353, allocations: 108.9 kB / 0.5664 GB, free: 13.41 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.233e-05/0.7354, allocations: 15.81 kB / 0.5664 GB, free: 13.39 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000375/0.7358, allocations: 219.3 kB / 0.5666 GB, free: 13.17 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.7358, allocations: 7.984 kB / 0.5666 GB, free: 13.16 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.7358, allocations: 0 / 0.5666 GB, free: 13.16 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.7358, allocations: 0 / 0.5666 GB, free: 13.16 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/0.737, allocations: 0.8901 MB / 0.5675 GB, free: 12.18 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.737, allocations: 7.938 kB / 0.5675 GB, free: 12.18 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.7372, allocations: 27.98 kB / 0.5675 GB, free: 12.15 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.716e-06/0.7372, allocations: 8 kB / 0.5675 GB, free: 12.14 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.7372, allocations: 4 kB / 0.5675 GB, free: 12.14 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/0.7372, allocations: 11.92 kB / 0.5675 GB, free: 12.12 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/0.7372, allocations: 4 kB / 0.5675 GB, free: 12.12 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005492/0.7378, allocations: 0.5823 MB / 0.5681 GB, free: 11.38 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.692e-05/0.7379, allocations: 104.9 kB / 0.5682 GB, free: 11.25 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.641e-05/0.7379, allocations: 7.938 kB / 0.5682 GB, free: 11.25 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.7381, allocations: 7.984 kB / 0.5682 GB, free: 11.24 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.702e-05/0.7381, allocations: 23.94 kB / 0.5682 GB, free: 11.21 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.7382, allocations: 12 kB / 0.5682 GB, free: 11.2 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.000115/0.7383, allocations: 135.1 kB / 0.5684 GB, free: 11.07 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7383, allocations: 0 / 0.5684 GB, free: 11.07 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0003769/0.7387, allocations: 55.94 kB / 0.5684 GB, free: 11.02 MB / 411.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 () * 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 0.0001811/0.7389, allocations: 119.1 kB / 0.5685 GB, free: 10.89 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0003116/0.7392, allocations: 192.2 kB / 0.5687 GB, free: 10.7 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.7392, allocations: 4.125 kB / 0.5687 GB, free: 10.7 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.7393, allocations: 87.78 kB / 0.5688 GB, free: 10.61 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003277/0.7397, allocations: 32.16 kB / 0.5688 GB, free: 10.58 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007265/0.7404, allocations: 420.3 kB / 0.5692 GB, free: 10.1 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003926/0.7408, allocations: 0.7673 MB / 0.57 GB, free: 9.305 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0001493/0.741, allocations: 49.8 kB / 0.57 GB, free: 9.254 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.492e-05/0.741, allocations: 27.42 kB / 0.5701 GB, free: 9.227 MB / 411.1 MB Notification: Performance of SimCode: time 2.71e-07/0.741, allocations: 0 / 0.5701 GB, free: 9.227 MB / 411.1 MB Notification: Performance of Templates: time 0.004615/0.7457, allocations: 1.621 MB / 0.5716 GB, free: 7.609 MB / 411.1 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/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