Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") [: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 7.0.3-maint.7.0.x/package.mo): time 1.309/1.309, allocations: 249.4 MB / 256.7 MB, free: 7.047 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001496/0.001496, allocations: 176.5 kB / 316 MB, free: 3.535 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.316/1.316, allocations: 205.1 MB / 0.5667 GB, free: 15.65 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00114/0.001139, allocations: 83.27 kB / 0.671 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.743e-06/6.763e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.1597, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.521/0.6807, allocations: 186.6 MB / 1.067 GB, free: 2.406 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/0.681, allocations: 95.81 kB / 1.067 GB, free: 2.355 MB / 0.6823 GB Notification: Performance of FrontEnd: time 0.157/0.838, allocations: 65.56 MB / 1.131 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 8.066e-05/0.8381, allocations: 36 kB / 1.131 GB, free: 10.32 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.003142/0.8413, allocations: 1.659 MB / 1.133 GB, free: 8.605 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.8413, allocations: 8.031 kB / 1.133 GB, free: 8.598 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003224/0.8445, allocations: 0.5676 MB / 1.133 GB, free: 8.027 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002359/0.8469, allocations: 1.235 MB / 1.134 GB, free: 6.75 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.151e-05/0.847, allocations: 52 kB / 1.134 GB, free: 6.699 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002561/0.8473, allocations: 96 kB / 1.134 GB, free: 6.605 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003399/0.8507, allocations: 2.01 MB / 1.136 GB, free: 4.594 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004198/0.8549, allocations: 2.443 MB / 1.139 GB, free: 2.09 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.589e-05/0.8549, allocations: 7.844 kB / 1.139 GB, free: 2.082 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000171/0.8551, allocations: 4 kB / 1.139 GB, free: 2.078 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.024e-05/0.8552, allocations: 91.2 kB / 1.139 GB, free: 1.988 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01265/0.8679, allocations: 10.59 MB / 1.149 GB, free: 6.5 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008491/0.8688, allocations: 0.6792 MB / 1.15 GB, free: 5.812 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006859/0.8694, allocations: 0.5325 MB / 1.15 GB, free: 5.277 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001362/0.8696, allocations: 97.45 kB / 1.151 GB, free: 5.164 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.8696, allocations: 38.94 kB / 1.151 GB, free: 5.117 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 2.274e-06/0.8697, allocations: 0 / 1.151 GB, free: 5.117 MB / 0.7605 GB Notification: Performance of matching and sorting (n=72): time 0.01102/0.8807, allocations: 4.211 MB / 1.155 GB, free: 0.8906 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.04e-05/0.8808, allocations: 89.7 kB / 1.155 GB, free: 0.7852 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.8821, allocations: 0.7766 MB / 1.156 GB, free: 0 / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.000155/0.8823, allocations: 25.7 kB / 1.156 GB, free: 15.97 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005313/0.8828, allocations: 0.7033 MB / 1.156 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003129/0.8831, allocations: 240.4 kB / 1.156 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.855e-05/0.8833, allocations: 3.938 kB / 1.156 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002106/0.8835, allocations: 394.8 kB / 1.157 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.8847, allocations: 0.7834 MB / 1.158 GB, free: 13.83 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001135/0.8858, allocations: 1.126 MB / 1.159 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001635/0.8875, allocations: 1.112 MB / 1.16 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.8875, allocations: 4 kB / 1.16 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.007344/0.8949, allocations: 3.147 MB / 1.163 GB, free: 8.266 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.001554/0.8964, allocations: 4.266 MB / 1.167 GB, free: 3.66 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/0.8965, allocations: 12 kB / 1.167 GB, free: 3.648 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005332/0.9018, allocations: 1.256 MB / 1.168 GB, free: 2.387 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000999/0.9028, allocations: 215.7 kB / 1.168 GB, free: 2.176 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/0.9131, allocations: 6.773 MB / 1.175 GB, free: 11.27 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.9145, allocations: 119.8 kB / 1.175 GB, free: 11.15 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.9146, allocations: 47.98 kB / 1.175 GB, free: 11.11 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 8.215e-06/0.9146, allocations: 4 kB / 1.175 GB, free: 11.1 MB / 0.7917 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002621/0.9172, allocations: 1.724 MB / 1.177 GB, free: 9.379 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.9173, allocations: 8 kB / 1.177 GB, free: 9.371 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.9173, allocations: 20 kB / 1.177 GB, free: 9.352 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.9186, allocations: 311.7 kB / 1.177 GB, free: 9.047 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/0.9186, allocations: 23.88 kB / 1.177 GB, free: 9.023 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000899/0.9195, allocations: 91.8 kB / 1.177 GB, free: 8.934 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.82e-05/0.9196, allocations: 47.98 kB / 1.177 GB, free: 8.887 MB / 0.7917 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 14} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002585/0.9199, allocations: 132.7 kB / 1.178 GB, free: 8.75 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001926/0.9201, allocations: 82.97 kB / 1.178 GB, free: 8.668 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007247/0.9273, allocations: 2.905 MB / 1.18 GB, free: 5.742 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/0.9274, allocations: 8 kB / 1.18 GB, free: 5.734 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.9274, allocations: 3.906 kB / 1.18 GB, free: 5.73 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.845e-05/0.9274, allocations: 7.984 kB / 1.18 GB, free: 5.723 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/0.9395, allocations: 5.215 MB / 1.186 GB, free: 412 kB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/0.9396, allocations: 4 kB / 1.186 GB, free: 408 kB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005379/0.9401, allocations: 99.88 kB / 1.186 GB, free: 308 kB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005942/0.9461, allocations: 1.473 MB / 1.187 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/0.9463, allocations: 4 kB / 1.187 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01349/0.9597, allocations: 8.746 MB / 1.196 GB, free: 5.844 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/0.9598, allocations: 4 kB / 1.196 GB, free: 5.84 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006906/0.9667, allocations: 2.876 MB / 1.198 GB, free: 2.867 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006334/0.9674, allocations: 328 kB / 1.199 GB, free: 2.527 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001697/0.9675, allocations: 0 / 1.199 GB, free: 2.527 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.9686, allocations: 115.8 kB / 1.199 GB, free: 2.414 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.9688, allocations: 48.5 kB / 1.199 GB, free: 2.367 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.809e-05/0.9689, allocations: 20 kB / 1.199 GB, free: 2.348 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.000785/0.9697, allocations: 0.5928 MB / 1.2 GB, free: 1.758 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.002109/0.9718, allocations: 0.6211 MB / 1.2 GB, free: 1.137 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 42 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 13} * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003387/0.9721, allocations: 163 kB / 1.2 GB, free: 0.9648 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.004984/0.9771, allocations: 2.915 MB / 1.203 GB, free: 14.04 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.9772, allocations: 192 / 1.203 GB, free: 14.04 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.002461/0.9796, allocations: 1.244 MB / 1.204 GB, free: 12.78 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.9807, allocations: 186.4 kB / 1.205 GB, free: 12.6 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005654/0.9864, allocations: 2.909 MB / 1.207 GB, free: 9.621 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001755/0.9881, allocations: 1.78 MB / 1.209 GB, free: 7.809 MB / 0.823 GB Notification: Performance of SimCode: time 6.11e-07/0.9881, allocations: 0 / 1.209 GB, free: 7.809 MB / 0.823 GB Notification: Performance of Templates: time 0.04146/1.03, allocations: 28.2 MB / 1.237 GB, free: 11.73 MB / 0.8542 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches