Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.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.Conversions.Validation.BooleanToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booToInt.u|booToInt.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger") translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booToInt.u|booToInt.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009525/0.009525, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.00162/0.00162, allocations: 193.5 kB / 16.67 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 15.12 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.41/2.41, allocations: 390.2 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 63.89 kB / 0.9508 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9637/0.965, allocations: 140.4 MB / 1.088 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger): time 0.002315/0.9674, allocations: 0.6196 MB / 1.089 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001661/0.9691, allocations: 1.104 MB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.346e-05/0.9691, allocations: 0 / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.635e-05/0.9692, allocations: 5.641 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.802e-05/0.9693, allocations: 5.531 kB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005537/0.9698, allocations: 131.2 kB / 1.09 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001931/0.97, allocations: 91.53 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.9701, allocations: 4.562 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.9703, allocations: 42.06 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.9704, allocations: 36.12 kB / 1.09 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.74e-05/0.9704, allocations: 11.72 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.989e-05/0.9705, allocations: 18.14 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.575e-05/0.9705, allocations: 6.25 kB / 1.09 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.174e-05/0.9706, allocations: 32.09 kB / 1.09 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002187/0.9708, allocations: 83.12 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.9709, allocations: 0 / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.866e-06/0.9709, allocations: 0.7188 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.532e-06/0.9709, allocations: 0 / 1.09 GB, free: 4.109 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004995/0.9714, allocations: 386.7 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.9714, allocations: 9.156 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.976e-05/0.9715, allocations: 5.531 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.9716, allocations: 168.2 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.9716, allocations: 2.156 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.438e-05/0.9717, allocations: 6.516 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.9718, allocations: 42.8 kB / 1.091 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.9718, allocations: 0.9375 kB / 1.091 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.9718, allocations: 4.734 kB / 1.091 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.9718, allocations: 0.7812 kB / 1.091 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.774e-05/0.9719, allocations: 14.72 kB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004215/0.9723, allocations: 289.9 kB / 1.091 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.498e-05/0.9724, allocations: 31.34 kB / 1.091 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.727e-05/0.9724, allocations: 17.59 kB / 1.091 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.24e-05/0.9724, allocations: 0 / 1.091 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000171/0.9726, allocations: 66.88 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.202e-06/0.9726, allocations: 0 / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0002259/0.9729, allocations: 73.11 kB / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.9729, allocations: 57.48 kB / 1.091 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.153e-05/0.973, allocations: 111.2 kB / 1.091 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.973, allocations: 27.48 kB / 1.091 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.355e-05/0.9731, allocations: 83.78 kB / 1.091 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.442e-05/0.9731, allocations: 10.53 kB / 1.091 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-05/0.9732, allocations: 34.58 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.262e-05/0.9732, allocations: 314 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.118e-05/0.9733, allocations: 32.41 kB / 1.092 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.388e-05/0.9734, allocations: 50.33 kB / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.9735, allocations: 85.56 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.9735, allocations: 7.938 kB / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002753/0.9738, allocations: 149.4 kB / 1.092 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.9738, allocations: 35.14 kB / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.9739, allocations: 0.875 kB / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.9739, allocations: 1.812 kB / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.884e-05/0.9739, allocations: 7.297 kB / 1.092 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.9739, allocations: 1.609 kB / 1.092 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002437/0.9742, allocations: 32.45 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.624e-05/0.9742, allocations: 10.34 kB / 1.092 GB, free: 2.121 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y,booToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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 8.065e-05/0.9743, allocations: 119.3 kB / 1.092 GB, free: 2 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.253e-05/0.9743, allocations: 6.109 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.965e-05/0.9744, allocations: 6.266 kB / 1.092 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.9744, allocations: 1.125 kB / 1.092 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.9744, allocations: 0.7969 kB / 1.092 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.9744, allocations: 0 / 1.092 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001328/0.9745, allocations: 172.3 kB / 1.092 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.9746, allocations: 0 / 1.092 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.537e-05/0.9746, allocations: 11.11 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.9746, allocations: 0 / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.9746, allocations: 1.438 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.9746, allocations: 0.7969 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.9746, allocations: 4.719 kB / 1.092 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000142/0.9748, allocations: 87.69 kB / 1.092 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.25e-05/0.9748, allocations: 82.45 kB / 1.093 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.689e-05/0.9748, allocations: 1.422 kB / 1.093 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.487e-05/0.9749, allocations: 5.391 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.273e-05/0.9749, allocations: 2.984 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.9749, allocations: 5.797 kB / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.946e-05/0.975, allocations: 87.77 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.975, allocations: 0 / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002187/0.9752, allocations: 19.28 kB / 1.093 GB, free: 1.504 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booToInt.y,booPul.y) * Number of discrete states: 0 () * 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: 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.0001679/0.9754, allocations: 104.8 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003007/0.9757, allocations: 127.4 kB / 1.093 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.9757, allocations: 0 / 1.093 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.466e-05/0.9757, allocations: 19.5 kB / 1.093 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.976, allocations: 13.22 kB / 1.093 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002891/0.9763, allocations: 132.7 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001474/0.9764, allocations: 0.68 MB / 1.094 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.37e-05/0.9764, allocations: 3.031 kB / 1.094 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.993e-05/0.9765, allocations: 13.59 kB / 1.094 GB, free: 492 kB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.9765, allocations: 0 / 1.094 GB, free: 492 kB / 0.8575 GB Notification: Performance of Templates: time 0.00478/0.9813, allocations: 1.08 MB / 1.095 GB, free: 360 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Conversions_Validation_BooleanToInteger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches