Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.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.FixedLoadTest,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.FixedLoadTest") translateModel(PowerSystems.Examples.Generic.Test.FixedLoadTest,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.FixedLoadTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001362/0.001362, allocations: 176.4 kB / 17.4 MB, free: 4.426 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.53/1.53, allocations: 205.4 MB / 223.5 MB, free: 9.023 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.0007657/0.0007658, allocations: 86.42 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1676/0.1676, allocations: 38.08 MB / 358.3 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003957/0.0003958, allocations: 12 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2553, allocations: 56.31 MB / 481.6 MB, free: 9.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1279/0.3833, allocations: 94.84 MB / 0.5629 GB, free: 7.418 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002832/0.3836, allocations: 87.81 kB / 0.563 GB, free: 7.336 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03401/0.4177, allocations: 14.21 MB / 0.5769 GB, free: 8.953 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4177, allocations: 0 / 0.5769 GB, free: 8.953 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.315e-05/0.4177, allocations: 15.94 kB / 0.5769 GB, free: 8.938 MB / 410.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.0008855/0.4186, allocations: 0.499 MB / 0.5774 GB, free: 8.387 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.4187, allocations: 8.031 kB / 0.5774 GB, free: 8.379 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001027/0.4197, allocations: 112.5 kB / 0.5775 GB, free: 8.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003884/0.4201, allocations: 271.8 kB / 0.5777 GB, free: 7.965 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.4202, allocations: 8.375 kB / 0.5777 GB, free: 7.957 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.398e-05/0.4202, allocations: 20.38 kB / 0.5778 GB, free: 7.938 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004926/0.4207, allocations: 326.1 kB / 0.5781 GB, free: 7.598 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.4207, allocations: 192 / 0.5781 GB, free: 7.598 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.755e-05/0.4208, allocations: 7.938 kB / 0.5781 GB, free: 7.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.606e-05/0.4209, allocations: 23.98 kB / 0.5781 GB, free: 7.566 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004507/0.4213, allocations: 311.6 kB / 0.5784 GB, free: 7.262 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.4229, allocations: 1.252 MB / 0.5796 GB, free: 5.922 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002614/0.4231, allocations: 177 kB / 0.5798 GB, free: 5.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.4233, allocations: 101.7 kB / 0.5799 GB, free: 5.625 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.4233, allocations: 0 / 0.5799 GB, free: 5.625 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.4234, allocations: 34.56 kB / 0.5799 GB, free: 5.582 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 1.663e-06/0.4234, allocations: 0 / 0.5799 GB, free: 5.582 MB / 410.7 MB Notification: Performance of matching and sorting (n=18): time 0.001476/0.4249, allocations: 0.6621 MB / 0.5806 GB, free: 4.895 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.4249, allocations: 85.12 kB / 0.5807 GB, free: 4.793 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.4251, allocations: 190.3 kB / 0.5808 GB, free: 4.594 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.4251, allocations: 29.7 kB / 0.5809 GB, free: 4.559 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.784e-05/0.4252, allocations: 152 kB / 0.581 GB, free: 4.406 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.676e-05/0.4253, allocations: 67.08 kB / 0.5811 GB, free: 4.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.989e-06/0.4253, allocations: 0 / 0.5811 GB, free: 4.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.4254, allocations: 334.7 kB / 0.5814 GB, free: 4.004 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.4255, allocations: 79.95 kB / 0.5815 GB, free: 3.926 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.4257, allocations: 152.5 kB / 0.5816 GB, free: 3.746 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002956/0.426, allocations: 248.4 kB / 0.5819 GB, free: 3.473 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.426, allocations: 0 / 0.5819 GB, free: 3.473 MB / 410.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005846/0.4266, allocations: 347.7 kB / 0.5822 GB, free: 3.125 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.4266, allocations: 8 kB / 0.5822 GB, free: 3.117 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.4266, allocations: 0 / 0.5822 GB, free: 3.117 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003609/0.427, allocations: 101 kB / 0.5823 GB, free: 3.016 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.4272, allocations: 35.98 kB / 0.5823 GB, free: 2.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002148/0.4293, allocations: 1.951 MB / 0.5842 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.4295, allocations: 15.92 kB / 0.5842 GB, free: 0.8789 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.4296, allocations: 12.12 kB / 0.5843 GB, free: 0.8672 MB / 410.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 (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.4297, allocations: 149.8 kB / 0.5844 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.569e-05/0.4298, allocations: 35.58 kB / 0.5844 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005689/0.4303, allocations: 320 kB / 0.5847 GB, free: 364 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.4304, allocations: 4 kB / 0.5847 GB, free: 360 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.4304, allocations: 0 / 0.5847 GB, free: 360 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.4304, allocations: 0 / 0.5847 GB, free: 360 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.4314, allocations: 0.7375 MB / 0.5855 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.4315, allocations: 3.938 kB / 0.5855 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.4316, allocations: 27.92 kB / 0.5855 GB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002577/0.4319, allocations: 80.78 kB / 0.5856 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.821e-05/0.4319, allocations: 3.984 kB / 0.5856 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001739/0.4336, allocations: 1.818 MB / 0.5873 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.4337, allocations: 7.969 kB / 0.5874 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005768/0.4342, allocations: 407.2 kB / 0.5877 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.723e-05/0.4343, allocations: 96.92 kB / 0.5878 GB, free: 12.94 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.4343, allocations: 128 / 0.5878 GB, free: 12.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.4345, allocations: 15.98 kB / 0.5878 GB, free: 12.92 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.4345, allocations: 19.92 kB / 0.5879 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.4346, allocations: 7.938 kB / 0.5879 GB, free: 12.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001329/0.4347, allocations: 148.1 kB / 0.588 GB, free: 12.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4347, allocations: 4 kB / 0.588 GB, free: 12.75 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004706/0.4352, allocations: 72 kB / 0.5881 GB, free: 12.68 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (16): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001351/0.4353, allocations: 111.2 kB / 0.5882 GB, free: 12.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000675/0.436, allocations: 367.2 kB / 0.5885 GB, free: 12.18 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.436, allocations: 3.938 kB / 0.5885 GB, free: 12.18 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003498/0.4364, allocations: 262.4 kB / 0.5888 GB, free: 11.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.4367, allocations: 27.97 kB / 0.5888 GB, free: 11.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008434/0.4376, allocations: 0.565 MB / 0.5894 GB, free: 11.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.4379, allocations: 0.7717 MB / 0.5901 GB, free: 10.49 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000138/0.4381, allocations: 37.52 kB / 0.5902 GB, free: 10.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.422e-05/0.4381, allocations: 19.44 kB / 0.5902 GB, free: 10.43 MB / 426.7 MB Notification: Performance of SimCode: time 7.02e-07/0.4381, allocations: 0 / 0.5902 GB, free: 10.43 MB / 426.7 MB Notification: Performance of Templates: time 0.005572/0.4437, allocations: 2.643 MB / 0.5928 GB, free: 7.789 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedLoadTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,line.i[1],line.i[2],line.p[1],line.p[2],line.v[1],line.v[2] Variables in the result:line.L,line.R,line.i[1],line.i[2],line.i_start[1],line.i_start[2],line.p[1],line.p[2],line.terminal_p.v[1],line.v[1],line.v[2],line.v_start[1],line.v_start[2],load.P,load.p[1],load.phi,load.v_start[1],load.v_start[2],source.V,source.definiteReference,source.potentialReference,source.terminal.v[1],system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.omega_nom,system.refType,system.synRef,system.w_nom,time