Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.257/2.257, allocations: 390.3 MB / 402.8 MB, free: 6.695 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 180.8 kB / 496.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 221.3 MB / 0.7915 GB, free: 5.484 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009083/0.0009082, allocations: 91.95 kB / 0.9317 GB, free: 5.797 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.346e-05/3.349e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3531, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.155/1.508, allocations: 150.1 MB / 1.365 GB, free: 3.93 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/1.508, allocations: 69.7 kB / 1.365 GB, free: 3.891 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005615/1.514, allocations: 1.809 MB / 1.367 GB, free: 2.312 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.745e-06/1.514, allocations: 0 / 1.367 GB, free: 2.312 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.104e-05/1.514, allocations: 0 / 1.367 GB, free: 2.312 MB / 0.823 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.0004712/1.515, allocations: 363.5 kB / 1.368 GB, free: 1.914 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/1.515, allocations: 12.03 kB / 1.368 GB, free: 1.902 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.774e-05/1.515, allocations: 8.531 kB / 1.368 GB, free: 1.895 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/1.515, allocations: 167 kB / 1.368 GB, free: 1.691 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.37e-05/1.515, allocations: 8 kB / 1.368 GB, free: 1.684 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/1.515, allocations: 4 kB / 1.368 GB, free: 1.68 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.955e-05/1.515, allocations: 41.56 kB / 1.368 GB, free: 1.637 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/1.515, allocations: 0 / 1.368 GB, free: 1.637 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/1.515, allocations: 0 / 1.368 GB, free: 1.637 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/1.515, allocations: 0 / 1.368 GB, free: 1.637 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.443e-05/1.515, allocations: 11.62 kB / 1.368 GB, free: 1.629 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005138/1.516, allocations: 298.4 kB / 1.368 GB, free: 1.309 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.557e-05/1.516, allocations: 26.58 kB / 1.368 GB, free: 1.273 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.636e-05/1.516, allocations: 12.55 kB / 1.368 GB, free: 1.262 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/1.516, allocations: 0 / 1.368 GB, free: 1.262 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001396/1.516, allocations: 62.89 kB / 1.368 GB, free: 1.191 MB / 0.823 GB Notification: Performance of pre-optimization done (n=4): time 3.878e-06/1.516, allocations: 3.984 kB / 1.368 GB, free: 1.188 MB / 0.823 GB Notification: Performance of matching and sorting (n=4): time 0.0002015/1.516, allocations: 64.59 kB / 1.368 GB, free: 1.125 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/1.516, allocations: 59.36 kB / 1.368 GB, free: 1.055 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.674e-05/1.516, allocations: 96.94 kB / 1.368 GB, free: 0.957 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/1.516, allocations: 33.64 kB / 1.368 GB, free: 0.9219 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 7.786e-05/1.516, allocations: 84.12 kB / 1.368 GB, free: 0.8359 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/1.516, allocations: 11.89 kB / 1.368 GB, free: 0.8242 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.036e-05/1.517, allocations: 3.812 kB / 1.368 GB, free: 0.8242 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001656/1.517, allocations: 310.8 kB / 1.369 GB, free: 0.5117 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.98e-05/1.517, allocations: 31.5 kB / 1.369 GB, free: 0.4922 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.88e-05/1.517, allocations: 52.94 kB / 1.369 GB, free: 452 kB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.296e-05/1.517, allocations: 58.94 kB / 1.369 GB, free: 396 kB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/1.517, allocations: 0 / 1.369 GB, free: 396 kB / 0.823 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002739/1.517, allocations: 146.4 kB / 1.369 GB, free: 260 kB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 5.261e-05/1.517, allocations: 37.69 kB / 1.369 GB, free: 216 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/1.517, allocations: 0 / 1.369 GB, free: 216 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/1.517, allocations: 0 / 1.369 GB, free: 216 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.769e-05/1.517, allocations: 8.062 kB / 1.369 GB, free: 208 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/1.517, allocations: 0 / 1.369 GB, free: 208 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/1.518, allocations: 51.64 kB / 1.369 GB, free: 160 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/1.518, allocations: 11.98 kB / 1.369 GB, free: 148 kB / 0.823 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,booToInt.y,$PRE.booPul.y,booPul.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.943e-05/1.518, allocations: 109 kB / 1.369 GB, free: 32 kB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.338e-05/1.518, allocations: 0 / 1.369 GB, free: 32 kB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.957e-05/1.518, allocations: 11.66 kB / 1.369 GB, free: 20 kB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/1.518, allocations: 0 / 1.369 GB, free: 20 kB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/1.518, allocations: 0 / 1.369 GB, free: 20 kB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/1.518, allocations: 0 / 1.369 GB, free: 20 kB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001896/1.518, allocations: 171.7 kB / 1.369 GB, free: 15.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/1.518, allocations: 0 / 1.369 GB, free: 15.81 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.899e-05/1.518, allocations: 3.938 kB / 1.369 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/1.518, allocations: 0 / 1.369 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/1.518, allocations: 4 kB / 1.369 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/1.518, allocations: 4 kB / 1.369 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/1.518, allocations: 0 / 1.369 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001372/1.518, allocations: 90.41 kB / 1.37 GB, free: 15.7 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.891e-05/1.518, allocations: 81.11 kB / 1.37 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/1.518, allocations: 0 / 1.37 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.49e-05/1.518, allocations: 0 / 1.37 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.515e-05/1.518, allocations: 0 / 1.37 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/1.518, allocations: 7.984 kB / 1.37 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.521e-05/1.519, allocations: 87.47 kB / 1.37 GB, free: 15.51 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.519, allocations: 0 / 1.37 GB, free: 15.51 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002299/1.519, allocations: 31.19 kB / 1.37 GB, free: 15.48 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002028/1.519, allocations: 107.4 kB / 1.37 GB, free: 15.37 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002477/1.519, allocations: 118.3 kB / 1.37 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.519, allocations: 0 / 1.37 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.148e-05/1.519, allocations: 19.12 kB / 1.37 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001815/1.519, allocations: 16.27 kB / 1.37 GB, free: 15.24 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000313/1.52, allocations: 75.42 kB / 1.37 GB, free: 15.15 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003852/1.52, allocations: 0.6848 MB / 1.371 GB, free: 14.44 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.959e-05/1.52, allocations: 0 / 1.371 GB, free: 14.44 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.649e-05/1.52, allocations: 11.44 kB / 1.371 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of SimCode: time 8.52e-07/1.52, allocations: 0 / 1.371 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of Templates: time 0.004164/1.524, allocations: 0.9896 MB / 1.372 GB, free: 13.45 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Conversions_Validation_BooleanToInteger.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches