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.009017/0.009017, allocations: 105.4 kB / 15.74 MB, free: 6.008 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.001448/0.001448, allocations: 199.9 kB / 16.68 MB, free: 5.93 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.125 MB / 190.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.55/2.55, allocations: 390.2 MB / 0.6648 GB, free: 132 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 61.34 kB / 0.9508 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3418, allocations: 140.4 MB / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003849/0.3457, allocations: 2.317 MB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001358/0.3471, allocations: 0.7793 MB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.3472, allocations: 7.938 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005991/0.3478, allocations: 143.4 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002064/0.3481, allocations: 67.59 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001665/0.3482, allocations: 47.88 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002538/0.3485, allocations: 163.5 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.3488, allocations: 105 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.3489, allocations: 67.72 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.3491, allocations: 71.67 kB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.556e-05/0.3491, allocations: 12 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.3492, allocations: 55.89 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.84e-05/0.3493, allocations: 35.91 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.594e-05/0.3494, allocations: 67.66 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.3496, allocations: 163.5 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3497, allocations: 15.86 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.004e-06/0.3497, allocations: 0 / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.75e-06/0.3497, allocations: 0 / 1.092 GB, free: 13.36 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.0007542/0.3504, allocations: 494.4 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.3505, allocations: 8.031 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002019/0.3507, allocations: 24.83 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002552/0.351, allocations: 217.8 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.595e-05/0.351, allocations: 34.45 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/0.3511, allocations: 16.12 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.3514, allocations: 150.8 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.3514, allocations: 0 / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.3514, allocations: 4 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.161e-05/0.3514, allocations: 7.984 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001892/0.3516, allocations: 87.89 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000836/0.3525, allocations: 0.6441 MB / 1.094 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002245/0.3527, allocations: 58.55 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.593e-05/0.3528, allocations: 20.92 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.3528, allocations: 8 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001914/0.353, allocations: 146.7 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.353, allocations: 0 / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003573/0.3534, allocations: 159.3 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/0.3535, allocations: 136.5 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001627/0.3536, allocations: 182.6 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.3537, allocations: 29.7 kB / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.201e-05/0.3538, allocations: 147.8 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.474e-05/0.3538, allocations: 23.7 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.896e-05/0.3539, allocations: 37.72 kB / 1.094 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.354, allocations: 322.8 kB / 1.095 GB, free: 10.15 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.224e-05/0.3541, allocations: 39.97 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.3542, allocations: 113.4 kB / 1.095 GB, free: 9.965 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.3545, allocations: 222.4 kB / 1.095 GB, free: 9.695 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.3545, allocations: 4 kB / 1.095 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003534/0.3549, allocations: 244.5 kB / 1.095 GB, free: 9.434 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.514e-05/0.3549, allocations: 63.39 kB / 1.095 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.3549, allocations: 7.938 kB / 1.095 GB, free: 9.352 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.3549, allocations: 7.938 kB / 1.095 GB, free: 9.344 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.3551, allocations: 31.92 kB / 1.095 GB, free: 9.312 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.3551, allocations: 4 kB / 1.095 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.3552, allocations: 28.14 kB / 1.095 GB, free: 9.281 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.3553, allocations: 12 kB / 1.095 GB, free: 9.27 MB / 0.8575 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.0001235/0.3554, allocations: 167.4 kB / 1.096 GB, free: 9.09 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.912e-05/0.3554, allocations: 11.81 kB / 1.096 GB, free: 9.078 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.986e-05/0.3555, allocations: 17.39 kB / 1.096 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.3555, allocations: 15.97 kB / 1.096 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.3555, allocations: 0 / 1.096 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.3555, allocations: 0 / 1.096 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.3557, allocations: 205.6 kB / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3557, allocations: 4 kB / 1.096 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.581e-05/0.3558, allocations: 11.98 kB / 1.096 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.3558, allocations: 0 / 1.096 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-05/0.3558, allocations: 11.94 kB / 1.096 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.3558, allocations: 0 / 1.096 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3558, allocations: 3.938 kB / 1.096 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003932/0.3562, allocations: 218.9 kB / 1.096 GB, free: 8.527 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.94e-05/0.3563, allocations: 89.03 kB / 1.096 GB, free: 8.422 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.902e-05/0.3563, allocations: 7.938 kB / 1.096 GB, free: 8.414 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.3564, allocations: 8 kB / 1.096 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.372e-05/0.3565, allocations: 7.984 kB / 1.096 GB, free: 8.398 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.3565, allocations: 4 kB / 1.096 GB, free: 8.395 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001091/0.3566, allocations: 132.3 kB / 1.096 GB, free: 8.266 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3566, allocations: 0 / 1.096 GB, free: 8.266 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002568/0.3569, allocations: 35.94 kB / 1.096 GB, free: 8.23 MB / 0.8575 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.0001086/0.357, allocations: 103.3 kB / 1.096 GB, free: 8.121 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003232/0.3574, allocations: 218.6 kB / 1.097 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.3574, allocations: 0 / 1.097 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.3575, allocations: 107.3 kB / 1.097 GB, free: 7.766 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.3577, allocations: 26.11 kB / 1.097 GB, free: 7.742 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000563/0.3583, allocations: 282.4 kB / 1.097 GB, free: 7.441 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.3586, allocations: 0.7155 MB / 1.098 GB, free: 6.699 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.064e-05/0.3587, allocations: 20.62 kB / 1.098 GB, free: 6.68 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.724e-05/0.3588, allocations: 11.44 kB / 1.098 GB, free: 6.668 MB / 0.8575 GB Notification: Performance of SimCode: time 2.7e-07/0.3588, allocations: 7.938 kB / 1.098 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of Templates: time 0.004291/0.3631, allocations: 1.428 MB / 1.099 GB, free: 5.25 MB / 0.8575 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches