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.0008981/0.0008979, allocations: 98.8 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 184.2 kB / 16.92 MB, free: 6.895 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.433/1.433, allocations: 223.3 MB / 241 MB, free: 5.352 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.658/2.658, allocations: 437.8 MB / 0.7128 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003759/0.000376, allocations: 8 kB / 0.8735 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7912/0.7916, allocations: 153.8 MB / 1.024 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002912/0.7946, allocations: 2.025 MB / 1.026 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001376/0.796, allocations: 0.7598 MB / 1.026 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.17e-05/0.7961, allocations: 0 / 1.026 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.7962, allocations: 23.86 kB / 1.026 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002481/0.7965, allocations: 55.73 kB / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001661/0.7967, allocations: 47.88 kB / 1.027 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002355/0.7969, allocations: 199.4 kB / 1.027 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.7972, allocations: 189.6 kB / 1.027 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.7973, allocations: 55.77 kB / 1.027 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001545/0.7975, allocations: 63.69 kB / 1.027 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.963e-05/0.7975, allocations: 8 kB / 1.027 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.7977, allocations: 63.86 kB / 1.027 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.843e-05/0.7977, allocations: 31.91 kB / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.244e-05/0.7978, allocations: 85.38 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001843/0.798, allocations: 121.7 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.798, allocations: 7.938 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.834e-06/0.798, allocations: 0 / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.798, allocations: 0 / 1.027 GB, free: 12.09 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.0007196/0.7988, allocations: 474.6 kB / 1.028 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.7988, allocations: 8.031 kB / 1.028 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002332/0.7991, allocations: 28.73 kB / 1.028 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/0.7993, allocations: 212.1 kB / 1.028 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.694e-05/0.7994, allocations: 34.45 kB / 1.028 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.291e-05/0.7994, allocations: 12.12 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003154/0.7997, allocations: 152.7 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.7997, allocations: 0 / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.7998, allocations: 4 kB / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.7998, allocations: 12 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/0.8, allocations: 87.89 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008782/0.8009, allocations: 0.6441 MB / 1.029 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002373/0.8011, allocations: 62.55 kB / 1.029 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.726e-05/0.8012, allocations: 28.91 kB / 1.029 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.8012, allocations: 11.94 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002115/0.8015, allocations: 142.7 kB / 1.029 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.8015, allocations: 0 / 1.029 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000392/0.8019, allocations: 175.3 kB / 1.029 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.313e-05/0.802, allocations: 140.5 kB / 1.029 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.8021, allocations: 182.8 kB / 1.03 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.8022, allocations: 33.7 kB / 1.03 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.086e-05/0.8023, allocations: 127.9 kB / 1.03 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.628e-05/0.8023, allocations: 31.58 kB / 1.03 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.572e-05/0.8023, allocations: 17.72 kB / 1.03 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.8025, allocations: 326.8 kB / 1.03 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.8026, allocations: 43.97 kB / 1.03 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.8027, allocations: 114.9 kB / 1.03 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002751/0.803, allocations: 230.4 kB / 1.031 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.803, allocations: 4 kB / 1.031 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000382/0.8034, allocations: 248.9 kB / 1.031 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.142e-05/0.8035, allocations: 63.39 kB / 1.031 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.8035, allocations: 7.938 kB / 1.031 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.8035, allocations: 0 / 1.031 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.8036, allocations: 35.92 kB / 1.031 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.8036, allocations: 4 kB / 1.031 GB, free: 8.031 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/0.8038, allocations: 27.88 kB / 1.031 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.8038, allocations: 11.98 kB / 1.031 GB, free: 7.992 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.0001444/0.804, allocations: 170.3 kB / 1.031 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.49e-05/0.804, allocations: 11.91 kB / 1.031 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.991e-05/0.804, allocations: 17.34 kB / 1.031 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.8041, allocations: 3.984 kB / 1.031 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.8041, allocations: 0 / 1.031 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.8041, allocations: 0 / 1.031 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001954/0.8043, allocations: 213.6 kB / 1.031 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.8043, allocations: 0 / 1.031 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.331e-05/0.8044, allocations: 15.98 kB / 1.031 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.8044, allocations: 0 / 1.031 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.8044, allocations: 15.88 kB / 1.031 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.8044, allocations: 4 kB / 1.031 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.8044, allocations: 7.875 kB / 1.031 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003867/0.8048, allocations: 222.6 kB / 1.032 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.884e-05/0.8049, allocations: 92.84 kB / 1.032 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.8049, allocations: 7.969 kB / 1.032 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.129e-05/0.805, allocations: 8 kB / 1.032 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.321e-05/0.8051, allocations: 11.98 kB / 1.032 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.946e-06/0.8051, allocations: 4 kB / 1.032 GB, free: 7.102 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001226/0.8052, allocations: 132.3 kB / 1.032 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8052, allocations: 0 / 1.032 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002542/0.8055, allocations: 32.06 kB / 1.032 GB, free: 6.941 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.0001183/0.8056, allocations: 103.2 kB / 1.032 GB, free: 6.828 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003332/0.806, allocations: 218.6 kB / 1.032 GB, free: 6.59 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.806, allocations: 0 / 1.032 GB, free: 6.59 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001374/0.8061, allocations: 108 kB / 1.032 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.8064, allocations: 29.53 kB / 1.032 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006474/0.807, allocations: 371.9 kB / 1.033 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.8074, allocations: 0.716 MB / 1.033 GB, free: 5.312 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.594e-05/0.8074, allocations: 11.44 kB / 1.033 GB, free: 5.301 MB / 0.7794 GB Notification: Performance of SimCode: time 6.11e-07/0.8074, allocations: 0 / 1.033 GB, free: 5.301 MB / 0.7794 GB Notification: Performance of Templates: time 0.003643/0.8111, allocations: 1.676 MB / 1.035 GB, free: 3.633 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