Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") [: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.69/1.69, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.0008865/0.0008862, allocations: 176.2 kB / 490.8 MB, free: 1.902 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.061/1.061, allocations: 221.4 MB / 0.7863 GB, free: 13.62 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.0008036/0.0008037, allocations: 104 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.599e-06/4.609e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1653/0.1653, allocations: 143 MB / 1.212 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4402/0.6056, allocations: 166.3 MB / 1.374 GB, free: 16.78 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001763/0.6058, allocations: 75.38 kB / 1.374 GB, free: 16.78 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. Notification: Performance of FrontEnd: time 0.01307/0.6189, allocations: 6.066 MB / 1.38 GB, free: 16.25 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.017e-05/0.6189, allocations: 1.875 kB / 1.38 GB, free: 16.25 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0003893/0.6193, allocations: 454.8 kB / 1.38 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/0.6193, allocations: 9.031 kB / 1.38 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.6195, allocations: 26.27 kB / 1.38 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001834/0.6197, allocations: 209 kB / 1.381 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.686e-05/0.6198, allocations: 35.67 kB / 1.381 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.017e-05/0.6198, allocations: 6.688 kB / 1.381 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001534/0.62, allocations: 64.61 kB / 1.381 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001786/0.6201, allocations: 133.2 kB / 1.381 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.6202, allocations: 0 / 1.381 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.6202, allocations: 9.297 kB / 1.381 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.6202, allocations: 5.469 kB / 1.381 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006453/0.6208, allocations: 0.6134 MB / 1.381 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001567/0.621, allocations: 47.11 kB / 1.382 GB, free: 31 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.701e-05/0.6211, allocations: 21.53 kB / 1.382 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.247e-05/0.6211, allocations: 0 / 1.382 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.556e-05/0.6212, allocations: 117.8 kB / 1.382 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.6212, allocations: 4 kB / 1.382 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0001506/0.6213, allocations: 87.53 kB / 1.382 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.6214, allocations: 132.9 kB / 1.382 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.6215, allocations: 158.3 kB / 1.382 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.6215, allocations: 27.02 kB / 1.382 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.087e-05/0.6216, allocations: 133 kB / 1.382 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.707e-05/0.6216, allocations: 17.22 kB / 1.382 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-06/0.6216, allocations: 0 / 1.382 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.012e-05/0.6217, allocations: 326 kB / 1.383 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.777e-05/0.6217, allocations: 27.75 kB / 1.383 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.373e-05/0.6218, allocations: 97.69 kB / 1.383 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.2e-05/0.6219, allocations: 44.66 kB / 1.383 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.6219, allocations: 0 / 1.383 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001892/0.6221, allocations: 144.4 kB / 1.383 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.418e-06/0.6221, allocations: 3.844 kB / 1.383 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.6221, allocations: 4.453 kB / 1.383 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.6221, allocations: 3.844 kB / 1.383 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.6222, allocations: 34.94 kB / 1.383 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.383e-06/0.6223, allocations: 12.53 kB / 1.383 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001278/0.6224, allocations: 28.31 kB / 1.383 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.6224, allocations: 6.656 kB / 1.383 GB, free: 29.94 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,$PRE.voltageControl.ctrl.connected,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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 7.586e-05/0.6225, allocations: 148.2 kB / 1.383 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.978e-05/0.6225, allocations: 15.72 kB / 1.383 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.62e-05/0.6225, allocations: 10 kB / 1.383 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.6225, allocations: 1.344 kB / 1.383 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.6226, allocations: 4.734 kB / 1.383 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.6226, allocations: 0 / 1.383 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001042/0.6227, allocations: 188.5 kB / 1.383 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.6227, allocations: 2.078 kB / 1.383 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.738e-05/0.6228, allocations: 11.34 kB / 1.383 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.6228, allocations: 3.906 kB / 1.383 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.6228, allocations: 3.359 kB / 1.383 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.6228, allocations: 0 / 1.383 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.6228, allocations: 0.6562 kB / 1.383 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001784/0.623, allocations: 152.6 kB / 1.383 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.434e-05/0.623, allocations: 85.62 kB / 1.383 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.623, allocations: 5.797 kB / 1.384 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-05/0.6231, allocations: 13.17 kB / 1.384 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.024e-05/0.6232, allocations: 10.97 kB / 1.384 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.6232, allocations: 3.141 kB / 1.384 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7.947e-05/0.6233, allocations: 131.8 kB / 1.384 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000218/0.6235, allocations: 29.08 kB / 1.384 GB, free: 29.34 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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 8.442e-05/0.6236, allocations: 99.89 kB / 1.384 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001541/0.6238, allocations: 134.8 kB / 1.384 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.6238, allocations: 0 / 1.384 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.338e-05/0.6239, allocations: 72.55 kB / 1.384 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001436/0.624, allocations: 19.28 kB / 1.384 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003576/0.6244, allocations: 178.6 kB / 1.384 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/0.6246, allocations: 0.7312 MB / 1.385 GB, free: 28.34 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/0.6246, allocations: 0 / 1.385 GB, free: 28.34 MB / 0.8386 GB Notification: Performance of Templates: time 0.003062/0.6277, allocations: 1.186 MB / 1.386 GB, free: 28.07 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","../files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches