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.00124/0.00124, allocations: 172.2 kB / 17.39 MB, free: 4.309 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.436/1.436, allocations: 205.4 MB / 223.5 MB, free: 9.035 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.0007421/0.0007419, allocations: 78.42 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.169/0.169, allocations: 38.08 MB / 358.3 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003959/0.0003963, allocations: 19.98 kB / 425.2 MB, free: 37.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2925, allocations: 56.31 MB / 481.6 MB, free: 9.602 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1396/0.4321, allocations: 100.2 MB / 0.5682 GB, free: 2.043 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/0.4324, allocations: 87.81 kB / 0.5682 GB, free: 1.961 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04038/0.4728, allocations: 13.18 MB / 0.5811 GB, free: 4.633 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.4729, allocations: 4 kB / 0.5811 GB, free: 4.629 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.763e-05/0.4729, allocations: 8 kB / 0.5811 GB, free: 4.621 MB / 410.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.001758/0.4747, allocations: 0.7232 MB / 0.5818 GB, free: 3.848 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.4748, allocations: 8.031 kB / 0.5818 GB, free: 3.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005949/0.4754, allocations: 92.23 kB / 0.5819 GB, free: 3.75 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.4766, allocations: 0.542 MB / 0.5825 GB, free: 3.164 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.367e-05/0.4766, allocations: 30.12 kB / 0.5825 GB, free: 3.137 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.4767, allocations: 51.89 kB / 0.5825 GB, free: 3.086 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.4779, allocations: 0.6608 MB / 0.5832 GB, free: 2.387 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.4779, allocations: 0 / 0.5832 GB, free: 2.387 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.98e-05/0.478, allocations: 23.98 kB / 0.5832 GB, free: 2.363 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001191/0.4781, allocations: 40.97 kB / 0.5832 GB, free: 2.324 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.4792, allocations: 0.6401 MB / 0.5839 GB, free: 1.684 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003656/0.4828, allocations: 2.44 MB / 0.5862 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000544/0.4834, allocations: 345.6 kB / 0.5866 GB, free: 14.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003381/0.4837, allocations: 254 kB / 0.5868 GB, free: 14.51 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.603e-05/0.4838, allocations: 4 kB / 0.5868 GB, free: 14.51 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.4838, allocations: 42.55 kB / 0.5869 GB, free: 14.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=46): time 2.665e-06/0.4838, allocations: 0 / 0.5869 GB, free: 14.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=47): time 0.002285/0.4861, allocations: 1.467 MB / 0.5883 GB, free: 12.94 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.4862, allocations: 89.27 kB / 0.5884 GB, free: 12.84 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003098/0.4865, allocations: 283.2 kB / 0.5887 GB, free: 12.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/0.4866, allocations: 33.7 kB / 0.5887 GB, free: 12.51 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.4867, allocations: 243.7 kB / 0.5889 GB, free: 12.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.4869, allocations: 157.7 kB / 0.5891 GB, free: 12.11 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.147e-05/0.4869, allocations: 15.98 kB / 0.5891 GB, free: 12.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.487, allocations: 350.8 kB / 0.5894 GB, free: 11.74 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003142/0.4874, allocations: 217 kB / 0.5896 GB, free: 11.53 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004135/0.4878, allocations: 358.7 kB / 0.59 GB, free: 11.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008154/0.4886, allocations: 0.6277 MB / 0.5906 GB, free: 10.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.4886, allocations: 4 kB / 0.5906 GB, free: 10.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001013/0.4896, allocations: 0.6447 MB / 0.5912 GB, free: 9.773 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.4897, allocations: 7.938 kB / 0.5912 GB, free: 9.766 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.4897, allocations: 8 kB / 0.5912 GB, free: 9.758 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.4897, allocations: 8 kB / 0.5912 GB, free: 9.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004255/0.4901, allocations: 112.5 kB / 0.5913 GB, free: 9.641 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.707e-05/0.4902, allocations: 23.86 kB / 0.5914 GB, free: 9.617 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002623/0.4904, allocations: 27.97 kB / 0.5914 GB, free: 9.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-05/0.4905, allocations: 20 kB / 0.5914 GB, free: 9.57 MB / 426.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 () * Number of clocked 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.0002722/0.4908, allocations: 221.5 kB / 0.5916 GB, free: 9.344 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.71e-05/0.4909, allocations: 35.53 kB / 0.5917 GB, free: 9.309 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008437/0.4917, allocations: 0.5292 MB / 0.5922 GB, free: 8.773 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.173e-05/0.4917, allocations: 23.92 kB / 0.5922 GB, free: 8.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.4918, allocations: 11.94 kB / 0.5922 GB, free: 8.738 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.4918, allocations: 3.984 kB / 0.5922 GB, free: 8.734 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001828/0.4936, allocations: 1.165 MB / 0.5933 GB, free: 7.504 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.4936, allocations: 3.938 kB / 0.5934 GB, free: 7.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003815/0.494, allocations: 79.88 kB / 0.5934 GB, free: 7.422 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.494, allocations: 8.094 kB / 0.5934 GB, free: 7.414 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.148e-05/0.4941, allocations: 11.98 kB / 0.5934 GB, free: 7.402 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.4941, allocations: 4 kB / 0.5935 GB, free: 7.398 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4941, allocations: 0 / 0.5935 GB, free: 7.398 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.4953, allocations: 0.9028 MB / 0.5943 GB, free: 6.465 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.549e-05/0.4954, allocations: 104.7 kB / 0.5944 GB, free: 6.344 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.639e-05/0.4955, allocations: 12.03 kB / 0.5944 GB, free: 6.332 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.4957, allocations: 23.97 kB / 0.5945 GB, free: 6.309 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.114e-05/0.4958, allocations: 19.97 kB / 0.5945 GB, free: 6.289 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.652e-05/0.4958, allocations: 8 kB / 0.5945 GB, free: 6.281 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002266/0.496, allocations: 207.1 kB / 0.5947 GB, free: 6.082 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.496, allocations: 0 / 0.5947 GB, free: 6.082 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005558/0.4966, allocations: 135.9 kB / 0.5948 GB, free: 5.949 MB / 426.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 (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.000242/0.4969, allocations: 139 kB / 0.595 GB, free: 5.801 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008095/0.4977, allocations: 0.5179 MB / 0.5955 GB, free: 5.285 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.4977, allocations: 4 kB / 0.5955 GB, free: 5.281 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003311/0.498, allocations: 247.9 kB / 0.5957 GB, free: 5.039 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005164/0.4986, allocations: 69.05 kB / 0.5958 GB, free: 4.973 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001975/0.5005, allocations: 1.385 MB / 0.5971 GB, free: 3.547 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000606/0.5012, allocations: 0.8824 MB / 0.598 GB, free: 2.637 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003648/0.5015, allocations: 119.2 kB / 0.5981 GB, free: 2.523 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.5017, allocations: 35.42 kB / 0.5981 GB, free: 2.488 MB / 426.7 MB Notification: Performance of SimCode: time 3.8e-07/0.5017, allocations: 0 / 0.5981 GB, free: 2.488 MB / 426.7 MB Notification: Performance of Templates: time 0.008785/0.5105, allocations: 3.677 MB / 0.6017 GB, free: 14.82 MB / 442.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/jenkins1/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