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.001254/0.001254, allocations: 111.5 kB / 17.06 MB, free: 5.973 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.001374/0.001375, allocations: 200 kB / 18.01 MB, free: 5.055 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.518/1.518, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2119/0.2119, allocations: 38.05 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 59.91 kB / 458.2 MB, free: 6.867 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4104/0.4118, allocations: 58.05 MB / 0.5041 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.005134/0.417, allocations: 3.474 MB / 0.5075 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002147/0.4192, allocations: 1.493 MB / 0.509 GB, free: 4.254 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001588/0.4194, allocations: 4.781 kB / 0.509 GB, free: 4.254 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009189/0.4203, allocations: 257.5 kB / 0.5092 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006755/0.421, allocations: 287.8 kB / 0.5095 GB, free: 3.945 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003929/0.4214, allocations: 125.9 kB / 0.5096 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004344/0.4218, allocations: 341.6 kB / 0.5099 GB, free: 3.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003055/0.4221, allocations: 144.4 kB / 0.5101 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002715/0.4224, allocations: 156.1 kB / 0.5102 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002788/0.4227, allocations: 147 kB / 0.5103 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.041e-05/0.4227, allocations: 14.25 kB / 0.5104 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006446/0.4234, allocations: 338.4 kB / 0.5107 GB, free: 3.426 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.4235, allocations: 97.42 kB / 0.5108 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.4237, allocations: 107.4 kB / 0.5109 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005394/0.4242, allocations: 359.9 kB / 0.5112 GB, free: 3.207 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.4242, allocations: 5.891 kB / 0.5112 GB, free: 3.203 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4242, allocations: 0 / 0.5112 GB, free: 3.203 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.4243, allocations: 0 / 0.5112 GB, free: 3.203 MB / 382.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.0007316/0.425, allocations: 0.5094 MB / 0.5117 GB, free: 2.742 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.425, allocations: 9.375 kB / 0.5117 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009526/0.426, allocations: 92.73 kB / 0.5118 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000392/0.4264, allocations: 275.6 kB / 0.5121 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.4264, allocations: 10.75 kB / 0.5121 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/0.4265, allocations: 20.8 kB / 0.5121 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005993/0.4271, allocations: 315.3 kB / 0.5124 GB, free: 2.301 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.4271, allocations: 7.938 kB / 0.5124 GB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.4272, allocations: 11.48 kB / 0.5124 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-05/0.4272, allocations: 20.77 kB / 0.5125 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005489/0.4278, allocations: 292.4 kB / 0.5127 GB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/0.4296, allocations: 1.258 MB / 0.514 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004745/0.4301, allocations: 230.4 kB / 0.5142 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001449/0.4302, allocations: 101.6 kB / 0.5143 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.111e-05/0.4303, allocations: 2.188 kB / 0.5143 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.4303, allocations: 37.94 kB / 0.5143 GB, free: 1.062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.683e-06/0.4303, allocations: 0 / 0.5143 GB, free: 1.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008371/0.4312, allocations: 447.9 kB / 0.5147 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.245e-05/0.4312, allocations: 80.42 kB / 0.5148 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.4314, allocations: 207.8 kB / 0.515 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.4314, allocations: 27.95 kB / 0.515 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.893e-05/0.4315, allocations: 156.8 kB / 0.5152 GB, free: 460 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.896e-05/0.4316, allocations: 59.25 kB / 0.5153 GB, free: 412 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.835e-05/0.4316, allocations: 48.81 kB / 0.5153 GB, free: 380 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.171e-05/0.4317, allocations: 329.8 kB / 0.5156 GB, free: 52 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.4319, allocations: 84.58 kB / 0.5157 GB, free: 24 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.4321, allocations: 159.2 kB / 0.5158 GB, free: 15.9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.4324, allocations: 266.8 kB / 0.5161 GB, free: 15.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4324, allocations: 5.531 kB / 0.5161 GB, free: 15.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004769/0.4329, allocations: 294.3 kB / 0.5164 GB, free: 15.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.4329, allocations: 10.33 kB / 0.5164 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.433, allocations: 5.062 kB / 0.5164 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.433, allocations: 5.156 kB / 0.5164 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002771/0.4333, allocations: 56.23 kB / 0.5165 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.578e-05/0.4333, allocations: 4.328 kB / 0.5165 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.4334, allocations: 18.3 kB / 0.5165 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.542e-05/0.4335, allocations: 8.75 kB / 0.5165 GB, free: 15.57 MB / 398.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000183/0.4337, allocations: 160.7 kB / 0.5166 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.235e-05/0.4337, allocations: 15.94 kB / 0.5167 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000487/0.4342, allocations: 235.3 kB / 0.5169 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.4342, allocations: 6.297 kB / 0.5169 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.4343, allocations: 1.922 kB / 0.5169 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.4343, allocations: 0.6562 kB / 0.5169 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.4359, allocations: 0.95 MB / 0.5178 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.4359, allocations: 3.484 kB / 0.5178 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001434/0.4361, allocations: 32.77 kB / 0.5179 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.076e-05/0.4361, allocations: 4.625 kB / 0.5179 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.4361, allocations: 10.5 kB / 0.5179 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.635e-06/0.4361, allocations: 10.62 kB / 0.5179 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.75e-06/0.4361, allocations: 8.531 kB / 0.5179 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004769/0.4366, allocations: 422.9 kB / 0.5183 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.532e-05/0.4367, allocations: 95.73 kB / 0.5184 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.467e-05/0.4368, allocations: 10.77 kB / 0.5184 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/0.4369, allocations: 13.03 kB / 0.5184 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.945e-05/0.437, allocations: 22.12 kB / 0.5184 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.437, allocations: 12.81 kB / 0.5184 GB, free: 14.2 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001413/0.4372, allocations: 150.4 kB / 0.5186 GB, free: 14.1 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4372, allocations: 1 kB / 0.5186 GB, free: 14.1 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000381/0.4376, allocations: 54.38 kB / 0.5186 GB, free: 14.09 MB / 398.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 (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.0001386/0.4377, allocations: 104.4 kB / 0.5187 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004875/0.4382, allocations: 227.2 kB / 0.519 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.4382, allocations: 4.125 kB / 0.519 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000168/0.4384, allocations: 98.19 kB / 0.519 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004828/0.4389, allocations: 39.69 kB / 0.5191 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.4401, allocations: 0.5661 MB / 0.5196 GB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004615/0.4406, allocations: 0.7628 MB / 0.5204 GB, free: 12.76 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000154/0.4408, allocations: 52.38 kB / 0.5204 GB, free: 12.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.083e-05/0.4409, allocations: 24.08 kB / 0.5205 GB, free: 12.75 MB / 398.1 MB Notification: Performance of SimCode: time 1.974e-06/0.4409, allocations: 1.344 kB / 0.5205 GB, free: 12.75 MB / 398.1 MB Notification: Performance of Templates: time 0.006614/0.4475, allocations: 1.92 MB / 0.5223 GB, free: 12.57 MB / 398.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches