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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009617/0.000962, allocations: 93.88 kB / 16.65 MB, free: 6.547 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.001259/0.001259, allocations: 178.7 kB / 17.56 MB, free: 6.18 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.178/1.178, allocations: 223.3 MB / 241.6 MB, free: 14.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1553/0.1553, allocations: 38.09 MB / 330.8 MB, free: 8.508 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002785/0.0002786, allocations: 8 kB / 400.7 MB, free: 34.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0867/0.08699, allocations: 59.16 MB / 459.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004764/0.09179, allocations: 4.682 MB / 464.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002423/0.09424, allocations: 1.601 MB / 466.2 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003579/0.09462, allocations: 27.81 kB / 466.2 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002249/0.09486, allocations: 55.61 kB / 466.2 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006589/0.09554, allocations: 235 kB / 466.5 MB, free: 420 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005967/0.09615, allocations: 207.6 kB / 466.7 MB, free: 212 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008138/0.09698, allocations: 0.8693 MB / 467.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007812/0.09778, allocations: 0.5436 MB / 468.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003395/0.09813, allocations: 211 kB / 468.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005143/0.09865, allocations: 354.9 kB / 468.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.43e-05/0.09874, allocations: 24 kB / 468.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004418/0.09919, allocations: 231.5 kB / 468.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002204/0.09942, allocations: 223.4 kB / 469.1 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002903/0.09972, allocations: 256.5 kB / 469.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005872/0.1003, allocations: 0.6385 MB / 470 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1003, allocations: 0 / 470 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1003, allocations: 0 / 470 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.485e-05/0.1004, allocations: 0 / 470 MB, free: 12.84 MB / 350.1 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.001128/0.1015, allocations: 0.696 MB / 470.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.1015, allocations: 8.031 kB / 470.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005479/0.1021, allocations: 92.22 kB / 470.8 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005381/0.1026, allocations: 407.2 kB / 471.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.1027, allocations: 25.38 kB / 471.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.1028, allocations: 48.11 kB / 471.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008793/0.1037, allocations: 0.6804 MB / 471.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.1037, allocations: 4 kB / 471.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.381e-05/0.1038, allocations: 16 kB / 472 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001652/0.1039, allocations: 52.95 kB / 472 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008922/0.1048, allocations: 0.6674 MB / 472.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003023/0.1079, allocations: 2.524 MB / 475.2 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005015/0.1084, allocations: 341.3 kB / 475.5 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002691/0.1087, allocations: 221.9 kB / 475.8 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.737e-05/0.1087, allocations: 11.98 kB / 475.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.1087, allocations: 38.5 kB / 475.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.794e-06/0.1087, allocations: 4 kB / 475.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.001824/0.1106, allocations: 1.345 MB / 477.1 MB, free: 5.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.384e-05/0.1106, allocations: 81.11 kB / 477.2 MB, free: 5.238 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.1109, allocations: 304.4 kB / 477.5 MB, free: 4.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/0.111, allocations: 37.62 kB / 477.6 MB, free: 4.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.1111, allocations: 255.6 kB / 477.8 MB, free: 4.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.1112, allocations: 154 kB / 478 MB, free: 4.477 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.947e-05/0.1113, allocations: 49.69 kB / 478 MB, free: 4.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1114, allocations: 350.8 kB / 478.4 MB, free: 4.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002635/0.1117, allocations: 201 kB / 478.5 MB, free: 3.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003622/0.112, allocations: 365 kB / 478.9 MB, free: 3.445 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006913/0.1127, allocations: 0.606 MB / 479.5 MB, free: 2.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.1127, allocations: 4 kB / 479.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008449/0.1136, allocations: 0.6303 MB / 480.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.887e-05/0.1136, allocations: 10.5 kB / 480.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.1136, allocations: 4 kB / 480.2 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.1137, allocations: 8 kB / 480.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003862/0.1141, allocations: 120.5 kB / 480.3 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.1141, allocations: 15.94 kB / 480.3 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.1143, allocations: 15.98 kB / 480.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.04e-05/0.1144, allocations: 24 kB / 480.3 MB, free: 1.938 MB / 350.1 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.0002123/0.1146, allocations: 213.6 kB / 480.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.501e-05/0.1147, allocations: 43.45 kB / 480.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007151/0.1154, allocations: 0.4926 MB / 481.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.96e-05/0.1154, allocations: 16 kB / 481.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1154, allocations: 0 / 481.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1154, allocations: 0 / 481.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001462/0.1169, allocations: 1.101 MB / 482.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.1169, allocations: 0 / 482.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003215/0.1173, allocations: 75.92 kB / 482.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.1173, allocations: 4 kB / 482.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.1173, allocations: 8 kB / 482.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.1173, allocations: 4 kB / 482.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1173, allocations: 0 / 482.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009463/0.1183, allocations: 0.8395 MB / 483.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.218e-05/0.1184, allocations: 108.6 kB / 483.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.86e-05/0.1184, allocations: 12.03 kB / 483.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/0.1186, allocations: 19.97 kB / 483.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.776e-05/0.1187, allocations: 23.91 kB / 483.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/0.1187, allocations: 16 kB / 483.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001756/0.1189, allocations: 207.1 kB / 483.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1189, allocations: 0 / 483.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004179/0.1193, allocations: 112 kB / 483.6 MB, free: 14.53 MB / 366.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 (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.0001861/0.1195, allocations: 135.2 kB / 483.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006208/0.1201, allocations: 0.4899 MB / 484.2 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1201, allocations: 0 / 484.2 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002686/0.1204, allocations: 227.7 kB / 484.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004965/0.1209, allocations: 65.05 kB / 484.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.1224, allocations: 1.378 MB / 485.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.1229, allocations: 0.8743 MB / 486.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003013/0.1232, allocations: 123.2 kB / 486.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.204e-05/0.1233, allocations: 35.42 kB / 486.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1233, allocations: 3.938 kB / 486.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of Templates: time 0.006615/0.1299, allocations: 3.579 MB / 490.5 MB, free: 7.582 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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