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.001022/0.001023, allocations: 97.66 kB / 16.3 MB, free: 5.59 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.000909/0.000909, allocations: 182.3 kB / 17.19 MB, free: 5.527 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.316/1.316, allocations: 223.2 MB / 241.1 MB, free: 372 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1716/0.1716, allocations: 38.08 MB / 330.3 MB, free: 8.969 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000286/0.000286, allocations: 8 kB / 400 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09994/0.1002, allocations: 59.17 MB / 459.1 MB, free: 7.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004956/0.1052, allocations: 4.291 MB / 463.4 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002493/0.1078, allocations: 1.54 MB / 465 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002238/0.108, allocations: 19.88 kB / 465 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.1082, allocations: 79.5 kB / 465.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005533/0.1088, allocations: 211.2 kB / 465.3 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006125/0.1094, allocations: 235.5 kB / 465.5 MB, free: 1.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003468/0.1098, allocations: 283.8 kB / 465.8 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007579/0.1105, allocations: 0.5145 MB / 466.3 MB, free: 240 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.1108, allocations: 183.3 kB / 466.5 MB, free: 56 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003653/0.1112, allocations: 251.4 kB / 466.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.09e-05/0.1112, allocations: 20 kB / 466.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003056/0.1115, allocations: 163.7 kB / 466.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001829/0.1117, allocations: 199.6 kB / 467.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.1118, allocations: 109.5 kB / 467.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004472/0.1123, allocations: 0.491 MB / 467.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.963e-06/0.1123, allocations: 0 / 467.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1123, allocations: 4 kB / 467.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.808e-06/0.1123, allocations: 0 / 467.7 MB, free: 14.82 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.001133/0.1135, allocations: 0.6956 MB / 468.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.1135, allocations: 8.031 kB / 468.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005373/0.1141, allocations: 87.38 kB / 468.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006151/0.1147, allocations: 406.1 kB / 468.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.1147, allocations: 25 kB / 468.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.1148, allocations: 47.97 kB / 468.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008944/0.1157, allocations: 0.6647 MB / 469.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.1158, allocations: 7.938 kB / 469.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.763e-05/0.1158, allocations: 19.98 kB / 469.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001683/0.116, allocations: 52.95 kB / 469.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008921/0.1169, allocations: 0.6596 MB / 470.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003409/0.1203, allocations: 2.524 MB / 472.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004936/0.1208, allocations: 333.3 kB / 473.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.266e-05/0.1209, allocations: 4.062 kB / 473.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.1209, allocations: 42.5 kB / 473.2 MB, free: 8.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.254e-06/0.1209, allocations: 0 / 473.2 MB, free: 8.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.00196/0.1229, allocations: 1.491 MB / 474.7 MB, free: 7.395 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.1229, allocations: 81.11 kB / 474.8 MB, free: 7.297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002798/0.1232, allocations: 300.4 kB / 475.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.1233, allocations: 33.7 kB / 475.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.1234, allocations: 255.6 kB / 475.4 MB, free: 6.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.1236, allocations: 145.8 kB / 475.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.97e-05/0.1236, allocations: 8 kB / 475.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1237, allocations: 350.8 kB / 475.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002671/0.124, allocations: 209 kB / 476.1 MB, free: 5.988 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003521/0.1244, allocations: 353.1 kB / 476.4 MB, free: 5.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003338/0.1247, allocations: 261.1 kB / 476.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1247, allocations: 8 kB / 476.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008121/0.1255, allocations: 0.627 MB / 477.3 MB, free: 4.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.1256, allocations: 12 kB / 477.3 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1256, allocations: 7.938 kB / 477.3 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.1256, allocations: 12 kB / 477.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004054/0.126, allocations: 115.8 kB / 477.5 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.521e-05/0.126, allocations: 11.94 kB / 477.5 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002303/0.1263, allocations: 27.97 kB / 477.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.38e-05/0.1263, allocations: 20 kB / 477.5 MB, free: 4.473 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002258/0.1266, allocations: 213.7 kB / 477.7 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.721e-05/0.1267, allocations: 43.48 kB / 477.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007363/0.1274, allocations: 489.4 kB / 478.2 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.23e-05/0.1274, allocations: 12 kB / 478.3 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.1274, allocations: 4 kB / 478.3 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.1275, allocations: 3.984 kB / 478.3 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/0.1291, allocations: 1.097 MB / 479.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1292, allocations: 0 / 479.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003405/0.1295, allocations: 71.89 kB / 479.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.1295, allocations: 4 kB / 479.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.1295, allocations: 11.94 kB / 479.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1296, allocations: 0 / 479.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.185e-06/0.1296, allocations: 4 kB / 479.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009984/0.1306, allocations: 0.8662 MB / 480.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.801e-05/0.1307, allocations: 112.7 kB / 480.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.33e-05/0.1307, allocations: 15.98 kB / 480.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.1309, allocations: 15.98 kB / 480.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.226e-05/0.131, allocations: 19.97 kB / 480.5 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-05/0.131, allocations: 8 kB / 480.5 MB, free: 1.348 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001858/0.1312, allocations: 211.1 kB / 480.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1312, allocations: 0 / 480.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004691/0.1317, allocations: 116 kB / 480.8 MB, free: 1.031 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001812/0.1319, allocations: 123.1 kB / 480.9 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006579/0.1325, allocations: 481.6 kB / 481.4 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1325, allocations: 0 / 481.4 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002792/0.1328, allocations: 228 kB / 481.6 MB, free: 216 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003782/0.1332, allocations: 57.12 kB / 481.7 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.1348, allocations: 1.35 MB / 483 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.1353, allocations: 0.8867 MB / 483.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003216/0.1356, allocations: 135.1 kB / 484 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.575e-05/0.1357, allocations: 31.44 kB / 484.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1357, allocations: 0 / 484.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of Templates: time 0.007083/0.1428, allocations: 3.517 MB / 487.6 MB, free: 10.19 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