Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.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.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") translateModel(PowerSystems.Examples.Generic.Test.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 111.9 kB / 17.74 MB, free: 5.359 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.001061/0.001061, allocations: 179.1 kB / 18.66 MB, free: 4.441 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.344/1.344, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1716/0.1716, allocations: 38.03 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 67.89 kB / 458.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3598, allocations: 58.05 MB / 0.5048 GB, free: 7.977 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.004973/0.3649, allocations: 3.43 MB / 0.5081 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001889/0.3668, allocations: 1.444 MB / 0.5095 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.3669, allocations: 6.125 kB / 0.5095 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008287/0.3678, allocations: 259.9 kB / 0.5098 GB, free: 4.418 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005893/0.3684, allocations: 278.6 kB / 0.51 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002856/0.3687, allocations: 114.6 kB / 0.5101 GB, free: 4.215 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004439/0.3691, allocations: 337.5 kB / 0.5105 GB, free: 4.074 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003412/0.3695, allocations: 145.8 kB / 0.5106 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002558/0.3697, allocations: 156.4 kB / 0.5108 GB, free: 3.941 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002512/0.37, allocations: 142.4 kB / 0.5109 GB, free: 3.887 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.411e-05/0.37, allocations: 14 kB / 0.5109 GB, free: 3.887 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005091/0.3706, allocations: 308.2 kB / 0.5112 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.3707, allocations: 99.86 kB / 0.5113 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.3708, allocations: 107.2 kB / 0.5114 GB, free: 3.672 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005477/0.3714, allocations: 345 kB / 0.5117 GB, free: 3.551 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3714, allocations: 0.7031 kB / 0.5117 GB, free: 3.551 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3714, allocations: 0 / 0.5117 GB, free: 3.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.3714, allocations: 1.219 kB / 0.5117 GB, free: 3.551 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.0006965/0.3721, allocations: 0.5067 MB / 0.5122 GB, free: 3.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.3722, allocations: 8.812 kB / 0.5122 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008701/0.3731, allocations: 95.3 kB / 0.5123 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003065/0.3734, allocations: 266.4 kB / 0.5126 GB, free: 2.832 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.3734, allocations: 15.48 kB / 0.5126 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.601e-05/0.3735, allocations: 23.69 kB / 0.5126 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005257/0.374, allocations: 312.9 kB / 0.5129 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.374, allocations: 5.438 kB / 0.5129 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.3741, allocations: 9.922 kB / 0.5129 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-05/0.3741, allocations: 15.75 kB / 0.5129 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004587/0.3746, allocations: 295.8 kB / 0.5132 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00158/0.3762, allocations: 1.287 MB / 0.5145 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005682/0.3767, allocations: 212.1 kB / 0.5147 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.476e-05/0.3768, allocations: 56.7 kB / 0.5147 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.3769, allocations: 6.25 kB / 0.5147 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.3769, allocations: 32.28 kB / 0.5148 GB, free: 1.383 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.412e-06/0.3769, allocations: 1.25 kB / 0.5148 GB, free: 1.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009461/0.3779, allocations: 430.1 kB / 0.5152 GB, free: 1.121 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.3779, allocations: 79.95 kB / 0.5153 GB, free: 1.027 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.3781, allocations: 197.1 kB / 0.5155 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.3781, allocations: 35.33 kB / 0.5155 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.924e-05/0.3782, allocations: 158.2 kB / 0.5156 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.023e-05/0.3783, allocations: 49.91 kB / 0.5157 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.017e-05/0.3783, allocations: 53.41 kB / 0.5157 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.974e-05/0.3784, allocations: 328 kB / 0.516 GB, free: 324 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.773e-05/0.3785, allocations: 57.56 kB / 0.5161 GB, free: 304 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.3786, allocations: 149.9 kB / 0.5162 GB, free: 156 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.3789, allocations: 224.1 kB / 0.5165 GB, free: 15.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3789, allocations: 5.469 kB / 0.5165 GB, free: 15.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004666/0.3794, allocations: 258 kB / 0.5167 GB, free: 15.85 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3794, allocations: 7.562 kB / 0.5167 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.3795, allocations: 6.594 kB / 0.5167 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002418/0.3797, allocations: 41.92 kB / 0.5168 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.3799, allocations: 42.86 kB / 0.5168 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00125/0.3811, allocations: 1.435 MB / 0.5182 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001228/0.3813, allocations: 9.172 kB / 0.5182 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.3813, allocations: 10.19 kB / 0.5182 GB, free: 14.4 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001926/0.3815, allocations: 164.1 kB / 0.5184 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.147e-05/0.3815, allocations: 20.52 kB / 0.5184 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004523/0.382, allocations: 195.8 kB / 0.5186 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.82e-06/0.382, allocations: 2.953 kB / 0.5186 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.382, allocations: 1.031 kB / 0.5186 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.382, allocations: 1.109 kB / 0.5186 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008881/0.3829, allocations: 0.563 MB / 0.5191 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.3829, allocations: 2.562 kB / 0.5191 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.3831, allocations: 22.98 kB / 0.5192 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00015/0.3832, allocations: 32.62 kB / 0.5192 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.3832, allocations: 9.781 kB / 0.5192 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001167/0.3844, allocations: 1.428 MB / 0.5206 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.3844, allocations: 1.875 kB / 0.5206 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004449/0.3849, allocations: 305.2 kB / 0.5209 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.471e-05/0.385, allocations: 91.72 kB / 0.521 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.475e-05/0.385, allocations: 3.438 kB / 0.521 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.3851, allocations: 7.391 kB / 0.521 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.901e-05/0.3851, allocations: 13.22 kB / 0.521 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.3852, allocations: 5.516 kB / 0.521 GB, free: 11.92 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001321/0.3853, allocations: 145.1 kB / 0.5211 GB, free: 11.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3853, allocations: 0 / 0.5211 GB, free: 11.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003955/0.3857, allocations: 53.09 kB / 0.5212 GB, free: 11.81 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001281/0.3858, allocations: 105.7 kB / 0.5213 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004976/0.3863, allocations: 271.3 kB / 0.5216 GB, free: 11.55 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3864, allocations: 0 / 0.5216 GB, free: 11.55 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.3866, allocations: 183.8 kB / 0.5217 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000378/0.387, allocations: 28.17 kB / 0.5218 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008733/0.3879, allocations: 485.5 kB / 0.5222 GB, free: 11.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/0.3883, allocations: 0.7572 MB / 0.523 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.392e-05/0.3883, allocations: 18.17 kB / 0.523 GB, free: 10.38 MB / 398.1 MB Notification: Performance of SimCode: time 1.81e-07/0.3883, allocations: 0 / 0.523 GB, free: 10.38 MB / 398.1 MB Notification: Performance of Templates: time 0.006157/0.3945, allocations: 3.17 MB / 0.5261 GB, free: 10.12 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.ImpedanceTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches