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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001445/0.001446, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.709/2.709, allocations: 436.5 MB / 0.7104 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005531/0.0005533, allocations: 8 kB / 0.8708 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8303/0.8309, allocations: 153.7 MB / 1.021 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger): time 0.0009285/0.8319, allocations: 332.4 kB / 1.021 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001391/0.8333, allocations: 1.074 MB / 1.022 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.865e-05/0.8334, allocations: 0 / 1.022 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.368e-05/0.8334, allocations: 0 / 1.022 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.385e-05/0.8335, allocations: 11.88 kB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004402/0.8339, allocations: 106.6 kB / 1.022 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.911e-05/0.834, allocations: 47.95 kB / 1.022 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.527e-05/0.8341, allocations: 0 / 1.022 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.929e-05/0.8342, allocations: 39.89 kB / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.8343, allocations: 23.91 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.903e-05/0.8343, allocations: 4 kB / 1.022 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.029e-05/0.8344, allocations: 19.98 kB / 1.022 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.514e-05/0.8344, allocations: 0 / 1.022 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.576e-05/0.8345, allocations: 33.7 kB / 1.022 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001155/0.8346, allocations: 55.86 kB / 1.023 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.8346, allocations: 0 / 1.023 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.854e-06/0.8346, allocations: 4 kB / 1.023 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.8346, allocations: 0 / 1.023 GB, free: 15.38 MB / 0.7794 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.000491/0.8351, allocations: 366.9 kB / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.8352, allocations: 8.031 kB / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.021e-05/0.8352, allocations: 11.91 kB / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.8353, allocations: 163.1 kB / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.8354, allocations: 4 kB / 1.023 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.8354, allocations: 7.984 kB / 1.023 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.934e-05/0.8355, allocations: 45.64 kB / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.8355, allocations: 3.938 kB / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.8355, allocations: 0 / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.8355, allocations: 4 kB / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.457e-05/0.8356, allocations: 8 kB / 1.023 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004016/0.836, allocations: 296.8 kB / 1.023 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 5.247e-05/0.836, allocations: 22.58 kB / 1.023 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/0.8361, allocations: 8.062 kB / 1.023 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001469/0.8362, allocations: 55.39 kB / 1.023 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.8362, allocations: 4 kB / 1.023 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0001919/0.8364, allocations: 77.52 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.8365, allocations: 51.41 kB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.459e-05/0.8365, allocations: 109.8 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.8366, allocations: 29.7 kB / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.759e-05/0.8366, allocations: 92.14 kB / 1.024 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.411e-05/0.8367, allocations: 7.891 kB / 1.024 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.286e-05/0.8367, allocations: 4 kB / 1.024 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.8368, allocations: 318.8 kB / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.994e-05/0.8369, allocations: 31.98 kB / 1.024 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.293e-05/0.837, allocations: 42.56 kB / 1.024 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.904e-05/0.8371, allocations: 69.56 kB / 1.024 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.8371, allocations: 0 / 1.024 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002486/0.8373, allocations: 155.2 kB / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.872e-05/0.8374, allocations: 33.7 kB / 1.024 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.8374, allocations: 3.984 kB / 1.024 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.8374, allocations: 0 / 1.024 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.489e-05/0.8375, allocations: 4 kB / 1.024 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.8375, allocations: 0 / 1.024 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.8377, allocations: 43.88 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.353e-05/0.8377, allocations: 12 kB / 1.025 GB, free: 13.07 MB / 0.7794 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.654e-05/0.8378, allocations: 113.8 kB / 1.025 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.397e-06/0.8379, allocations: 3.953 kB / 1.025 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.17e-05/0.8379, allocations: 11.91 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.8379, allocations: 0 / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.8379, allocations: 8.062 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.8379, allocations: 0 / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001966/0.8381, allocations: 165.6 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.8381, allocations: 0 / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.653e-05/0.8381, allocations: 0 / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.858e-06/0.8382, allocations: 11.89 kB / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.8382, allocations: 0 / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.8382, allocations: 0 / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.8382, allocations: 0 / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001194/0.8383, allocations: 93.25 kB / 1.025 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.031e-05/0.8384, allocations: 85.14 kB / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.8384, allocations: 3.953 kB / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.318e-05/0.8384, allocations: 0 / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.497e-05/0.8384, allocations: 0 / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/0.8384, allocations: 7.984 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.648e-05/0.8385, allocations: 83.28 kB / 1.025 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8385, allocations: 0 / 1.025 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002003/0.8387, allocations: 20 kB / 1.025 GB, free: 12.38 MB / 0.7794 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 (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.0001447/0.8388, allocations: 111.2 kB / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002142/0.8391, allocations: 123.3 kB / 1.025 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.8391, allocations: 0 / 1.025 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.036e-05/0.8391, allocations: 12 kB / 1.025 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001541/0.8393, allocations: 17.98 kB / 1.025 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002722/0.8396, allocations: 134.7 kB / 1.025 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.8398, allocations: 0.6809 MB / 1.026 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.832e-05/0.8399, allocations: 0 / 1.026 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.762e-05/0.8399, allocations: 11.44 kB / 1.026 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.8399, allocations: 3.938 kB / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of Templates: time 0.003073/0.843, allocations: 0.9848 MB / 1.027 GB, free: 10.25 MB / 0.7794 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