Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.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.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001216, 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.001374/0.001374, allocations: 194.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.434/1.434, allocations: 222.9 MB / 239.8 MB, free: 4.621 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.505/2.505, allocations: 390.2 MB / 0.6642 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001276, allocations: 67.91 kB / 0.8119 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8537/0.855, allocations: 140.4 MB / 0.9489 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.001966/0.857, allocations: 0.8473 MB / 0.9498 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001377/0.8584, allocations: 1.152 MB / 0.9509 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.717e-05/0.8585, allocations: 0 / 0.9509 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.362e-05/0.8585, allocations: 0 / 0.9509 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.307e-05/0.8586, allocations: 10.62 kB / 0.9509 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004375/0.8591, allocations: 112.2 kB / 0.951 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000135/0.8592, allocations: 120.1 kB / 0.9511 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.8593, allocations: 21.95 kB / 0.9511 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.427e-05/0.8594, allocations: 45.38 kB / 0.9512 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.96e-05/0.8595, allocations: 43.94 kB / 0.9512 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.757e-05/0.8596, allocations: 6.75 kB / 0.9512 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.316e-05/0.8596, allocations: 25.14 kB / 0.9513 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.071e-05/0.8597, allocations: 13.33 kB / 0.9513 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.752e-05/0.8597, allocations: 41.81 kB / 0.9513 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001604/0.8599, allocations: 103.8 kB / 0.9514 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.8599, allocations: 9.297 kB / 0.9514 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.42e-07/0.8599, allocations: 0 / 0.9514 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.704e-06/0.8599, allocations: 0 / 0.9514 GB, free: 7.223 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005838/0.8605, allocations: 426.2 kB / 0.9518 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.8606, allocations: 9.469 kB / 0.9518 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.044e-05/0.8606, allocations: 13.8 kB / 0.9518 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.302e-05/0.8607, allocations: 176.2 kB / 0.952 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.8608, allocations: 3.156 kB / 0.952 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.771e-05/0.8608, allocations: 14.62 kB / 0.952 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002556/0.8611, allocations: 74.98 kB / 0.9521 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.8611, allocations: 5.594 kB / 0.9521 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.8611, allocations: 3.938 kB / 0.9521 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.8611, allocations: 1.375 kB / 0.9521 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002973/0.8614, allocations: 70.52 kB / 0.9522 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004219/0.8618, allocations: 330 kB / 0.9525 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.8621, allocations: 51.98 kB / 0.9525 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.8622, allocations: 53.72 kB / 0.9526 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.8622, allocations: 0 / 0.9526 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003217/0.8626, allocations: 96.44 kB / 0.9527 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.493e-06/0.8626, allocations: 0 / 0.9527 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005921/0.8632, allocations: 162.9 kB / 0.9528 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.959e-05/0.8632, allocations: 57.09 kB / 0.9529 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.327e-05/0.8633, allocations: 125.7 kB / 0.953 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.8633, allocations: 31.73 kB / 0.953 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.302e-05/0.8634, allocations: 92.11 kB / 0.9531 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.342e-05/0.8634, allocations: 21.98 kB / 0.9532 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.692e-05/0.8635, allocations: 35.14 kB / 0.9532 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.999e-05/0.8635, allocations: 319.8 kB / 0.9535 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/0.8638, allocations: 61.09 kB / 0.9536 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.864, allocations: 80.89 kB / 0.9536 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003457/0.8643, allocations: 142.4 kB / 0.9538 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.8644, allocations: 3.938 kB / 0.9538 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005299/0.8649, allocations: 216 kB / 0.954 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.8649, allocations: 35.86 kB / 0.954 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.865, allocations: 1.594 kB / 0.954 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.865, allocations: 1.625 kB / 0.954 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.8651, allocations: 18.91 kB / 0.954 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.8651, allocations: 1.438 kB / 0.954 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.8654, allocations: 38.42 kB / 0.9541 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.624e-05/0.8654, allocations: 12.3 kB / 0.9541 GB, free: 4.82 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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 prepare postOptimizeDAE: time 7.408e-05/0.8655, allocations: 123.3 kB / 0.9542 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.648e-05/0.8655, allocations: 8.281 kB / 0.9542 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.951e-05/0.8656, allocations: 6.094 kB / 0.9542 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.8656, allocations: 3.938 kB / 0.9542 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.8656, allocations: 0 / 0.9542 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.8656, allocations: 1.469 kB / 0.9542 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000106/0.8657, allocations: 194 kB / 0.9544 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.8657, allocations: 0 / 0.9544 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.8658, allocations: 14.61 kB / 0.9544 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.8658, allocations: 1.656 kB / 0.9544 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.8658, allocations: 4 kB / 0.9544 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.8658, allocations: 320 / 0.9544 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.8659, allocations: 1.406 kB / 0.9544 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003841/0.8662, allocations: 156.4 kB / 0.9546 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.263e-05/0.8663, allocations: 82.2 kB / 0.9547 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.957e-05/0.8663, allocations: 5.109 kB / 0.9547 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.541e-05/0.8664, allocations: 14.92 kB / 0.9547 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.321e-05/0.8665, allocations: 7.453 kB / 0.9547 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.023e-06/0.8665, allocations: 5.25 kB / 0.9547 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.236e-05/0.8665, allocations: 97.77 kB / 0.9548 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8665, allocations: 3.938 kB / 0.9548 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002411/0.8668, allocations: 24.5 kB / 0.9548 GB, free: 4.121 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001751/0.8669, allocations: 99.84 kB / 0.9549 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000472/0.8674, allocations: 185.8 kB / 0.9551 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.8674, allocations: 4.062 kB / 0.9551 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.8676, allocations: 52.45 kB / 0.9551 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002444/0.8679, allocations: 17.98 kB / 0.9551 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003566/0.8682, allocations: 181.5 kB / 0.9553 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001639/0.8684, allocations: 0.684 MB / 0.956 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.25e-05/0.8685, allocations: 10.97 kB / 0.956 GB, free: 3 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.873e-05/0.8685, allocations: 10.34 kB / 0.956 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of SimCode: time 3.2e-07/0.8685, allocations: 0 / 0.956 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of Templates: time 0.003999/0.8725, allocations: 1.406 MB / 0.9574 GB, free: 2.277 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches