Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.ReferenceInertial,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.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,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.ReferenceInertial") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 184.8 kB / 8.133 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.266/1.266, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.0008451/0.000845, allocations: 87.14 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1756/0.1756, allocations: 37.97 MB / 347.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.192e-06/6.222e-06, allocations: 0 / 410 MB, free: 46.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1089, allocations: 56.32 MB / 466.3 MB, free: 6.477 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3391/0.4481, allocations: 99.43 MB / 0.5525 GB, free: 11.12 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.4483, allocations: 79.95 kB / 0.5526 GB, free: 11.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03436/0.4827, allocations: 11.8 MB / 0.5641 GB, free: 15.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.573e-05/0.4828, allocations: 8 kB / 0.5641 GB, free: 15.11 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001005/0.4838, allocations: 0.6412 MB / 0.5647 GB, free: 14.42 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.4838, allocations: 8.031 kB / 0.5647 GB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005306/0.4844, allocations: 87.28 kB / 0.5648 GB, free: 14.33 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002081/0.4865, allocations: 0.8373 MB / 0.5656 GB, free: 13.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.4865, allocations: 16 kB / 0.5657 GB, free: 13.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.541e-05/0.4866, allocations: 27.84 kB / 0.5657 GB, free: 13.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006095/0.4872, allocations: 377.8 kB / 0.566 GB, free: 13.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007572/0.488, allocations: 0.5487 MB / 0.5666 GB, free: 12.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.488, allocations: 4 kB / 0.5666 GB, free: 12.42 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.696e-05/0.4881, allocations: 0 / 0.5666 GB, free: 12.42 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.871e-05/0.4881, allocations: 24.77 kB / 0.5666 GB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003054/0.4912, allocations: 2.799 MB / 0.5693 GB, free: 9.461 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002929/0.4915, allocations: 192.8 kB / 0.5695 GB, free: 9.254 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000216/0.4917, allocations: 153.8 kB / 0.5697 GB, free: 9.098 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.688e-05/0.4918, allocations: 0 / 0.5697 GB, free: 9.098 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.4918, allocations: 38.56 kB / 0.5697 GB, free: 9.051 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 1.723e-06/0.4918, allocations: 0 / 0.5697 GB, free: 9.051 MB / 410.7 MB Notification: Performance of matching and sorting (n=30): time 0.00143/0.4932, allocations: 0.8449 MB / 0.5705 GB, free: 8.156 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.62e-05/0.4933, allocations: 85.14 kB / 0.5706 GB, free: 8.055 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002724/0.4936, allocations: 263.4 kB / 0.5709 GB, free: 7.789 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.4936, allocations: 29.7 kB / 0.5709 GB, free: 7.754 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.4938, allocations: 251.2 kB / 0.5711 GB, free: 7.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.179e-05/0.4939, allocations: 102.5 kB / 0.5712 GB, free: 7.398 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.552e-05/0.4939, allocations: 0 / 0.5712 GB, free: 7.398 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.494, allocations: 350.8 kB / 0.5716 GB, free: 7.047 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.4942, allocations: 137 kB / 0.5717 GB, free: 6.914 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003107/0.4946, allocations: 334.1 kB / 0.572 GB, free: 6.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003066/0.4949, allocations: 207.8 kB / 0.5722 GB, free: 6.297 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4949, allocations: 7.938 kB / 0.5722 GB, free: 6.289 MB / 410.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007024/0.4956, allocations: 498.2 kB / 0.5727 GB, free: 5.797 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.4956, allocations: 8.031 kB / 0.5727 GB, free: 5.789 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.4956, allocations: 8 kB / 0.5727 GB, free: 5.781 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.4957, allocations: 15.91 kB / 0.5727 GB, free: 5.766 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004126/0.4961, allocations: 107.8 kB / 0.5728 GB, free: 5.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.714e-05/0.4961, allocations: 15.98 kB / 0.5728 GB, free: 5.645 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002339/0.4963, allocations: 8 kB / 0.5729 GB, free: 5.637 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.621e-05/0.4964, allocations: 24 kB / 0.5729 GB, free: 5.613 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (57): * Single equations (assignments): 56 * Array equations: 1 * 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.0001217/0.4965, allocations: 120.8 kB / 0.573 GB, free: 5.488 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.999e-05/0.4966, allocations: 39.53 kB / 0.573 GB, free: 5.449 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00063/0.4972, allocations: 345.3 kB / 0.5734 GB, free: 5.105 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/0.4973, allocations: 8 kB / 0.5734 GB, free: 5.098 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.4973, allocations: 0 / 0.5734 GB, free: 5.098 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.4973, allocations: 3.984 kB / 0.5734 GB, free: 5.094 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001252/0.4985, allocations: 0.8256 MB / 0.5742 GB, free: 4.215 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.4986, allocations: 4 kB / 0.5742 GB, free: 4.211 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003544/0.4989, allocations: 63.91 kB / 0.5742 GB, free: 4.148 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.778e-06/0.4989, allocations: 4 kB / 0.5742 GB, free: 4.145 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.499, allocations: 4 kB / 0.5742 GB, free: 4.141 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.499, allocations: 3.906 kB / 0.5742 GB, free: 4.137 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.499, allocations: 4 kB / 0.5743 GB, free: 4.133 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007578/0.4998, allocations: 0.634 MB / 0.5749 GB, free: 3.445 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.571e-05/0.4999, allocations: 112.6 kB / 0.575 GB, free: 3.316 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.881e-05/0.4999, allocations: 3.984 kB / 0.575 GB, free: 3.312 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.5001, allocations: 4 kB / 0.575 GB, free: 3.309 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.402e-05/0.5002, allocations: 19.97 kB / 0.575 GB, free: 3.289 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.052e-05/0.5002, allocations: 8 kB / 0.575 GB, free: 3.281 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000192/0.5004, allocations: 199.1 kB / 0.5752 GB, free: 3.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004864/0.5009, allocations: 84 kB / 0.5753 GB, free: 3.008 MB / 410.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 (29): * Single equations (assignments): 27 * Array equations: 1 * 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.0002393/0.5011, allocations: 123.1 kB / 0.5754 GB, free: 2.879 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005525/0.5017, allocations: 347.6 kB / 0.5757 GB, free: 2.539 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5017, allocations: 0 / 0.5757 GB, free: 2.539 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002128/0.5019, allocations: 145.7 kB / 0.5759 GB, free: 2.398 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004036/0.5023, allocations: 53.25 kB / 0.5759 GB, free: 2.344 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.5039, allocations: 0.7794 MB / 0.5767 GB, free: 1.535 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006866/0.5046, allocations: 0.8971 MB / 0.5776 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of SimCode: time 3.497e-06/0.5046, allocations: 8 kB / 0.5776 GB, free: 0.6016 MB / 410.7 MB Notification: Performance of Templates: time 0.009021/0.5136, allocations: 3.509 MB / 0.581 GB, free: 13.09 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches