Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,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.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,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.ReferenceSynchron") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001314/0.001314, allocations: 188.9 kB / 17.27 MB, free: 4.496 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.611/1.611, allocations: 205.1 MB / 223.1 MB, free: 8.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001041/0.001041, allocations: 107 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.177/0.177, allocations: 38.01 MB / 355.8 MB, free: 2.934 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 51.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4055/0.407, allocations: 55.23 MB / 477.1 MB, free: 9.902 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.007464/0.4145, allocations: 5.073 MB / 482.2 MB, free: 6.305 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003307/0.4179, allocations: 1.671 MB / 483.8 MB, free: 5.137 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004369/0.4183, allocations: 32.09 kB / 483.9 MB, free: 5.121 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001076/0.4194, allocations: 356.9 kB / 484.2 MB, free: 4.906 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006535/0.4201, allocations: 229.2 kB / 484.4 MB, free: 4.785 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009077/0.421, allocations: 224.5 kB / 484.7 MB, free: 4.68 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001677/0.4227, allocations: 0.8607 MB / 485.5 MB, free: 4.418 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008269/0.4235, allocations: 276.1 kB / 485.8 MB, free: 4.32 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006424/0.4242, allocations: 224.1 kB / 486 MB, free: 4.227 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009589/0.4252, allocations: 372.2 kB / 486.4 MB, free: 4.113 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.333e-05/0.4253, allocations: 26.78 kB / 486.4 MB, free: 4.113 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007133/0.426, allocations: 241.2 kB / 486.6 MB, free: 4.047 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003582/0.4263, allocations: 233.5 kB / 486.9 MB, free: 3.977 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003404/0.4267, allocations: 246 kB / 487.1 MB, free: 3.84 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001305/0.428, allocations: 0.6469 MB / 487.7 MB, free: 3.613 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.428, allocations: 1.984 kB / 487.7 MB, free: 3.613 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.308e-06/0.428, allocations: 0 / 487.7 MB, free: 3.613 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.4281, allocations: 3.938 kB / 487.7 MB, free: 3.609 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.0018/0.4299, allocations: 0.7729 MB / 488.5 MB, free: 3.027 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.4299, allocations: 9.062 kB / 488.5 MB, free: 3.027 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000623/0.4306, allocations: 91 kB / 488.6 MB, free: 2.996 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007936/0.4314, allocations: 405.4 kB / 489 MB, free: 2.699 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/0.4314, allocations: 28.09 kB / 489 MB, free: 2.688 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.4316, allocations: 54.23 kB / 489.1 MB, free: 2.664 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.4327, allocations: 0.6794 MB / 489.8 MB, free: 2.348 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/0.4327, allocations: 5.438 kB / 489.8 MB, free: 2.344 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.893e-05/0.4328, allocations: 11.91 kB / 489.8 MB, free: 2.336 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001991/0.433, allocations: 50.66 kB / 489.8 MB, free: 2.328 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.4344, allocations: 0.6729 MB / 490.5 MB, free: 2.129 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004024/0.4384, allocations: 2.523 MB / 493 MB, free: 456 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006138/0.439, allocations: 333.7 kB / 493.4 MB, free: 308 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003587/0.4394, allocations: 226.2 kB / 493.6 MB, free: 216 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.445e-05/0.4395, allocations: 5.172 kB / 493.6 MB, free: 216 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.4395, allocations: 41.31 kB / 493.6 MB, free: 168 kB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 2.294e-06/0.4395, allocations: 0 / 493.6 MB, free: 168 kB / 314.7 MB Notification: Performance of matching and sorting (n=43): time 0.002545/0.4421, allocations: 1.353 MB / 495 MB, free: 15.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.44e-05/0.4421, allocations: 81.52 kB / 495.1 MB, free: 15.36 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004344/0.4426, allocations: 307.6 kB / 495.4 MB, free: 15.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.686e-05/0.4426, allocations: 35.17 kB / 495.4 MB, free: 15.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002314/0.4429, allocations: 253.2 kB / 495.6 MB, free: 14.94 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.443, allocations: 151 kB / 495.8 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.4432, allocations: 98.84 kB / 495.9 MB, free: 14.77 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.4434, allocations: 344.4 kB / 496.2 MB, free: 14.44 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003784/0.4437, allocations: 202.2 kB / 496.4 MB, free: 14.38 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005313/0.4443, allocations: 364.9 kB / 496.8 MB, free: 14.12 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009249/0.4452, allocations: 0.6054 MB / 497.4 MB, free: 13.74 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.4452, allocations: 2.094 kB / 497.4 MB, free: 13.74 MB / 330.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001266/0.4465, allocations: 0.6341 MB / 498 MB, free: 13.49 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.4466, allocations: 11.5 kB / 498 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.4466, allocations: 5.172 kB / 498 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.906e-05/0.4466, allocations: 7.781 kB / 498 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000504/0.4471, allocations: 114.1 kB / 498.2 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.494e-05/0.4472, allocations: 9 kB / 498.2 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.4474, allocations: 28.78 kB / 498.2 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.329e-05/0.4475, allocations: 23.64 kB / 498.2 MB, free: 13.46 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * 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.0002931/0.4478, allocations: 218 kB / 498.4 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.4479, allocations: 44.81 kB / 498.5 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009291/0.4488, allocations: 0.4913 MB / 499 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.66e-05/0.4489, allocations: 9.438 kB / 499 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.4489, allocations: 5.375 kB / 499 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.4489, allocations: 3.984 kB / 499 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.4508, allocations: 1.097 MB / 0.4884 GB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.4509, allocations: 1.438 kB / 0.4884 GB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003674/0.4512, allocations: 69.7 kB / 0.4884 GB, free: 12.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.4513, allocations: 6.375 kB / 0.4884 GB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.644e-05/0.4513, allocations: 12.5 kB / 0.4884 GB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.184e-06/0.4513, allocations: 6.234 kB / 0.4884 GB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.4513, allocations: 5.406 kB / 0.4885 GB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003112/0.4544, allocations: 2.277 MB / 0.4907 GB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.767e-05/0.4545, allocations: 118.9 kB / 0.4908 GB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.847e-05/0.4546, allocations: 8.281 kB / 0.4908 GB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.4548, allocations: 18.14 kB / 0.4908 GB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.952e-05/0.4549, allocations: 18.16 kB / 0.4908 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.368e-05/0.4549, allocations: 12.97 kB / 0.4908 GB, free: 10.36 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002582/0.4552, allocations: 215.6 kB / 0.4911 GB, free: 10.22 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4552, allocations: 1.125 kB / 0.4911 GB, free: 10.22 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007104/0.4559, allocations: 124.2 kB / 0.4912 GB, free: 10.21 MB / 330.7 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 (33): * Single equations (assignments): 30 * Array equations: 2 * 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.0002734/0.4562, allocations: 143.1 kB / 0.4913 GB, free: 10.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008627/0.4571, allocations: 0.4924 MB / 0.4918 GB, free: 9.883 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4571, allocations: 320 / 0.4918 GB, free: 9.883 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.4574, allocations: 230.2 kB / 0.492 GB, free: 9.781 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005393/0.458, allocations: 64.48 kB / 0.4921 GB, free: 9.742 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.4602, allocations: 1.576 MB / 0.4936 GB, free: 8.605 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005244/0.4607, allocations: 0.8871 MB / 0.4945 GB, free: 7.816 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003691/0.4611, allocations: 124 kB / 0.4946 GB, free: 7.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.4612, allocations: 36.17 kB / 0.4946 GB, free: 7.758 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4612, allocations: 0 / 0.4946 GB, free: 7.758 MB / 330.7 MB Notification: Performance of Templates: time 0.008342/0.4696, allocations: 3.913 MB / 0.4985 GB, free: 4.805 MB / 330.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches