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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 105 kB / 16.41 MB, free: 6.465 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.001198/0.001198, allocations: 187 kB / 17.34 MB, free: 5.719 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.298/2.298, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 59.91 kB / 0.9515 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8757/0.8771, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003731/0.8809, allocations: 2.305 MB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001325/0.8823, allocations: 0.7799 MB / 1.092 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.8824, allocations: 2.406 kB / 1.092 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006449/0.883, allocations: 152.1 kB / 1.092 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001955/0.8833, allocations: 68.11 kB / 1.092 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001799/0.8834, allocations: 52.3 kB / 1.092 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002797/0.8837, allocations: 168.8 kB / 1.092 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002965/0.884, allocations: 98.11 kB / 1.092 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.8842, allocations: 59.03 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.8844, allocations: 71.89 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.275e-05/0.8844, allocations: 12.81 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001425/0.8846, allocations: 60.64 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.881e-05/0.8846, allocations: 35.42 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.301e-05/0.8847, allocations: 68.89 kB / 1.092 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003043/0.885, allocations: 168.9 kB / 1.093 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.885, allocations: 0 / 1.093 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.353e-06/0.8851, allocations: 0 / 1.093 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.8851, allocations: 0 / 1.093 GB, free: 2.93 MB / 0.8575 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.0006553/0.8857, allocations: 0.4907 MB / 1.093 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.8858, allocations: 10.12 kB / 1.093 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002156/0.886, allocations: 29.72 kB / 1.093 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.8862, allocations: 210.5 kB / 1.093 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.451e-05/0.8863, allocations: 36.23 kB / 1.093 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.8863, allocations: 16.61 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003144/0.8866, allocations: 146.9 kB / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.8867, allocations: 0 / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.8867, allocations: 6 kB / 1.093 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.713e-05/0.8867, allocations: 4.891 kB / 1.093 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000222/0.8869, allocations: 91.23 kB / 1.094 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008204/0.8878, allocations: 0.6377 MB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002435/0.888, allocations: 57.03 kB / 1.094 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.699e-05/0.8881, allocations: 28 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.8881, allocations: 0.8125 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/0.8884, allocations: 146.2 kB / 1.094 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.8884, allocations: 4 kB / 1.094 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003998/0.8888, allocations: 161.7 kB / 1.095 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.8888, allocations: 132.5 kB / 1.095 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.889, allocations: 191.1 kB / 1.095 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.8891, allocations: 27.95 kB / 1.095 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.093e-05/0.8891, allocations: 134.6 kB / 1.095 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.555e-05/0.8892, allocations: 25.64 kB / 1.095 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.279e-05/0.8892, allocations: 38.92 kB / 1.095 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.489e-05/0.8893, allocations: 330.6 kB / 1.095 GB, free: 400 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.8894, allocations: 38.91 kB / 1.095 GB, free: 388 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.8895, allocations: 109.2 kB / 1.096 GB, free: 280 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002259/0.8898, allocations: 237.1 kB / 1.096 GB, free: 44 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.8898, allocations: 0.9688 kB / 1.096 GB, free: 44 kB / 0.8575 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004517/0.8902, allocations: 247.3 kB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 6.602e-05/0.8903, allocations: 60.98 kB / 1.096 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.8903, allocations: 6.156 kB / 1.096 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.8904, allocations: 3.906 kB / 1.096 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.8905, allocations: 35.23 kB / 1.096 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.8905, allocations: 4.109 kB / 1.096 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.8907, allocations: 27.14 kB / 1.096 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.8907, allocations: 10.48 kB / 1.096 GB, free: 15.8 MB / 0.8731 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.00018/0.8909, allocations: 172 kB / 1.096 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.131e-05/0.8909, allocations: 15.97 kB / 1.096 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.375e-05/0.891, allocations: 19.33 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.891, allocations: 0.9375 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.891, allocations: 0 / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.891, allocations: 1.547 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.8913, allocations: 208.5 kB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.8913, allocations: 1.547 kB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.143e-05/0.8913, allocations: 10.11 kB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.8914, allocations: 5 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.8914, allocations: 6.094 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.8914, allocations: 0.9062 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.8914, allocations: 0 / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004454/0.8918, allocations: 220.6 kB / 1.097 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.728e-05/0.8919, allocations: 89.3 kB / 1.097 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.352e-05/0.892, allocations: 10.47 kB / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.56e-05/0.8921, allocations: 14.14 kB / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.339e-05/0.8921, allocations: 6.547 kB / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.8922, allocations: 7.109 kB / 1.097 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000128/0.8923, allocations: 130.7 kB / 1.097 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8923, allocations: 7.875 kB / 1.097 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002715/0.8926, allocations: 27.52 kB / 1.097 GB, free: 15.04 MB / 0.8731 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.0001252/0.8927, allocations: 107 kB / 1.097 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003697/0.8931, allocations: 218.9 kB / 1.097 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.8931, allocations: 0.8438 kB / 1.097 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.8932, allocations: 103.7 kB / 1.097 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002433/0.8935, allocations: 19.19 kB / 1.097 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007306/0.8942, allocations: 317.4 kB / 1.098 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.8946, allocations: 0.7132 MB / 1.098 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.691e-05/0.8946, allocations: 14.3 kB / 1.099 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/0.8947, allocations: 0 / 1.099 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of Templates: time 0.004683/0.8993, allocations: 1.707 MB / 1.1 GB, free: 13.6 MB / 0.8731 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches