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") [: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.0009853/0.0009856, allocations: 186.1 kB / 8.136 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.325/1.325, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0008895/0.0008897, allocations: 87.42 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1774/0.1774, allocations: 37.97 MB / 347.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.925e-06/8.115e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1142, allocations: 56.32 MB / 466.3 MB, free: 6.469 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3714/0.4856, allocations: 99.42 MB / 0.5525 GB, free: 11.13 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003287/0.486, allocations: 83.94 kB / 0.5526 GB, free: 11.05 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03908/0.5251, allocations: 12.74 MB / 0.565 GB, free: 14.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.513e-05/0.5252, allocations: 8.75 kB / 0.565 GB, free: 14.18 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.001159/0.5263, allocations: 0.6641 MB / 0.5657 GB, free: 13.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.5264, allocations: 8.031 kB / 0.5657 GB, free: 13.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005243/0.5269, allocations: 91.28 kB / 0.5657 GB, free: 13.37 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002177/0.5291, allocations: 0.8566 MB / 0.5666 GB, free: 12.47 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.5292, allocations: 12 kB / 0.5666 GB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-05/0.5292, allocations: 24 kB / 0.5666 GB, free: 12.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007964/0.53, allocations: 481.6 kB / 0.5671 GB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008469/0.5309, allocations: 0.6147 MB / 0.5677 GB, free: 11.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.5309, allocations: 3.906 kB / 0.5677 GB, free: 11.31 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.361e-05/0.531, allocations: 4 kB / 0.5677 GB, free: 11.31 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001121/0.5311, allocations: 48.69 kB / 0.5677 GB, free: 11.26 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003609/0.5347, allocations: 2.399 MB / 0.5701 GB, free: 8.754 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004539/0.5352, allocations: 328.8 kB / 0.5704 GB, free: 8.414 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003919/0.5356, allocations: 258.5 kB / 0.5706 GB, free: 8.156 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.706e-05/0.5356, allocations: 7.938 kB / 0.5706 GB, free: 8.148 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.5357, allocations: 42.5 kB / 0.5707 GB, free: 8.098 MB / 410.7 MB Notification: Performance of pre-optimization done (n=46): time 2.575e-06/0.5357, allocations: 0 / 0.5707 GB, free: 8.098 MB / 410.7 MB Notification: Performance of matching and sorting (n=47): time 0.003047/0.5387, allocations: 1.536 MB / 0.5722 GB, free: 6.512 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.689e-05/0.5388, allocations: 85.42 kB / 0.5723 GB, free: 6.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.5391, allocations: 235.4 kB / 0.5725 GB, free: 6.172 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.5392, allocations: 25.7 kB / 0.5725 GB, free: 6.141 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.5393, allocations: 224.3 kB / 0.5727 GB, free: 5.918 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.5395, allocations: 161.7 kB / 0.5729 GB, free: 5.758 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-05/0.5395, allocations: 0 / 0.5729 GB, free: 5.758 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.5397, allocations: 338.8 kB / 0.5732 GB, free: 5.418 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003172/0.54, allocations: 229.1 kB / 0.5734 GB, free: 5.195 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004961/0.5405, allocations: 369.9 kB / 0.5738 GB, free: 4.777 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007411/0.5413, allocations: 380.1 kB / 0.5741 GB, free: 4.402 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.5413, allocations: 0 / 0.5741 GB, free: 4.402 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001333/0.5426, allocations: 0.7269 MB / 0.5748 GB, free: 3.672 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.5426, allocations: 4 kB / 0.5749 GB, free: 3.668 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.5427, allocations: 7.984 kB / 0.5749 GB, free: 3.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.5427, allocations: 8.594 kB / 0.5749 GB, free: 3.652 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004891/0.5432, allocations: 115.8 kB / 0.575 GB, free: 3.539 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/0.5432, allocations: 11.94 kB / 0.575 GB, free: 3.527 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002785/0.5435, allocations: 15.98 kB / 0.575 GB, free: 3.512 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.221e-05/0.5436, allocations: 23.98 kB / 0.575 GB, free: 3.488 MB / 410.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.0001667/0.5438, allocations: 120.7 kB / 0.5751 GB, free: 3.363 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.836e-05/0.5439, allocations: 31.62 kB / 0.5752 GB, free: 3.332 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001261/0.5452, allocations: 0.649 MB / 0.5758 GB, free: 2.676 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.863e-05/0.5452, allocations: 19.92 kB / 0.5758 GB, free: 2.656 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.5452, allocations: 4 kB / 0.5758 GB, free: 2.652 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.5453, allocations: 0 / 0.5758 GB, free: 2.652 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00275/0.548, allocations: 1.39 MB / 0.5772 GB, free: 1.168 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.747e-06/0.548, allocations: 12.02 kB / 0.5772 GB, free: 1.156 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004094/0.5485, allocations: 75.81 kB / 0.5773 GB, free: 1.082 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.837e-06/0.5485, allocations: 7.938 kB / 0.5773 GB, free: 1.074 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.909e-05/0.5485, allocations: 11.97 kB / 0.5773 GB, free: 1.062 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.5485, allocations: 4 kB / 0.5773 GB, free: 1.059 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.5485, allocations: 7.938 kB / 0.5773 GB, free: 1.051 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001665/0.5502, allocations: 1.202 MB / 0.5785 GB, free: 15.72 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.685e-05/0.5503, allocations: 116.6 kB / 0.5786 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.383e-05/0.5504, allocations: 4 kB / 0.5786 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/0.5507, allocations: 23.92 kB / 0.5786 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.024e-05/0.5507, allocations: 19.97 kB / 0.5786 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.073e-05/0.5508, allocations: 12 kB / 0.5786 GB, free: 15.53 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0001893/0.551, allocations: 183.1 kB / 0.5788 GB, free: 15.35 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005799/0.5516, allocations: 119.9 kB / 0.5789 GB, free: 15.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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.0002633/0.5518, allocations: 135 kB / 0.5791 GB, free: 15.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008776/0.5527, allocations: 0.5441 MB / 0.5796 GB, free: 14.55 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.5527, allocations: 0 / 0.5796 GB, free: 14.55 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004294/0.5532, allocations: 277.2 kB / 0.5799 GB, free: 14.28 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004354/0.5536, allocations: 61.12 kB / 0.5799 GB, free: 14.22 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.5555, allocations: 0.9749 MB / 0.5809 GB, free: 13.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000801/0.5563, allocations: 0.9292 MB / 0.5818 GB, free: 12.23 MB / 426.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5563, allocations: 0 / 0.5818 GB, free: 12.23 MB / 426.7 MB Notification: Performance of Templates: time 0.01003/0.5663, allocations: 4.627 MB / 0.5863 GB, free: 7.609 MB / 426.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