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.001468/0.001467, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.614/1.614, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0008327/0.0008327, allocations: 82.67 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1684/0.1684, allocations: 37.97 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.45e-05/3.458e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1305, allocations: 56.32 MB / 474 MB, free: 4.805 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4163/0.5469, allocations: 100.1 MB / 0.5607 GB, free: 2.758 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/0.5472, allocations: 76.59 kB / 0.5608 GB, free: 2.723 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03667/0.5839, allocations: 13.17 MB / 0.5736 GB, free: 7.383 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.5839, allocations: 0 / 0.5736 GB, free: 7.383 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.792e-05/0.584, allocations: 12 kB / 0.5736 GB, free: 7.371 MB / 378.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.001185/0.5852, allocations: 0.6779 MB / 0.5743 GB, free: 6.676 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.5852, allocations: 12.03 kB / 0.5743 GB, free: 6.664 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005097/0.5857, allocations: 87.28 kB / 0.5744 GB, free: 6.578 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002096/0.5878, allocations: 0.8517 MB / 0.5752 GB, free: 5.816 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.092e-05/0.5879, allocations: 29.59 kB / 0.5753 GB, free: 5.801 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.818e-05/0.588, allocations: 38.56 kB / 0.5753 GB, free: 5.773 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009852/0.589, allocations: 0.6454 MB / 0.5759 GB, free: 5.266 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.589, allocations: 7.922 kB / 0.5759 GB, free: 5.258 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.621e-05/0.589, allocations: 22.17 kB / 0.576 GB, free: 5.246 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001107/0.5892, allocations: 47.88 kB / 0.576 GB, free: 5.203 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009004/0.5901, allocations: 0.6277 MB / 0.5766 GB, free: 4.762 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003403/0.5935, allocations: 2.428 MB / 0.579 GB, free: 2.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004908/0.594, allocations: 348.7 kB / 0.5793 GB, free: 2.305 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.5943, allocations: 248.2 kB / 0.5796 GB, free: 2.137 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.73e-05/0.5943, allocations: 4 kB / 0.5796 GB, free: 2.133 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/0.5944, allocations: 42.27 kB / 0.5796 GB, free: 2.086 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 2.274e-06/0.5944, allocations: 3.938 kB / 0.5796 GB, free: 2.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.001879/0.5963, allocations: 1.258 MB / 0.5808 GB, free: 1.027 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.581e-05/0.5964, allocations: 85.38 kB / 0.5809 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002632/0.5966, allocations: 252.2 kB / 0.5812 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.5967, allocations: 28.95 kB / 0.5812 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.5968, allocations: 239.2 kB / 0.5814 GB, free: 500 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.597, allocations: 167.4 kB / 0.5816 GB, free: 352 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.137e-05/0.597, allocations: 10.38 kB / 0.5816 GB, free: 348 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.5972, allocations: 346.2 kB / 0.5819 GB, free: 8 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003051/0.5975, allocations: 218.4 kB / 0.5821 GB, free: 15.86 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000412/0.5979, allocations: 354.7 kB / 0.5825 GB, free: 15.52 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003889/0.5983, allocations: 280.2 kB / 0.5827 GB, free: 15.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.5983, allocations: 4 kB / 0.5827 GB, free: 15.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008778/0.5992, allocations: 0.6441 MB / 0.5834 GB, free: 14.81 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.5992, allocations: 8.594 kB / 0.5834 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.5992, allocations: 4 kB / 0.5834 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.5993, allocations: 12 kB / 0.5834 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004201/0.5997, allocations: 115 kB / 0.5835 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.856e-05/0.5997, allocations: 23.91 kB / 0.5835 GB, free: 14.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.6, allocations: 27.03 kB / 0.5835 GB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.306e-05/0.6, allocations: 19.19 kB / 0.5836 GB, free: 14.62 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 52 * Array equations: 3 * 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.0001045/0.6001, allocations: 127.2 kB / 0.5837 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.467e-05/0.6002, allocations: 42.98 kB / 0.5837 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008188/0.601, allocations: 0.5361 MB / 0.5842 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.739e-05/0.6011, allocations: 12 kB / 0.5843 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.6011, allocations: 0 / 0.5843 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.6011, allocations: 3.984 kB / 0.5843 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/0.6029, allocations: 1.175 MB / 0.5854 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.6029, allocations: 4.031 kB / 0.5854 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003646/0.6033, allocations: 79.81 kB / 0.5855 GB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.6033, allocations: 4 kB / 0.5855 GB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.929e-05/0.6033, allocations: 7.688 kB / 0.5855 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.6033, allocations: 4 kB / 0.5855 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.6033, allocations: 0 / 0.5855 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.6044, allocations: 0.9468 MB / 0.5864 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.848e-05/0.6045, allocations: 108.5 kB / 0.5865 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.175e-05/0.6046, allocations: 11.83 kB / 0.5865 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002198/0.6048, allocations: 27.83 kB / 0.5866 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.136e-05/0.6049, allocations: 23.97 kB / 0.5866 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.948e-05/0.6049, allocations: 11.94 kB / 0.5866 GB, free: 12 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001874/0.6051, allocations: 204.4 kB / 0.5868 GB, free: 11.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6051, allocations: 0 / 0.5868 GB, free: 11.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004673/0.6056, allocations: 123.4 kB / 0.5869 GB, free: 11.73 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 30 * Array equations: 3 * 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.0002303/0.6058, allocations: 146.8 kB / 0.5871 GB, free: 11.58 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006787/0.6065, allocations: 0.5148 MB / 0.5876 GB, free: 11.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.6065, allocations: 0 / 0.5876 GB, free: 11.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000309/0.6069, allocations: 248 kB / 0.5878 GB, free: 11.04 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.6072, allocations: 61.5 kB / 0.5879 GB, free: 10.99 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/0.6086, allocations: 0.9338 MB / 0.5888 GB, free: 10.14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.6091, allocations: 0.8824 MB / 0.5896 GB, free: 9.246 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003506/0.6095, allocations: 123.2 kB / 0.5897 GB, free: 9.121 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.873e-05/0.6096, allocations: 27.44 kB / 0.5898 GB, free: 9.094 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.6096, allocations: 4 kB / 0.5898 GB, free: 9.09 MB / 394.7 MB Notification: Performance of Templates: time 0.007519/0.6171, allocations: 3.672 MB / 0.5934 GB, free: 5.438 MB / 394.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/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