Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 107.6 kB / 17.06 MB, free: 5.824 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.001596/0.001597, allocations: 192 kB / 18 MB, free: 4.977 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.486/1.486, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2524/0.2524, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001382, allocations: 71.89 kB / 458.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.4008, allocations: 58.04 MB / 0.5041 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.007563/0.4085, allocations: 5.441 MB / 0.5094 GB, free: 3.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002401/0.4109, allocations: 1.111 MB / 0.5105 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003978/0.4114, allocations: 18.25 kB / 0.5105 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000319/0.4117, allocations: 82.7 kB / 0.5106 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001254/0.4131, allocations: 300.6 kB / 0.5109 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005352/0.4136, allocations: 143.9 kB / 0.511 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001196/0.4149, allocations: 0.7007 MB / 0.5117 GB, free: 2.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004381/0.4153, allocations: 171.9 kB / 0.5119 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008265/0.4161, allocations: 318.5 kB / 0.5122 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007415/0.4169, allocations: 334.8 kB / 0.5125 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.755e-05/0.417, allocations: 33.41 kB / 0.5125 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.4171, allocations: 34.28 kB / 0.5125 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002691/0.4174, allocations: 159.9 kB / 0.5127 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002928/0.4177, allocations: 238.6 kB / 0.5129 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007069/0.4184, allocations: 498.5 kB / 0.5134 GB, free: 1.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.4184, allocations: 1.062 kB / 0.5134 GB, free: 1.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4184, allocations: 0 / 0.5134 GB, free: 1.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.4184, allocations: 0 / 0.5134 GB, free: 1.75 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001321/0.4198, allocations: 0.7874 MB / 0.5142 GB, free: 1.156 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.4198, allocations: 8.906 kB / 0.5142 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.664e-05/0.4199, allocations: 58.61 kB / 0.5142 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006858/0.4206, allocations: 468.8 kB / 0.5147 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/0.4206, allocations: 24.59 kB / 0.5147 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.597e-05/0.4207, allocations: 40.64 kB / 0.5147 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008197/0.4216, allocations: 457.9 kB / 0.5152 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.4216, allocations: 4.906 kB / 0.5152 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.451e-05/0.4216, allocations: 16.75 kB / 0.5152 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/0.4217, allocations: 13.44 kB / 0.5152 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006209/0.4223, allocations: 309.3 kB / 0.5155 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002489/0.4248, allocations: 1.762 MB / 0.5172 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.4251, allocations: 141.1 kB / 0.5174 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.4253, allocations: 57.09 kB / 0.5174 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.4253, allocations: 2.406 kB / 0.5174 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.4253, allocations: 37.72 kB / 0.5175 GB, free: 14.83 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 2.034e-06/0.4253, allocations: 3.938 kB / 0.5175 GB, free: 14.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.0012/0.4265, allocations: 0.5986 MB / 0.518 GB, free: 14.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.4267, allocations: 109.7 kB / 0.5181 GB, free: 14.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005735/0.4273, allocations: 375.2 kB / 0.5185 GB, free: 14.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.4273, allocations: 30.3 kB / 0.5185 GB, free: 13.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002344/0.4275, allocations: 279.6 kB / 0.5188 GB, free: 13.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.564e-05/0.4276, allocations: 57.11 kB / 0.5189 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.4277, allocations: 59.31 kB / 0.5189 GB, free: 13.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.4279, allocations: 347.4 kB / 0.5192 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.428, allocations: 50.64 kB / 0.5193 GB, free: 13.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002346/0.4283, allocations: 195.9 kB / 0.5195 GB, free: 13.12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003394/0.4286, allocations: 263.6 kB / 0.5197 GB, free: 12.88 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.4286, allocations: 1.344 kB / 0.5197 GB, free: 12.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004839/0.4291, allocations: 302.6 kB / 0.52 GB, free: 12.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.4291, allocations: 6.406 kB / 0.52 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.4292, allocations: 6.203 kB / 0.52 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.519e-05/0.4292, allocations: 7.688 kB / 0.52 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000279/0.4295, allocations: 68.77 kB / 0.5201 GB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.229e-05/0.4295, allocations: 15.86 kB / 0.5201 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001834/0.4297, allocations: 18.53 kB / 0.5201 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.322e-05/0.4297, allocations: 18.53 kB / 0.5202 GB, free: 12.7 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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.000239/0.43, allocations: 178.4 kB / 0.5203 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.122e-05/0.4301, allocations: 33.14 kB / 0.5204 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000353/0.4304, allocations: 177.5 kB / 0.5205 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.4304, allocations: 2.25 kB / 0.5205 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.4305, allocations: 6.281 kB / 0.5205 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.4305, allocations: 0.6562 kB / 0.5205 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008389/0.4313, allocations: 0.5338 MB / 0.5211 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.4313, allocations: 1.219 kB / 0.5211 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.4315, allocations: 33.11 kB / 0.5211 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.4315, allocations: 1.125 kB / 0.5211 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.4316, allocations: 6.75 kB / 0.5211 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.4316, allocations: 2.219 kB / 0.5211 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.4316, allocations: 9.156 kB / 0.5211 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004872/0.4321, allocations: 395.9 kB / 0.5215 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.641e-05/0.4322, allocations: 108 kB / 0.5216 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.225e-05/0.4322, allocations: 6.203 kB / 0.5216 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.4324, allocations: 6.812 kB / 0.5216 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.265e-05/0.4324, allocations: 22.08 kB / 0.5216 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.4325, allocations: 5.109 kB / 0.5216 GB, free: 11.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002849/0.4328, allocations: 251 kB / 0.5219 GB, free: 11.45 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4328, allocations: 0 / 0.5219 GB, free: 11.45 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004589/0.4332, allocations: 73.31 kB / 0.5219 GB, free: 11.44 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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.0001228/0.4334, allocations: 106.9 kB / 0.522 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003295/0.4337, allocations: 157.9 kB / 0.5222 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.4337, allocations: 1.344 kB / 0.5222 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.4338, allocations: 57.75 kB / 0.5222 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007139/0.4345, allocations: 98.59 kB / 0.5223 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001515/0.4361, allocations: 0.8624 MB / 0.5232 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.4365, allocations: 0.8391 MB / 0.524 GB, free: 9.973 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000166/0.4367, allocations: 55.89 kB / 0.5241 GB, free: 9.953 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.223e-05/0.4368, allocations: 32.06 kB / 0.5241 GB, free: 9.945 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4368, allocations: 0 / 0.5241 GB, free: 9.945 MB / 398.1 MB Notification: Performance of Templates: time 0.01006/0.4468, allocations: 3.299 MB / 0.5273 GB, free: 9.664 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches