Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 108.8 kB / 17.06 MB, free: 6.137 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.001457/0.001457, allocations: 191 kB / 18 MB, free: 5.219 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.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1797/0.1797, allocations: 38.04 MB / 329.9 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 55.91 kB / 458.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3987/0.3999, allocations: 58.05 MB / 0.5041 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006018/0.406, allocations: 4.434 MB / 0.5084 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002629/0.4087, allocations: 1.41 MB / 0.5098 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002588/0.4089, allocations: 12 kB / 0.5098 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.4101, allocations: 385.9 kB / 0.5102 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006061/0.4107, allocations: 229 kB / 0.5104 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008028/0.4115, allocations: 247.5 kB / 0.5106 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006046/0.4121, allocations: 0.5337 MB / 0.5111 GB, free: 3.023 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004458/0.4126, allocations: 277.3 kB / 0.5114 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003544/0.413, allocations: 247.1 kB / 0.5116 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004347/0.4134, allocations: 292 kB / 0.5119 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.264e-05/0.4135, allocations: 30.97 kB / 0.5119 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002799/0.4138, allocations: 143.1 kB / 0.5121 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002392/0.414, allocations: 229.3 kB / 0.5123 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002472/0.4143, allocations: 236.4 kB / 0.5125 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000744/0.415, allocations: 0.5609 MB / 0.5131 GB, free: 2.246 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.415, allocations: 1.25 kB / 0.5131 GB, free: 2.246 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.415, allocations: 0 / 0.5131 GB, free: 2.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.108e-06/0.4151, allocations: 0 / 0.5131 GB, free: 2.246 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001175/0.4162, allocations: 0.7373 MB / 0.5138 GB, free: 1.672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.4163, allocations: 13.8 kB / 0.5138 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005752/0.4169, allocations: 80.78 kB / 0.5139 GB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006279/0.4175, allocations: 411.2 kB / 0.5143 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.4175, allocations: 30.25 kB / 0.5143 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.4177, allocations: 55.5 kB / 0.5144 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008774/0.4186, allocations: 0.6164 MB / 0.515 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.338e-05/0.4186, allocations: 14.23 kB / 0.515 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.484e-05/0.4186, allocations: 13.09 kB / 0.515 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001161/0.4188, allocations: 33.27 kB / 0.515 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007945/0.4196, allocations: 481.6 kB / 0.5155 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003393/0.423, allocations: 2.89 MB / 0.5183 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003773/0.4234, allocations: 228.3 kB / 0.5185 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.4236, allocations: 148.7 kB / 0.5187 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.789e-05/0.4236, allocations: 9.641 kB / 0.5187 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.4237, allocations: 36.66 kB / 0.5187 GB, free: 14.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.365e-06/0.4237, allocations: 0 / 0.5187 GB, free: 14.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001583/0.4253, allocations: 0.9629 MB / 0.5196 GB, free: 13.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.4253, allocations: 80.14 kB / 0.5197 GB, free: 13.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003428/0.4257, allocations: 330.4 kB / 0.52 GB, free: 13.44 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.4257, allocations: 32.55 kB / 0.5201 GB, free: 13.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.4259, allocations: 278.4 kB / 0.5203 GB, free: 13.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.467e-05/0.426, allocations: 100.5 kB / 0.5204 GB, free: 13.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.4261, allocations: 93.33 kB / 0.5205 GB, free: 13.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.4263, allocations: 349 kB / 0.5209 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/0.4265, allocations: 144.4 kB / 0.521 GB, free: 12.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003638/0.4269, allocations: 357.2 kB / 0.5213 GB, free: 12.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006368/0.4275, allocations: 0.5153 MB / 0.5218 GB, free: 11.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.4275, allocations: 1.969 kB / 0.5218 GB, free: 11.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007946/0.4283, allocations: 0.5252 MB / 0.5223 GB, free: 11.76 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.4284, allocations: 7.906 kB / 0.5224 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.4284, allocations: 6.844 kB / 0.5224 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.4284, allocations: 9.312 kB / 0.5224 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004327/0.4288, allocations: 123.6 kB / 0.5225 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.6e-05/0.4289, allocations: 11.81 kB / 0.5225 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002475/0.4291, allocations: 30.12 kB / 0.5225 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-05/0.4292, allocations: 19.84 kB / 0.5225 GB, free: 11.73 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * 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.0002469/0.4294, allocations: 216.1 kB / 0.5228 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.054e-05/0.4295, allocations: 35.05 kB / 0.5228 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005996/0.4301, allocations: 365.6 kB / 0.5231 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.4301, allocations: 4.125 kB / 0.5231 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.4301, allocations: 6.062 kB / 0.5231 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.4301, allocations: 1.312 kB / 0.5231 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.4315, allocations: 0.8889 MB / 0.524 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.4315, allocations: 1.375 kB / 0.524 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002957/0.4318, allocations: 63.83 kB / 0.5241 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.4318, allocations: 1.531 kB / 0.5241 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.778e-05/0.4318, allocations: 10.88 kB / 0.5241 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.4319, allocations: 6.375 kB / 0.5241 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.4319, allocations: 5.891 kB / 0.5241 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007385/0.4326, allocations: 0.5822 MB / 0.5247 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.4e-05/0.4327, allocations: 107 kB / 0.5248 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.701e-05/0.4327, allocations: 13.34 kB / 0.5248 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.4329, allocations: 15.02 kB / 0.5248 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.521e-05/0.433, allocations: 16.5 kB / 0.5248 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.29e-05/0.433, allocations: 12.17 kB / 0.5248 GB, free: 10.39 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000217/0.4332, allocations: 220.3 kB / 0.525 GB, free: 10.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4332, allocations: 0 / 0.525 GB, free: 10.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004603/0.4337, allocations: 93.25 kB / 0.5251 GB, free: 10.26 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * 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.0001241/0.4338, allocations: 117 kB / 0.5252 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005808/0.4344, allocations: 365.8 kB / 0.5256 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4344, allocations: 5.031 kB / 0.5256 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002158/0.4347, allocations: 145 kB / 0.5257 GB, free: 10 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000485/0.4352, allocations: 72.94 kB / 0.5258 GB, free: 9.973 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.4368, allocations: 0.9806 MB / 0.5268 GB, free: 9.402 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004861/0.4373, allocations: 0.8614 MB / 0.5276 GB, free: 8.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003073/0.4376, allocations: 132.9 kB / 0.5277 GB, free: 8.664 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.954e-05/0.4377, allocations: 30.89 kB / 0.5278 GB, free: 8.656 MB / 398.1 MB Notification: Performance of SimCode: time 1.9e-07/0.4377, allocations: 0 / 0.5278 GB, free: 8.656 MB / 398.1 MB Notification: Performance of Templates: time 0.008155/0.4459, allocations: 3.429 MB / 0.5311 GB, free: 7.781 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches