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.001469/0.001469, allocations: 108.5 kB / 17.06 MB, free: 6.023 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.001479/0.001479, allocations: 192 kB / 18 MB, free: 5.105 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.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.1777/0.1777, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 67.89 kB / 458.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4081, allocations: 58.05 MB / 0.5041 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.004178/0.4123, allocations: 3.442 MB / 0.5075 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.4139, allocations: 1.451 MB / 0.5089 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.414, allocations: 5.5 kB / 0.5089 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007593/0.4148, allocations: 252.1 kB / 0.5091 GB, free: 4.266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005343/0.4153, allocations: 282.6 kB / 0.5094 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002591/0.4156, allocations: 118.5 kB / 0.5095 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003576/0.416, allocations: 342.8 kB / 0.5098 GB, free: 3.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000279/0.4163, allocations: 132 kB / 0.51 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002094/0.4165, allocations: 154.2 kB / 0.5101 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002004/0.4167, allocations: 155.6 kB / 0.5103 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.713e-05/0.4167, allocations: 13.81 kB / 0.5103 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004348/0.4172, allocations: 300.8 kB / 0.5106 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001317/0.4173, allocations: 101.9 kB / 0.5106 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.4174, allocations: 108.3 kB / 0.5108 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000505/0.418, allocations: 342.7 kB / 0.5111 GB, free: 3.406 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.418, allocations: 1.188 kB / 0.5111 GB, free: 3.406 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.418, allocations: 0 / 0.5111 GB, free: 3.406 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.418, allocations: 3.938 kB / 0.5111 GB, free: 3.402 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.0006531/0.4186, allocations: 0.5075 MB / 0.5116 GB, free: 2.941 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.4187, allocations: 9.031 kB / 0.5116 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000856/0.4195, allocations: 91.19 kB / 0.5117 GB, free: 2.926 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003191/0.4199, allocations: 266.2 kB / 0.5119 GB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.4199, allocations: 11.86 kB / 0.5119 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.147e-05/0.42, allocations: 27.47 kB / 0.512 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005004/0.4205, allocations: 316.8 kB / 0.5123 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.4205, allocations: 1 kB / 0.5123 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.669e-05/0.4205, allocations: 6.875 kB / 0.5123 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-05/0.4206, allocations: 19.34 kB / 0.5123 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004545/0.421, allocations: 291.2 kB / 0.5126 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.4225, allocations: 1.292 MB / 0.5138 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005305/0.423, allocations: 207.4 kB / 0.514 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.268e-05/0.4231, allocations: 57.77 kB / 0.5141 GB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.4231, allocations: 14.05 kB / 0.5141 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.637e-05/0.4232, allocations: 37.19 kB / 0.5141 GB, free: 1.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.273e-06/0.4232, allocations: 0 / 0.5141 GB, free: 1.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009423/0.4241, allocations: 430 kB / 0.5145 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.4242, allocations: 79.7 kB / 0.5146 GB, free: 0.875 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001989/0.4244, allocations: 203.9 kB / 0.5148 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.4244, allocations: 25.7 kB / 0.5148 GB, free: 0.707 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.804e-05/0.4245, allocations: 161.3 kB / 0.515 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.229e-05/0.4245, allocations: 46.86 kB / 0.515 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.421e-05/0.4246, allocations: 44.52 kB / 0.5151 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.289e-05/0.4247, allocations: 333.1 kB / 0.5154 GB, free: 176 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.285e-05/0.4248, allocations: 53.56 kB / 0.5155 GB, free: 160 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.4249, allocations: 149.5 kB / 0.5156 GB, free: 12 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002839/0.4252, allocations: 224 kB / 0.5158 GB, free: 15.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.4252, allocations: 1.125 kB / 0.5158 GB, free: 15.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004416/0.4257, allocations: 268.6 kB / 0.5161 GB, free: 15.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.4257, allocations: 7.594 kB / 0.5161 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.4257, allocations: 3.719 kB / 0.5161 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002248/0.4259, allocations: 38.88 kB / 0.5161 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.4261, allocations: 44.95 kB / 0.5162 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001425/0.4275, allocations: 1.44 MB / 0.5176 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001502/0.4277, allocations: 17.17 kB / 0.5176 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.817e-05/0.4277, allocations: 10.2 kB / 0.5176 GB, free: 14.24 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.0001955/0.4279, allocations: 152 kB / 0.5177 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.537e-05/0.428, allocations: 20.72 kB / 0.5178 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004908/0.4285, allocations: 200 kB / 0.5179 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.4285, allocations: 2.156 kB / 0.5179 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.4285, allocations: 1.766 kB / 0.5179 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.4285, allocations: 1.219 kB / 0.5179 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009461/0.4295, allocations: 0.556 MB / 0.5185 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.4295, allocations: 5.312 kB / 0.5185 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.4296, allocations: 23.97 kB / 0.5185 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001653/0.4298, allocations: 31.08 kB / 0.5185 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.4298, allocations: 6.953 kB / 0.5186 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.4311, allocations: 1.424 MB / 0.5199 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.4311, allocations: 2 kB / 0.5199 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000412/0.4315, allocations: 304.6 kB / 0.5202 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.4316, allocations: 92.47 kB / 0.5203 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.4317, allocations: 5.438 kB / 0.5203 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.4318, allocations: 3.062 kB / 0.5203 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.015e-05/0.4318, allocations: 23.34 kB / 0.5204 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.4318, allocations: 5.234 kB / 0.5204 GB, free: 11.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001198/0.432, allocations: 140.5 kB / 0.5205 GB, free: 11.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.432, allocations: 0 / 0.5205 GB, free: 11.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003968/0.4324, allocations: 53.25 kB / 0.5205 GB, free: 11.67 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.0001777/0.4326, allocations: 102.2 kB / 0.5206 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004702/0.433, allocations: 270.1 kB / 0.5209 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4331, allocations: 0 / 0.5209 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002237/0.4333, allocations: 179 kB / 0.5211 GB, free: 11.28 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.4337, allocations: 33.53 kB / 0.5211 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009367/0.4346, allocations: 448.6 kB / 0.5215 GB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004758/0.4351, allocations: 0.7603 MB / 0.5223 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.4352, allocations: 41.16 kB / 0.5223 GB, free: 10.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.096e-05/0.4353, allocations: 21.23 kB / 0.5223 GB, free: 10.26 MB / 398.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4353, allocations: 0 / 0.5223 GB, free: 10.26 MB / 398.1 MB Notification: Performance of Templates: time 0.005222/0.4405, allocations: 1.695 MB / 0.524 GB, free: 10.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.ImpedanceTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches