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.001321/0.001321, allocations: 111.2 kB / 17.68 MB, free: 5.332 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.001201/0.001201, allocations: 192 kB / 18.62 MB, free: 4.41 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.411/1.411, allocations: 222.9 MB / 242.3 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1758/0.1758, allocations: 38.04 MB / 330.5 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 67.11 kB / 400.2 MB, free: 33.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1019, allocations: 58.07 MB / 458.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.005751/0.1077, allocations: 4.416 MB / 462.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.11, allocations: 1.437 MB / 464.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.1102, allocations: 11.94 kB / 464.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009565/0.1112, allocations: 358.5 kB / 464.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005227/0.1117, allocations: 266.7 kB / 464.8 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005915/0.1123, allocations: 235.4 kB / 465 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005295/0.1128, allocations: 0.5573 MB / 465.6 MB, free: 48 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003963/0.1132, allocations: 285.1 kB / 465.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002807/0.1135, allocations: 251 kB / 466.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000441/0.114, allocations: 358.9 kB / 466.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.623e-05/0.1141, allocations: 43.94 kB / 466.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003682/0.1144, allocations: 223.7 kB / 466.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000212/0.1147, allocations: 239.4 kB / 466.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002354/0.1149, allocations: 258.7 kB / 467.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006084/0.1155, allocations: 0.6659 MB / 467.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.1155, allocations: 4 kB / 467.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1155, allocations: 4 kB / 467.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.1155, allocations: 4 kB / 467.9 MB, free: 13.74 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.001247/0.1168, allocations: 0.7661 MB / 468.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.1168, allocations: 11.89 kB / 468.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005055/0.1174, allocations: 92.16 kB / 468.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007059/0.1181, allocations: 427.2 kB / 469.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.1181, allocations: 33.31 kB / 469.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.1182, allocations: 56.11 kB / 469.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008657/0.1191, allocations: 0.6687 MB / 469.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.1191, allocations: 0 / 469.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.502e-05/0.1192, allocations: 23.98 kB / 469.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001603/0.1194, allocations: 52.95 kB / 470 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009234/0.1203, allocations: 0.6674 MB / 470.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003273/0.1236, allocations: 2.509 MB / 473.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004971/0.1241, allocations: 341.3 kB / 473.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002938/0.1244, allocations: 230 kB / 473.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.989e-05/0.1244, allocations: 7.984 kB / 473.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.1245, allocations: 42.5 kB / 473.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 3.557e-06/0.1245, allocations: 0 / 473.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.001907/0.1264, allocations: 1.34 MB / 475.1 MB, free: 6.152 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/0.1265, allocations: 85.23 kB / 475.2 MB, free: 6.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.1268, allocations: 304.4 kB / 475.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.1268, allocations: 33.7 kB / 475.5 MB, free: 5.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.127, allocations: 255.5 kB / 475.8 MB, free: 5.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.1271, allocations: 149.8 kB / 475.9 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.1272, allocations: 102.1 kB / 476 MB, free: 5.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1273, allocations: 346.8 kB / 476.4 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002736/0.1276, allocations: 201 kB / 476.6 MB, free: 4.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003689/0.128, allocations: 369 kB / 476.9 MB, free: 4.219 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007254/0.1287, allocations: 0.6096 MB / 477.5 MB, free: 3.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1287, allocations: 4 kB / 477.5 MB, free: 3.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008629/0.1296, allocations: 0.6234 MB / 478.2 MB, free: 2.906 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.1296, allocations: 4 kB / 478.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.1297, allocations: 8 kB / 478.2 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.1297, allocations: 8 kB / 478.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000423/0.1301, allocations: 111.8 kB / 478.3 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/0.1301, allocations: 15.92 kB / 478.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.1304, allocations: 23.98 kB / 478.3 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.386e-05/0.1304, allocations: 20 kB / 478.3 MB, free: 2.719 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.0002261/0.1306, allocations: 221.7 kB / 478.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.031e-05/0.1307, allocations: 39.47 kB / 478.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007202/0.1315, allocations: 489.5 kB / 479.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.237e-05/0.1315, allocations: 15.98 kB / 479.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.1315, allocations: 0 / 479.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.1315, allocations: 3.938 kB / 479.1 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/0.1332, allocations: 1.109 MB / 480.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1332, allocations: 0 / 480.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/0.1335, allocations: 71.89 kB / 480.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1336, allocations: 3.938 kB / 480.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.1336, allocations: 11.98 kB / 480.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.736e-06/0.1336, allocations: 4 kB / 480.3 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.1336, allocations: 0 / 480.3 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009817/0.1346, allocations: 0.8436 MB / 481.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.1e-05/0.1347, allocations: 104.7 kB / 481.2 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.371e-05/0.1347, allocations: 15.91 kB / 481.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001969/0.1349, allocations: 19.97 kB / 481.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.725e-05/0.135, allocations: 23.92 kB / 481.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-05/0.135, allocations: 19.97 kB / 481.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001922/0.1352, allocations: 211.1 kB / 481.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1353, allocations: 0 / 481.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004537/0.1357, allocations: 108 kB / 481.6 MB, free: 15.3 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.0002142/0.1359, allocations: 143.2 kB / 481.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007006/0.1366, allocations: 0.4928 MB / 482.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1367, allocations: 0 / 482.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002764/0.1369, allocations: 229.4 kB / 482.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.1375, allocations: 69.3 kB / 482.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.1391, allocations: 1.103 MB / 483.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000475/0.1396, allocations: 0.8704 MB / 484.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003021/0.1399, allocations: 135.1 kB / 484.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.14, allocations: 31.44 kB / 484.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.14, allocations: 0 / 484.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of Templates: time 0.00764/0.1477, allocations: 3.863 MB / 488.6 MB, free: 8.332 MB / 366.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches