Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.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 9.1.1-maint.9.1.x/package.mo): time 1.751/1.751, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.0009066/0.0009067, allocations: 181.3 kB / 487 MB, free: 5.348 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.13/1.13, allocations: 221.3 MB / 0.7819 GB, free: 1.316 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008447/0.0008447, allocations: 93.45 kB / 0.9213 GB, free: 2.566 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.644e-06/7.674e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.1859, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5127/0.6986, allocations: 181.7 MB / 1.383 GB, free: 10.91 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/0.6989, allocations: 90.31 kB / 1.383 GB, free: 10.86 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.4078/1.107, allocations: 192.3 MB / 1.57 GB, free: 8.098 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 0.0003779/1.107, allocations: 124.1 kB / 1.571 GB, free: 7.977 MB / 0.9948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01112/1.118, allocations: 4.23 MB / 1.575 GB, free: 3.684 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/1.118, allocations: 9.031 kB / 1.575 GB, free: 3.676 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00554/1.124, allocations: 1.008 MB / 1.576 GB, free: 2.66 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006384/1.13, allocations: 3.237 MB / 1.579 GB, free: 15.37 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/1.13, allocations: 156 kB / 1.579 GB, free: 15.21 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005906/1.131, allocations: 279.9 kB / 1.579 GB, free: 14.94 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007661/1.139, allocations: 4.881 MB / 1.584 GB, free: 10.05 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009491/1.148, allocations: 6.852 MB / 1.591 GB, free: 2.738 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001051/1.148, allocations: 23.72 kB / 1.591 GB, free: 2.715 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000401/1.149, allocations: 16 kB / 1.591 GB, free: 2.699 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002187/1.149, allocations: 273.2 kB / 1.591 GB, free: 2.43 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03027/1.179, allocations: 35.34 MB / 1.626 GB, free: 11.86 MB / 1.057 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002668/1.182, allocations: 2.011 MB / 1.628 GB, free: 9.844 MB / 1.057 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001629/1.184, allocations: 1.442 MB / 1.629 GB, free: 8.398 MB / 1.057 GB Notification: Performance of preOpt evalFunc (simulation): time 8.071e-05/1.184, allocations: 17.31 kB / 1.629 GB, free: 8.379 MB / 1.057 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.057e-05/1.184, allocations: 55.88 kB / 1.629 GB, free: 8.316 MB / 1.057 GB Notification: Performance of pre-optimization done (n=157): time 3.206e-06/1.184, allocations: 0 / 1.629 GB, free: 8.316 MB / 1.057 GB Notification: Performance of matching and sorting (n=160): time 0.00747/1.191, allocations: 4.871 MB / 1.634 GB, free: 3.395 MB / 1.057 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/1.191, allocations: 72.72 kB / 1.634 GB, free: 3.309 MB / 1.057 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/1.193, allocations: 1.248 MB / 1.635 GB, free: 2.027 MB / 1.057 GB Notification: Performance of collectPreVariables (initialization): time 9.065e-05/1.193, allocations: 25.7 kB / 1.635 GB, free: 1.996 MB / 1.057 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009253/1.194, allocations: 1.797 MB / 1.637 GB, free: 176 kB / 1.057 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004067/1.194, allocations: 0.543 MB / 1.637 GB, free: 15.62 MB / 1.073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.719e-05/1.194, allocations: 0 / 1.637 GB, free: 15.62 MB / 1.073 GB Notification: Performance of setup shared object (initialization): time 0.0001555/1.194, allocations: 382.1 kB / 1.638 GB, free: 15.24 MB / 1.073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/1.196, allocations: 1.004 MB / 1.639 GB, free: 14.23 MB / 1.073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001716/1.197, allocations: 1.697 MB / 1.64 GB, free: 12.2 MB / 1.073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/1.199, allocations: 1.283 MB / 1.642 GB, free: 10.91 MB / 1.073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/1.199, allocations: 7.938 kB / 1.642 GB, free: 10.91 MB / 1.073 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.005317/1.204, allocations: 3.583 MB / 1.645 GB, free: 7.277 MB / 1.073 GB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/1.204, allocations: 7.984 kB / 1.645 GB, free: 7.27 MB / 1.073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.045e-05/1.204, allocations: 27.91 kB / 1.645 GB, free: 7.242 MB / 1.073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002188/1.207, allocations: 0.9084 MB / 1.646 GB, free: 6.297 MB / 1.073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/1.208, allocations: 395.4 kB / 1.646 GB, free: 5.91 MB / 1.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01591/1.224, allocations: 19.68 MB / 1.666 GB, free: 0.8477 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/1.225, allocations: 55.94 kB / 1.666 GB, free: 0.793 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000188/1.225, allocations: 95.91 kB / 1.666 GB, free: 0.6992 MB / 1.089 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 203 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003054/1.226, allocations: 176.3 kB / 1.666 GB, free: 0.5195 MB / 1.089 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003307/1.226, allocations: 233.3 kB / 1.666 GB, free: 296 kB / 1.089 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004804/1.231, allocations: 3.152 MB / 1.669 GB, free: 13.09 MB / 1.104 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/1.231, allocations: 16 kB / 1.669 GB, free: 13.07 MB / 1.104 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-05/1.231, allocations: 12 kB / 1.669 GB, free: 13.06 MB / 1.104 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/1.231, allocations: 7.969 kB / 1.669 GB, free: 13.05 MB / 1.104 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/1.242, allocations: 6.709 MB / 1.676 GB, free: 6.191 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/1.242, allocations: 8.094 kB / 1.676 GB, free: 6.184 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008966/1.243, allocations: 199.7 kB / 1.676 GB, free: 5.988 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002132/1.245, allocations: 0.877 MB / 1.677 GB, free: 5.074 MB / 1.104 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.99e-05/1.245, allocations: 4 kB / 1.677 GB, free: 5.07 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01603/1.261, allocations: 19.66 MB / 1.696 GB, free: 24 kB / 1.12 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.331e-05/1.261, allocations: 16.05 kB / 1.696 GB, free: 8 kB / 1.12 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0052/1.266, allocations: 3.588 MB / 1.7 GB, free: 12.16 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/1.267, allocations: 0.5099 MB / 1.7 GB, free: 11.62 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004895/1.268, allocations: 11.98 kB / 1.7 GB, free: 11.61 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/1.269, allocations: 35.95 kB / 1.7 GB, free: 11.58 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/1.269, allocations: 93.03 kB / 1.7 GB, free: 11.49 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/1.269, allocations: 51.94 kB / 1.7 GB, free: 11.44 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.001316/1.271, allocations: 0.91 MB / 1.701 GB, free: 10.51 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.002678/1.273, allocations: 0.8164 MB / 1.702 GB, free: 9.691 MB / 1.135 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 97 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2,(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.0002477/1.273, allocations: 142.9 kB / 1.702 GB, free: 9.539 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.005262/1.279, allocations: 4.005 MB / 1.706 GB, free: 5.418 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.279, allocations: 0 / 1.706 GB, free: 5.418 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.003452/1.282, allocations: 2.723 MB / 1.709 GB, free: 2.578 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002774/1.285, allocations: 0.6238 MB / 1.709 GB, free: 1.957 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01266/1.298, allocations: 6.007 MB / 1.715 GB, free: 11.82 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00436/1.302, allocations: 3.371 MB / 1.718 GB, free: 8.418 MB / 1.151 GB Notification: Performance of SimCode: time 6.21e-07/1.302, allocations: 4 kB / 1.718 GB, free: 8.414 MB / 1.151 GB Notification: Performance of Templates: time 0.3516/1.654, allocations: 37.76 MB / 1.755 GB, free: 404 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches