Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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.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_9_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_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.267/2.267, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001013/0.001013, allocations: 180.8 kB / 487.4 MB, free: 5.031 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.626/1.626, allocations: 221.5 MB / 0.7824 GB, free: 1.004 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.001077/0.001077, allocations: 98.64 kB / 0.9219 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.823e-05/1.826e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3223, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.958/1.28, allocations: 165.6 MB / 1.368 GB, free: 18.17 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004116/1.281, allocations: 81.91 kB / 1.368 GB, free: 18.17 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 - DAE generated: time 0.01619/1.297, allocations: 6.371 MB / 1.374 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.964e-06/1.297, allocations: 0 / 1.374 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.487e-05/1.297, allocations: 3.969 kB / 1.374 GB, free: 33.35 MB / 0.8386 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.0005982/1.298, allocations: 456.8 kB / 1.374 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.934e-05/1.298, allocations: 7.688 kB / 1.374 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002596/1.298, allocations: 27.91 kB / 1.374 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/1.298, allocations: 220.3 kB / 1.375 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.407e-05/1.299, allocations: 29.73 kB / 1.375 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.533e-05/1.299, allocations: 7.688 kB / 1.375 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001714/1.299, allocations: 61.97 kB / 1.375 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002227/1.299, allocations: 139.6 kB / 1.375 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/1.299, allocations: 0 / 1.375 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/1.299, allocations: 0 / 1.375 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.359e-05/1.299, allocations: 11.95 kB / 1.375 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008306/1.3, allocations: 0.5985 MB / 1.375 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/1.3, allocations: 54.25 kB / 1.376 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.27e-05/1.3, allocations: 18.64 kB / 1.376 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/1.3, allocations: 4 kB / 1.376 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001572/1.3, allocations: 135.1 kB / 1.376 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.924e-06/1.3, allocations: 0 / 1.376 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002398/1.301, allocations: 87.88 kB / 1.376 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/1.301, allocations: 136.3 kB / 1.376 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/1.301, allocations: 158.7 kB / 1.376 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/1.301, allocations: 28.89 kB / 1.376 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/1.301, allocations: 149.5 kB / 1.376 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/1.301, allocations: 14.72 kB / 1.376 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.076e-06/1.301, allocations: 0 / 1.376 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001642/1.301, allocations: 331.2 kB / 1.377 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.982e-05/1.301, allocations: 29.09 kB / 1.377 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.748e-05/1.301, allocations: 93.53 kB / 1.377 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.08e-05/1.301, allocations: 46.95 kB / 1.377 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/1.301, allocations: 3.844 kB / 1.377 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002087/1.302, allocations: 147.5 kB / 1.377 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.525e-05/1.302, allocations: 65.91 kB / 1.377 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/1.302, allocations: 3.875 kB / 1.377 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/1.302, allocations: 3.812 kB / 1.377 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/1.302, allocations: 34.62 kB / 1.377 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/1.302, allocations: 3.844 kB / 1.377 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001258/1.302, allocations: 26.38 kB / 1.377 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/1.302, allocations: 7.844 kB / 1.377 GB, free: 30.97 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 0.0001184/1.302, allocations: 150.6 kB / 1.377 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.119e-05/1.302, allocations: 19.59 kB / 1.377 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.485e-05/1.302, allocations: 13.31 kB / 1.377 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/1.302, allocations: 7.141 kB / 1.377 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/1.302, allocations: 0 / 1.377 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/1.302, allocations: 4.031 kB / 1.377 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/1.302, allocations: 190.1 kB / 1.377 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/1.302, allocations: 4 kB / 1.377 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.081e-05/1.302, allocations: 11.03 kB / 1.377 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/1.302, allocations: 0 / 1.377 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/1.303, allocations: 3.906 kB / 1.377 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/1.303, allocations: 0 / 1.377 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/1.303, allocations: 0 / 1.377 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/1.303, allocations: 163.2 kB / 1.378 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.844e-05/1.303, allocations: 88.02 kB / 1.378 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/1.303, allocations: 3.844 kB / 1.378 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.127e-05/1.303, allocations: 14.95 kB / 1.378 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.596e-05/1.303, allocations: 10.52 kB / 1.378 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/1.303, allocations: 3.844 kB / 1.378 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.05e-05/1.303, allocations: 126.7 kB / 1.378 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.71e-07/1.303, allocations: 0 / 1.378 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002453/1.303, allocations: 26.53 kB / 1.378 GB, free: 30.37 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 0.0001375/1.304, allocations: 104.1 kB / 1.378 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001938/1.304, allocations: 187 kB / 1.378 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/1.304, allocations: 0 / 1.378 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.671e-05/1.304, allocations: 99.34 kB / 1.378 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001875/1.304, allocations: 29.8 kB / 1.378 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004035/1.304, allocations: 172.5 kB / 1.378 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/1.305, allocations: 0.7174 MB / 1.379 GB, free: 29.28 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.299e-05/1.305, allocations: 25.16 kB / 1.379 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.296e-05/1.305, allocations: 11.25 kB / 1.379 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.305, allocations: 0 / 1.379 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of Templates: time 0.003378/1.308, allocations: 1.091 MB / 1.38 GB, free: 29.16 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches