Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.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.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline") [: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.001083/0.001083, allocations: 181.8 kB / 8.132 MB, free: 2.09 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.274/1.274, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0008315/0.0008317, allocations: 84.56 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.167/0.167, allocations: 37.97 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.795e-06/7.804e-06, allocations: 0 / 410 MB, free: 46.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1258, allocations: 56.31 MB / 466.3 MB, free: 6.488 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3451/0.471, allocations: 101.9 MB / 0.5549 GB, free: 8.656 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.4713, allocations: 87.95 kB / 0.555 GB, free: 8.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.05959/0.5309, allocations: 21.5 MB / 0.576 GB, free: 2.816 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.793e-05/0.531, allocations: 27.98 kB / 0.576 GB, free: 2.789 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002211/0.5332, allocations: 1.156 MB / 0.5772 GB, free: 1.559 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.5332, allocations: 8.031 kB / 0.5772 GB, free: 1.551 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008502/0.5341, allocations: 162.6 kB / 0.5773 GB, free: 1.391 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003164/0.5373, allocations: 1.203 MB / 0.5785 GB, free: 152 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.493e-05/0.5373, allocations: 36 kB / 0.5785 GB, free: 116 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.5375, allocations: 55.98 kB / 0.5786 GB, free: 60 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001707/0.5392, allocations: 1.027 MB / 0.5796 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.5409, allocations: 1.172 MB / 0.5807 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.987e-05/0.5409, allocations: 11.84 kB / 0.5807 GB, free: 13.79 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.956e-05/0.541, allocations: 4 kB / 0.5807 GB, free: 13.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.944e-05/0.5411, allocations: 57.97 kB / 0.5808 GB, free: 13.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006055/0.5471, allocations: 4.421 MB / 0.5851 GB, free: 9.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.5483, allocations: 0.7802 MB / 0.5859 GB, free: 8.359 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008064/0.5491, allocations: 0.6291 MB / 0.5865 GB, free: 7.727 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.837e-05/0.5492, allocations: 13.58 kB / 0.5865 GB, free: 7.715 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001055/0.5502, allocations: 0.8066 MB / 0.5873 GB, free: 6.871 MB / 426.7 MB Notification: Performance of pre-optimization done (n=126): time 2.925e-06/0.5503, allocations: 0 / 0.5873 GB, free: 6.871 MB / 426.7 MB Notification: Performance of matching and sorting (n=127): time 0.004318/0.5546, allocations: 2.751 MB / 0.59 GB, free: 4.059 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.5547, allocations: 242.5 kB / 0.5902 GB, free: 3.773 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005061/0.5552, allocations: 384.9 kB / 0.5906 GB, free: 3.391 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.521e-05/0.5553, allocations: 33.7 kB / 0.5906 GB, free: 3.352 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.5556, allocations: 336.2 kB / 0.5909 GB, free: 3.016 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003078/0.5559, allocations: 370.9 kB / 0.5913 GB, free: 2.648 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.785e-05/0.556, allocations: 0 / 0.5913 GB, free: 2.648 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.5561, allocations: 390.8 kB / 0.5917 GB, free: 2.258 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007088/0.5569, allocations: 0.511 MB / 0.5922 GB, free: 1.746 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008765/0.5577, allocations: 0.7423 MB / 0.5929 GB, free: 0.918 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008881/0.5586, allocations: 0.5993 MB / 0.5935 GB, free: 328 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.5587, allocations: 0 / 0.5935 GB, free: 328 kB / 426.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003711/0.5624, allocations: 1.902 MB / 0.5953 GB, free: 14.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.5624, allocations: 4 kB / 0.5953 GB, free: 14.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002887/0.5653, allocations: 1.613 MB / 0.5969 GB, free: 12.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/0.5673, allocations: 0.6407 MB / 0.5975 GB, free: 12.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005014/0.5678, allocations: 131.7 kB / 0.5977 GB, free: 12.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008168/0.576, allocations: 5.372 MB / 0.6029 GB, free: 6.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007386/0.5767, allocations: 27.97 kB / 0.6029 GB, free: 6.492 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.833e-05/0.5768, allocations: 44 kB / 0.603 GB, free: 6.449 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 116 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(7,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003629/0.5772, allocations: 233.2 kB / 0.6032 GB, free: 6.203 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001984/0.5774, allocations: 83.05 kB / 0.6033 GB, free: 6.121 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002112/0.5795, allocations: 1.285 MB / 0.6045 GB, free: 4.832 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.526e-05/0.5796, allocations: 23.91 kB / 0.6046 GB, free: 4.809 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.5796, allocations: 3.938 kB / 0.6046 GB, free: 4.805 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.741e-05/0.5796, allocations: 11.92 kB / 0.6046 GB, free: 4.793 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004481/0.5841, allocations: 2.764 MB / 0.6073 GB, free: 1.926 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/0.5842, allocations: 11.94 kB / 0.6073 GB, free: 1.914 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/0.5853, allocations: 216.1 kB / 0.6075 GB, free: 1.703 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.879e-05/0.5853, allocations: 8 kB / 0.6075 GB, free: 1.695 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-05/0.5854, allocations: 19.92 kB / 0.6075 GB, free: 1.676 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.508e-06/0.5854, allocations: 4 kB / 0.6075 GB, free: 1.672 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.737e-06/0.5854, allocations: 4 kB / 0.6075 GB, free: 1.668 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003184/0.5886, allocations: 2.392 MB / 0.6099 GB, free: 15.13 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/0.5888, allocations: 156 kB / 0.61 GB, free: 14.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.589, allocations: 19.98 kB / 0.61 GB, free: 14.94 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005603/0.5896, allocations: 31.95 kB / 0.6101 GB, free: 14.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000258/0.5898, allocations: 120.5 kB / 0.6102 GB, free: 14.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.408e-05/0.5899, allocations: 32 kB / 0.6102 GB, free: 14.76 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0003833/0.5903, allocations: 290.9 kB / 0.6105 GB, free: 14.47 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001131/0.5915, allocations: 272 kB / 0.6107 GB, free: 14.21 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_b.closed,switch1.switch_c.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_b.closed,switch2.switch_c.closed,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,system.initime) * Number of discrete states: 16 (relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_c.open,switch2.switch_a.open,switch2.switch_b.open,switch1.switch_b.open,switch1.switch_c.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 88 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * 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.0004053/0.5919, allocations: 190.9 kB / 0.6109 GB, free: 14.01 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002912/0.5948, allocations: 1.682 MB / 0.6126 GB, free: 12.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.5948, allocations: 64 / 0.6126 GB, free: 12.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001277/0.5961, allocations: 0.9824 MB / 0.6135 GB, free: 11.31 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006423/0.5968, allocations: 102.6 kB / 0.6136 GB, free: 11.21 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003724/0.6005, allocations: 1.937 MB / 0.6155 GB, free: 9.207 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001013/0.6015, allocations: 1.182 MB / 0.6167 GB, free: 7.996 MB / 458.7 MB Notification: Performance of SimCode: time 4.01e-07/0.6015, allocations: 0 / 0.6167 GB, free: 7.996 MB / 458.7 MB Notification: Performance of Templates: time 0.02228/0.6238, allocations: 13.24 MB / 0.6296 GB, free: 10.75 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transmission.RXline.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches