Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_10_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_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 195.5 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.035/3.035, allocations: 437 MB / 0.7099 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 71.88 kB / 0.8686 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8507/0.8526, allocations: 151.6 MB / 1.017 GB, free: 2.711 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00436/0.8571, allocations: 2.376 MB / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001443/0.8585, allocations: 0.7754 MB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.625e-05/0.8586, allocations: 0 / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006045/0.8592, allocations: 131.5 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001707/0.8594, allocations: 67.67 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001626/0.8596, allocations: 39.95 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002818/0.8599, allocations: 199.4 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002499/0.8601, allocations: 69.06 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001383/0.8603, allocations: 63.77 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/0.8605, allocations: 75.67 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.53e-05/0.8605, allocations: 8 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001609/0.8607, allocations: 59.88 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.784e-05/0.8608, allocations: 31.84 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.8609, allocations: 63.66 kB / 1.02 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002885/0.8612, allocations: 169.4 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.8612, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.21e-07/0.8612, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.8612, allocations: 3.938 kB / 1.021 GB, free: 14.58 MB / 0.7794 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.0009187/0.8621, allocations: 0.4907 MB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.8622, allocations: 12.03 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002418/0.8624, allocations: 24.73 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002789/0.8627, allocations: 208.1 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.221e-05/0.8628, allocations: 38.44 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.96e-05/0.8628, allocations: 20.06 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000337/0.8632, allocations: 142.2 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.8632, allocations: 4 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.8632, allocations: 8 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.073e-05/0.8633, allocations: 4 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002242/0.8635, allocations: 91.88 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.8645, allocations: 0.6441 MB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002609/0.8648, allocations: 54.62 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.457e-05/0.8649, allocations: 28.84 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.8649, allocations: 0 / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002717/0.8652, allocations: 146.7 kB / 1.022 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.8652, allocations: 0 / 1.022 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004206/0.8656, allocations: 159.6 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.8658, allocations: 136.5 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.866, allocations: 190.7 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.866, allocations: 25.7 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.8661, allocations: 139.9 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.14e-05/0.8662, allocations: 23.66 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.872e-05/0.8662, allocations: 41.7 kB / 1.023 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.8664, allocations: 318.8 kB / 1.023 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.8665, allocations: 47.91 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.8667, allocations: 109.4 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.867, allocations: 226.4 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.867, allocations: 0 / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004027/0.8674, allocations: 252.5 kB / 1.024 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.447e-05/0.8675, allocations: 59.41 kB / 1.024 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.8675, allocations: 7.938 kB / 1.024 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.8675, allocations: 11.92 kB / 1.024 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.8677, allocations: 31.92 kB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.8677, allocations: 4 kB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.8679, allocations: 24.16 kB / 1.024 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.8679, allocations: 11.98 kB / 1.024 GB, free: 10.48 MB / 0.7794 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 (voltageControl.ctrl.tSwitch,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.connected,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001652/0.8681, allocations: 163.5 kB / 1.024 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.954e-05/0.8681, allocations: 19.8 kB / 1.024 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.62e-05/0.8681, allocations: 17.34 kB / 1.024 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.8681, allocations: 0 / 1.024 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.8682, allocations: 0 / 1.024 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.8682, allocations: 0 / 1.024 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.8684, allocations: 213.6 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.8684, allocations: 4 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.574e-05/0.8685, allocations: 15.98 kB / 1.025 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.8685, allocations: 4 kB / 1.025 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.8685, allocations: 7.875 kB / 1.025 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.8685, allocations: 0 / 1.025 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.8685, allocations: 0 / 1.025 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004258/0.869, allocations: 214.7 kB / 1.025 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.138e-05/0.8691, allocations: 88.86 kB / 1.025 GB, free: 9.645 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.947e-05/0.8691, allocations: 7.969 kB / 1.025 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.657e-05/0.8692, allocations: 15.98 kB / 1.025 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.61e-05/0.8693, allocations: 11.98 kB / 1.025 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.8693, allocations: 0 / 1.025 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001117/0.8694, allocations: 132.3 kB / 1.025 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8694, allocations: 0 / 1.025 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000245/0.8697, allocations: 28 kB / 1.025 GB, free: 9.453 MB / 0.7794 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000152/0.8698, allocations: 107.3 kB / 1.025 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003667/0.8702, allocations: 214.6 kB / 1.025 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.8702, allocations: 0 / 1.025 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001568/0.8704, allocations: 111.3 kB / 1.026 GB, free: 8.98 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002512/0.8706, allocations: 19.56 kB / 1.026 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006889/0.8713, allocations: 340.2 kB / 1.026 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003943/0.8717, allocations: 0.716 MB / 1.027 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001039/0.8718, allocations: 24.56 kB / 1.027 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.348e-05/0.8719, allocations: 11.44 kB / 1.027 GB, free: 7.832 MB / 0.7794 GB Notification: Performance of SimCode: time 7.81e-07/0.8719, allocations: 4 kB / 1.027 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of Templates: time 0.004787/0.8767, allocations: 1.241 MB / 1.028 GB, free: 6.602 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches