Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource.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.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|sen.V|sen.theta",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|sen.V|sen.theta",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource") [: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.277/1.277, allocations: 249.4 MB / 256.7 MB, free: 7.043 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.0009756/0.0009756, allocations: 185.2 kB / 316 MB, free: 3.543 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.301/1.301, allocations: 205.1 MB / 0.5667 GB, free: 15.67 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.0008619/0.0008618, allocations: 95.33 kB / 0.671 GB, free: 4.797 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.903e-06/6.933e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2212/0.2212, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6625/0.8838, allocations: 152.4 MB / 1.033 GB, free: 3.855 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003269/0.8842, allocations: 92.31 kB / 1.033 GB, free: 3.805 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.02736/0.9115, allocations: 11.76 MB / 1.045 GB, free: 10.1 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.653e-05/0.9116, allocations: 8 kB / 1.045 GB, free: 10.09 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006/0.9122, allocations: 452.4 kB / 1.045 GB, free: 9.617 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.9122, allocations: 8.031 kB / 1.045 GB, free: 9.609 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006049/0.9129, allocations: 63.73 kB / 1.045 GB, free: 9.547 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002841/0.9132, allocations: 228.1 kB / 1.046 GB, free: 9.297 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.9132, allocations: 7.984 kB / 1.046 GB, free: 9.289 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.062e-05/0.9132, allocations: 11.91 kB / 1.046 GB, free: 9.277 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002915/0.9135, allocations: 161.4 kB / 1.046 GB, free: 9.164 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003398/0.9139, allocations: 272.2 kB / 1.046 GB, free: 8.914 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.9139, allocations: 0 / 1.046 GB, free: 8.914 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.23e-05/0.9139, allocations: 0 / 1.046 GB, free: 8.914 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.221e-05/0.914, allocations: 16.23 kB / 1.046 GB, free: 8.898 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001684/0.9157, allocations: 1.621 MB / 1.048 GB, free: 7.258 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 9.15e-05/0.9158, allocations: 72.81 kB / 1.048 GB, free: 7.176 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.282e-05/0.9158, allocations: 42.52 kB / 1.048 GB, free: 7.137 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 1.381e-05/0.9158, allocations: 4 kB / 1.048 GB, free: 7.133 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.9159, allocations: 45.91 kB / 1.048 GB, free: 7.082 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.9159, allocations: 0 / 1.048 GB, free: 7.082 MB / 0.6667 GB Notification: Performance of matching and sorting (n=8): time 0.0004506/0.9163, allocations: 174.1 kB / 1.048 GB, free: 6.922 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.341e-05/0.9164, allocations: 77.11 kB / 1.048 GB, free: 6.828 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/0.9166, allocations: 196.5 kB / 1.048 GB, free: 6.66 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.9167, allocations: 25.7 kB / 1.048 GB, free: 6.629 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 8.855e-05/0.9168, allocations: 156.9 kB / 1.048 GB, free: 6.48 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.634e-05/0.9168, allocations: 37.36 kB / 1.048 GB, free: 6.449 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.052e-05/0.9168, allocations: 0 / 1.048 GB, free: 6.449 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.9169, allocations: 322.3 kB / 1.049 GB, free: 6.129 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.9171, allocations: 72.78 kB / 1.049 GB, free: 6.082 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.9172, allocations: 159.5 kB / 1.049 GB, free: 5.918 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002105/0.9174, allocations: 105.6 kB / 1.049 GB, free: 5.84 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.9174, allocations: 0 / 1.049 GB, free: 5.84 MB / 0.6667 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000409/0.9178, allocations: 271.5 kB / 1.049 GB, free: 5.621 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.000493/0.9183, allocations: 1.13 MB / 1.05 GB, free: 4.422 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.9184, allocations: 4 kB / 1.05 GB, free: 4.418 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.9184, allocations: 4 kB / 1.05 GB, free: 4.414 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000246/0.9186, allocations: 50.78 kB / 1.051 GB, free: 4.367 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.9187, allocations: 4 kB / 1.051 GB, free: 4.363 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.9189, allocations: 19.98 kB / 1.051 GB, free: 4.344 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.9189, allocations: 15.92 kB / 1.051 GB, free: 4.328 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.857e-06/0.9189, allocations: 7.906 kB / 1.051 GB, free: 4.32 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003222/0.9192, allocations: 192.5 kB / 1.051 GB, free: 4.176 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.9193, allocations: 4.375 kB / 1.051 GB, free: 4.172 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.358e-06/0.9193, allocations: 8 kB / 1.051 GB, free: 4.164 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.9195, allocations: 47.97 kB / 1.051 GB, free: 4.117 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.9195, allocations: 11.94 kB / 1.051 GB, free: 4.105 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.9196, allocations: 7.984 kB / 1.051 GB, free: 4.098 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.9196, allocations: 12 kB / 1.051 GB, free: 4.086 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.273e-05/0.9197, allocations: 111.7 kB / 1.051 GB, free: 3.973 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.788e-05/0.9198, allocations: 15.81 kB / 1.051 GB, free: 3.957 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002192/0.92, allocations: 115.2 kB / 1.051 GB, free: 3.855 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.92, allocations: 8 kB / 1.051 GB, free: 3.848 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.92, allocations: 3.938 kB / 1.051 GB, free: 3.844 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.92, allocations: 0 / 1.051 GB, free: 3.844 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006327/0.9207, allocations: 0.5895 MB / 1.052 GB, free: 3.242 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.9207, allocations: 0 / 1.052 GB, free: 3.242 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.148e-05/0.9208, allocations: 12 kB / 1.052 GB, free: 3.23 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.9208, allocations: 4 kB / 1.052 GB, free: 3.227 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.9208, allocations: 4 kB / 1.052 GB, free: 3.223 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.9208, allocations: 3.984 kB / 1.052 GB, free: 3.219 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.754e-06/0.9208, allocations: 4 kB / 1.052 GB, free: 3.215 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000267/0.9211, allocations: 337.1 kB / 1.052 GB, free: 2.832 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 8.73e-05/0.9212, allocations: 103.8 kB / 1.052 GB, free: 2.715 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.513e-05/0.9212, allocations: 4 kB / 1.052 GB, free: 2.711 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.9214, allocations: 11.89 kB / 1.052 GB, free: 2.699 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.659e-05/0.9214, allocations: 7.312 kB / 1.052 GB, free: 2.695 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.695e-06/0.9215, allocations: 8 kB / 1.052 GB, free: 2.688 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0001405/0.9216, allocations: 159.5 kB / 1.052 GB, free: 2.555 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004591/0.9221, allocations: 83.11 kB / 1.052 GB, free: 2.477 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001783/0.9223, allocations: 111.2 kB / 1.052 GB, free: 2.359 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0003864/0.9226, allocations: 263.3 kB / 1.053 GB, free: 2.168 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.9227, allocations: 4.188 kB / 1.053 GB, free: 2.164 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 5.77e-05/0.9227, allocations: 46.09 kB / 1.053 GB, free: 2.125 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002753/0.923, allocations: 27.17 kB / 1.053 GB, free: 2.105 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000531/0.9235, allocations: 267.3 kB / 1.053 GB, free: 1.828 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003406/0.9239, allocations: 0.7616 MB / 1.054 GB, free: 1.047 MB / 0.6667 GB Notification: Performance of SimCode: time 2.7e-07/0.9239, allocations: 0 / 1.054 GB, free: 1.047 MB / 0.6667 GB Notification: Performance of Templates: time 0.005314/0.9292, allocations: 2.504 MB / 1.056 GB, free: 14.59 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_FixedVoltageSource.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.FixedVoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches