Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.345/1.345, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 179.4 kB / 326.5 MB, free: 2.273 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.673/1.673, allocations: 205.4 MB / 0.5775 GB, free: 20.32 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008904/0.0008904, allocations: 97.22 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.0003849, allocations: 9.062 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2785, allocations: 106.3 MB / 0.9001 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2007/0.4793, allocations: 131.5 MB / 1.028 GB, free: 12.34 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.4796, allocations: 67.97 kB / 1.029 GB, free: 12.28 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001857/0.4815, allocations: 0.6567 MB / 1.029 GB, free: 11.62 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.675e-06/0.4815, allocations: 0 / 1.029 GB, free: 11.62 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.684e-06/0.4815, allocations: 0 / 1.029 GB, free: 11.62 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004844/0.482, allocations: 343.5 kB / 1.03 GB, free: 11.23 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.4821, allocations: 8.031 kB / 1.03 GB, free: 11.23 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.4821, allocations: 7.906 kB / 1.03 GB, free: 11.22 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.4823, allocations: 175 kB / 1.03 GB, free: 11.01 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.4823, allocations: 0 / 1.03 GB, free: 11.01 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.4823, allocations: 0 / 1.03 GB, free: 11.01 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001105/0.4825, allocations: 41.69 kB / 1.03 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.4825, allocations: 4 kB / 1.03 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.4825, allocations: 3.984 kB / 1.03 GB, free: 10.95 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.4825, allocations: 0 / 1.03 GB, free: 10.95 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.028e-05/0.4826, allocations: 12 kB / 1.03 GB, free: 10.94 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004431/0.483, allocations: 260.9 kB / 1.03 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003858/0.4834, allocations: 98.44 kB / 1.03 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.4834, allocations: 0 / 1.03 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/0.4836, allocations: 55.56 kB / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 1.533e-06/0.4836, allocations: 0 / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of matching and sorting (n=4): time 0.0002077/0.4838, allocations: 69.53 kB / 1.03 GB, free: 10.39 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.4839, allocations: 51.41 kB / 1.03 GB, free: 10.33 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.484, allocations: 104.9 kB / 1.03 GB, free: 10.22 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.484, allocations: 25.7 kB / 1.03 GB, free: 10.19 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.43e-05/0.4841, allocations: 84.14 kB / 1.03 GB, free: 10.1 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.507e-05/0.4841, allocations: 7.906 kB / 1.03 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-06/0.4841, allocations: 8 kB / 1.03 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.4843, allocations: 318.8 kB / 1.031 GB, free: 9.766 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.363e-05/0.4843, allocations: 8 kB / 1.031 GB, free: 9.758 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.461e-05/0.4844, allocations: 21.72 kB / 1.031 GB, free: 9.73 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.427e-05/0.4844, allocations: 4 kB / 1.031 GB, free: 9.727 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.4844, allocations: 0 / 1.031 GB, free: 9.727 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.533e-05/0.4845, allocations: 57.62 kB / 1.031 GB, free: 9.664 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.4845, allocations: 4.031 kB / 1.031 GB, free: 9.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.4845, allocations: 8 kB / 1.031 GB, free: 9.652 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.4846, allocations: 3.984 kB / 1.031 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.038e-05/0.4846, allocations: 4.375 kB / 1.031 GB, free: 9.645 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.4846, allocations: 0 / 1.031 GB, free: 9.645 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.448e-05/0.4847, allocations: 8 kB / 1.031 GB, free: 9.637 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.4847, allocations: 7.984 kB / 1.031 GB, free: 9.629 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,booToInt.y,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001073/0.4848, allocations: 125.7 kB / 1.031 GB, free: 9.496 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.251e-05/0.4848, allocations: 7.906 kB / 1.031 GB, free: 9.488 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.139e-05/0.4848, allocations: 11.91 kB / 1.031 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.4849, allocations: 0 / 1.031 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.4849, allocations: 0 / 1.031 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.4849, allocations: 4 kB / 1.031 GB, free: 9.469 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001405/0.485, allocations: 161.6 kB / 1.031 GB, free: 9.262 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.485, allocations: 0 / 1.031 GB, free: 9.262 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.53e-05/0.485, allocations: 4 kB / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.4851, allocations: 0 / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.4851, allocations: 0 / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.4851, allocations: 0 / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.4851, allocations: 4 kB / 1.031 GB, free: 9.254 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001105/0.4852, allocations: 85.3 kB / 1.031 GB, free: 9.152 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.158e-05/0.4853, allocations: 92.94 kB / 1.031 GB, free: 9.043 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.4853, allocations: 0 / 1.031 GB, free: 9.043 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.034e-05/0.4853, allocations: 11.94 kB / 1.031 GB, free: 9.031 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.4854, allocations: 3.984 kB / 1.031 GB, free: 9.027 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.4854, allocations: 0 / 1.031 GB, free: 9.027 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.6e-05/0.4855, allocations: 91.28 kB / 1.031 GB, free: 8.938 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4855, allocations: 0 / 1.031 GB, free: 8.938 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0001787/0.4856, allocations: 4 kB / 1.031 GB, free: 8.934 MB / 0.6823 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,booToInt.y,booPul.y,booPul.pulseStart) * 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 (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.0001316/0.4858, allocations: 103.2 kB / 1.032 GB, free: 8.824 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 9.547e-05/0.4859, allocations: 20 kB / 1.032 GB, free: 8.805 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.4859, allocations: 4 kB / 1.032 GB, free: 8.801 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 3.547e-05/0.4859, allocations: 15.92 kB / 1.032 GB, free: 8.785 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001642/0.4861, allocations: 19.95 kB / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003295/0.4864, allocations: 138.5 kB / 1.032 GB, free: 8.598 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002921/0.4867, allocations: 0.6848 MB / 1.032 GB, free: 7.887 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.529e-05/0.4868, allocations: 0 / 1.032 GB, free: 7.887 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.717e-05/0.4868, allocations: 11.44 kB / 1.032 GB, free: 7.875 MB / 0.6823 GB Notification: Performance of SimCode: time 6.02e-07/0.4868, allocations: 0 / 1.032 GB, free: 7.875 MB / 0.6823 GB Notification: Performance of Templates: time 0.002448/0.4893, allocations: 482 kB / 1.033 GB, free: 7.418 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Conversions_Validation_BooleanToInteger.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches