Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") [: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/Buildings 10.0.0-master/package.mo): time 1.718/1.718, allocations: 390.4 MB / 397.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009075/0.0009076, allocations: 183 kB / 490.8 MB, free: 1.957 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.077/1.077, allocations: 221.4 MB / 0.7863 GB, free: 13.65 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008335/0.0008335, allocations: 90.3 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.793e-06/6.813e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1648, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4663/0.6311, allocations: 175.2 MB / 1.383 GB, free: 16.94 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002053/0.6313, allocations: 92.75 kB / 1.383 GB, free: 16.94 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.103/0.7343, allocations: 54.93 MB / 1.436 GB, free: 11.02 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.776e-05/0.7344, allocations: 20 kB / 1.436 GB, free: 11 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001308/0.7357, allocations: 0.9738 MB / 1.437 GB, free: 10.04 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 2.795e-05/0.7357, allocations: 8.031 kB / 1.437 GB, free: 10.04 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001436/0.7372, allocations: 242.6 kB / 1.438 GB, free: 9.797 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007335/0.7379, allocations: 0.5522 MB / 1.438 GB, free: 9.281 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.7379, allocations: 20 kB / 1.438 GB, free: 9.262 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.88e-05/0.738, allocations: 40 kB / 1.438 GB, free: 9.223 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008226/0.7389, allocations: 0.6192 MB / 1.439 GB, free: 8.812 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.74, allocations: 1.034 MB / 1.44 GB, free: 7.852 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.702e-05/0.74, allocations: 11.84 kB / 1.44 GB, free: 7.84 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.95e-05/0.7401, allocations: 7.938 kB / 1.44 GB, free: 7.832 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-05/0.7401, allocations: 56.34 kB / 1.44 GB, free: 7.781 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004024/0.7441, allocations: 5.803 MB / 1.446 GB, free: 2.141 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006971/0.7449, allocations: 0.513 MB / 1.446 GB, free: 1.777 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003319/0.7452, allocations: 325.8 kB / 1.446 GB, free: 1.574 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.7452, allocations: 8.438 kB / 1.446 GB, free: 1.566 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.804e-05/0.7453, allocations: 34.25 kB / 1.446 GB, free: 1.527 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=47): time 1.533e-06/0.7453, allocations: 0 / 1.446 GB, free: 1.527 MB / 0.8542 GB Notification: Performance of matching and sorting (n=48): time 0.00174/0.747, allocations: 1.196 MB / 1.448 GB, free: 0.5898 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.475e-05/0.747, allocations: 55.84 kB / 1.448 GB, free: 0.5234 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003424/0.7474, allocations: 406.1 kB / 1.448 GB, free: 212 kB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.7474, allocations: 25.7 kB / 1.448 GB, free: 180 kB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.7476, allocations: 353.9 kB / 1.448 GB, free: 15.86 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 9.6e-05/0.7477, allocations: 161.9 kB / 1.449 GB, free: 15.72 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/0.7477, allocations: 0 / 1.449 GB, free: 15.72 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.7478, allocations: 369.9 kB / 1.449 GB, free: 15.38 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002979/0.7481, allocations: 265.7 kB / 1.449 GB, free: 15.21 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003813/0.7485, allocations: 447.3 kB / 1.45 GB, free: 14.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003781/0.7489, allocations: 324.5 kB / 1.45 GB, free: 14.58 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.7489, allocations: 0 / 1.45 GB, free: 14.58 MB / 0.8698 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001406/0.7503, allocations: 0.982 MB / 1.451 GB, free: 13.82 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.7503, allocations: 11.94 kB / 1.451 GB, free: 13.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.7504, allocations: 4 kB / 1.451 GB, free: 13.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007311/0.7511, allocations: 275.4 kB / 1.451 GB, free: 13.57 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/0.7515, allocations: 119.3 kB / 1.451 GB, free: 13.46 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004643/0.7562, allocations: 6.206 MB / 1.457 GB, free: 7.305 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004148/0.7566, allocations: 20.16 kB / 1.457 GB, free: 7.285 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.627e-05/0.7567, allocations: 33.19 kB / 1.457 GB, free: 7.258 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001123/0.7568, allocations: 124.2 kB / 1.457 GB, free: 7.133 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.976e-05/0.7569, allocations: 63.25 kB / 1.458 GB, free: 7.07 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001254/0.7581, allocations: 0.8517 MB / 1.458 GB, free: 6.445 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.7581, allocations: 4 kB / 1.458 GB, free: 6.441 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.7582, allocations: 7.984 kB / 1.458 GB, free: 6.434 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.7582, allocations: 7.984 kB / 1.458 GB, free: 6.426 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/0.7601, allocations: 1.593 MB / 1.46 GB, free: 5.148 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.7602, allocations: 4 kB / 1.46 GB, free: 5.145 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002433/0.7604, allocations: 51.91 kB / 1.46 GB, free: 5.094 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006788/0.7611, allocations: 262.6 kB / 1.46 GB, free: 4.875 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.883e-05/0.7611, allocations: 4 kB / 1.46 GB, free: 4.871 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004598/0.7657, allocations: 6.186 MB / 1.466 GB, free: 14.74 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.7658, allocations: 48 / 1.466 GB, free: 14.74 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001227/0.767, allocations: 1.022 MB / 1.467 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002089/0.7672, allocations: 188 kB / 1.467 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.257e-05/0.7673, allocations: 4.125 kB / 1.467 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003232/0.7676, allocations: 19.97 kB / 1.467 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.426e-05/0.7677, allocations: 30.09 kB / 1.467 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.047e-05/0.7677, allocations: 15.38 kB / 1.468 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0002437/0.768, allocations: 300.8 kB / 1.468 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0005822/0.7686, allocations: 192 kB / 1.468 GB, free: 13.2 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001342/0.7687, allocations: 116.5 kB / 1.468 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001425/0.7701, allocations: 1.16 MB / 1.469 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.7701, allocations: 0 / 1.469 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0009431/0.7711, allocations: 0.8045 MB / 1.47 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006746/0.7718, allocations: 154.2 kB / 1.47 GB, free: 11.24 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.7733, allocations: 0.9913 MB / 1.471 GB, free: 10.32 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005695/0.7739, allocations: 1.057 MB / 1.472 GB, free: 9.266 MB / 0.8855 GB Notification: Performance of SimCode: time 2.5e-07/0.7739, allocations: 4 kB / 1.472 GB, free: 9.262 MB / 0.8855 GB Notification: Performance of Templates: time 0.01411/0.788, allocations: 10.1 MB / 1.482 GB, free: 15.3 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches