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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.006011/0.006012, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.001451/0.00145, allocations: 195.5 kB / 16.79 MB, free: 6.254 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.392/1.392, allocations: 222.9 MB / 240.5 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.568/2.568, allocations: 437 MB / 0.7106 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002183/0.002183, allocations: 67.88 kB / 0.8692 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7564/0.7586, allocations: 151.6 MB / 1.017 GB, free: 2.898 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004243/0.763, allocations: 2.368 MB / 1.02 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001394/0.7644, allocations: 0.7754 MB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.7645, allocations: 4 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005832/0.7651, allocations: 135.5 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002024/0.7653, allocations: 59.73 kB / 1.021 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001805/0.7655, allocations: 51.89 kB / 1.021 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002444/0.7658, allocations: 195.4 kB / 1.021 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002457/0.766, allocations: 69.06 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.7662, allocations: 59.73 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.7664, allocations: 67.73 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.694e-05/0.7664, allocations: 8 kB / 1.021 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001506/0.7665, allocations: 59.86 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.017e-05/0.7666, allocations: 35.84 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.748e-05/0.7667, allocations: 63.61 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002005/0.7669, allocations: 133.8 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.7669, allocations: 0 / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.22e-07/0.7669, allocations: 4 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.767, allocations: 0 / 1.021 GB, free: 14.81 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.0008263/0.7678, allocations: 498.5 kB / 1.022 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.7678, allocations: 12.03 kB / 1.022 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002298/0.7681, allocations: 24.73 kB / 1.022 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.7683, allocations: 204.1 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.542e-05/0.7684, allocations: 46.39 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.212e-05/0.7684, allocations: 16.12 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003064/0.7688, allocations: 150.4 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.7688, allocations: 0 / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.7688, allocations: 7.984 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.002e-05/0.7688, allocations: 4 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002029/0.769, allocations: 91.88 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008868/0.7699, allocations: 0.6363 MB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002504/0.7702, allocations: 50.56 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.086e-05/0.7703, allocations: 36.91 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.7703, allocations: 3.938 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002222/0.7705, allocations: 150.7 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.7706, allocations: 0 / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003639/0.7709, allocations: 155.4 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.819e-05/0.771, allocations: 140.5 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.7712, allocations: 182.8 kB / 1.024 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.7712, allocations: 29.7 kB / 1.024 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.343e-05/0.7713, allocations: 139.8 kB / 1.024 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.613e-05/0.7714, allocations: 23.66 kB / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.55e-05/0.7714, allocations: 33.7 kB / 1.024 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.7715, allocations: 326.8 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.46e-05/0.7716, allocations: 47.84 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.7718, allocations: 105.4 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002408/0.772, allocations: 230.4 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.772, allocations: 0 / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003528/0.7724, allocations: 244.6 kB / 1.025 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.396e-05/0.7725, allocations: 63.39 kB / 1.025 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.7725, allocations: 7.938 kB / 1.025 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.7725, allocations: 4.312 kB / 1.025 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.7726, allocations: 39.92 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.7726, allocations: 0 / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.7728, allocations: 23.83 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.7728, allocations: 8 kB / 1.025 GB, free: 10.72 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.0001385/0.773, allocations: 169.2 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.773, allocations: 15.81 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.813e-05/0.773, allocations: 17.34 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.773, allocations: 4 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.773, allocations: 3.938 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.773, allocations: 0 / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001712/0.7732, allocations: 209.6 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.7732, allocations: 0 / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.493e-05/0.7733, allocations: 11.98 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.7733, allocations: 3.938 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.7734, allocations: 11.94 kB / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.7734, allocations: 0 / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.7734, allocations: 0 / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003767/0.7737, allocations: 214.7 kB / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.195e-05/0.7738, allocations: 92.86 kB / 1.026 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.217e-05/0.7739, allocations: 7.938 kB / 1.026 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.774, allocations: 11.98 kB / 1.026 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.042e-05/0.774, allocations: 11.98 kB / 1.026 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.774, allocations: 0 / 1.026 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001051/0.7742, allocations: 136.4 kB / 1.026 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.303e-06/0.7742, allocations: 4 kB / 1.026 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002431/0.7744, allocations: 27.94 kB / 1.026 GB, free: 9.684 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.0001192/0.7745, allocations: 107.3 kB / 1.026 GB, free: 9.566 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000312/0.7749, allocations: 215 kB / 1.026 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.7749, allocations: 0.625 kB / 1.026 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.775, allocations: 111.3 kB / 1.026 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.7752, allocations: 19.98 kB / 1.026 GB, free: 9.191 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006046/0.7758, allocations: 358 kB / 1.027 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002423/0.7761, allocations: 0.716 MB / 1.027 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.589e-05/0.7761, allocations: 15.42 kB / 1.027 GB, free: 8.055 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.7762, allocations: 0 / 1.027 GB, free: 8.055 MB / 0.7794 GB Notification: Performance of Templates: time 0.00321/0.7794, allocations: 1.696 MB / 1.029 GB, free: 6.367 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=480 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches