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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001146/0.001146, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001711/0.001711, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.412/1.412, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.382/2.382, allocations: 390.9 MB / 0.667 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003679/0.000368, allocations: 12 kB / 0.8166 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.768/0.7684, allocations: 142.4 MB / 0.9557 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger): time 0.0007528/0.7692, allocations: 334.4 kB / 0.956 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001198/0.7704, allocations: 1.116 MB / 0.9571 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.723e-05/0.7705, allocations: 1.125 kB / 0.9571 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.096e-05/0.7705, allocations: 3.938 kB / 0.9571 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.538e-05/0.7705, allocations: 5.078 kB / 0.9571 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000414/0.771, allocations: 109.1 kB / 0.9572 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.697e-05/0.7711, allocations: 79.05 kB / 0.9573 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.78e-05/0.7712, allocations: 7.375 kB / 0.9573 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.701e-05/0.7712, allocations: 40.83 kB / 0.9574 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.305e-05/0.7713, allocations: 26.19 kB / 0.9574 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.939e-05/0.7713, allocations: 5.062 kB / 0.9574 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.131e-05/0.7714, allocations: 18.7 kB / 0.9574 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.651e-05/0.7714, allocations: 1.344 kB / 0.9574 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.758e-05/0.7715, allocations: 51.81 kB / 0.9575 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.871e-05/0.7716, allocations: 57.5 kB / 0.9575 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.7716, allocations: 4.969 kB / 0.9575 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.7716, allocations: 0 / 0.9575 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.517e-06/0.7716, allocations: 0 / 0.9575 GB, free: 6.305 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003207/0.772, allocations: 366.5 kB / 0.9579 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.772, allocations: 9.094 kB / 0.9579 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.045e-05/0.7721, allocations: 8.875 kB / 0.9579 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.057e-05/0.7721, allocations: 163.2 kB / 0.958 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.7722, allocations: 2.969 kB / 0.958 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.333e-05/0.7722, allocations: 8.578 kB / 0.9581 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.697e-05/0.7723, allocations: 36.58 kB / 0.9581 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.7723, allocations: 192 / 0.9581 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.7723, allocations: 15.8 kB / 0.9581 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.7723, allocations: 5.219 kB / 0.9581 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.585e-05/0.7724, allocations: 8.406 kB / 0.9581 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003194/0.7727, allocations: 289.1 kB / 0.9584 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.707e-05/0.7727, allocations: 28.33 kB / 0.9584 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.908e-05/0.7728, allocations: 9.609 kB / 0.9584 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.066e-05/0.7728, allocations: 0 / 0.9584 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001115/0.7729, allocations: 75.66 kB / 0.9585 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.7729, allocations: 0 / 0.9585 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001795/0.7731, allocations: 67.34 kB / 0.9586 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.551e-05/0.7731, allocations: 56.42 kB / 0.9586 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.055e-05/0.7732, allocations: 110.9 kB / 0.9587 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.7732, allocations: 31.83 kB / 0.9588 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.404e-05/0.7732, allocations: 82.73 kB / 0.9588 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.188e-05/0.7733, allocations: 17.81 kB / 0.9588 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.031e-05/0.7733, allocations: 17.03 kB / 0.9589 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.845e-05/0.7734, allocations: 321.3 kB / 0.9592 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.934e-05/0.7734, allocations: 28.11 kB / 0.9592 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.203e-05/0.7735, allocations: 48.56 kB / 0.9592 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.869e-05/0.7736, allocations: 86.14 kB / 0.9593 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.726e-06/0.7736, allocations: 3.938 kB / 0.9593 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002269/0.7739, allocations: 153.2 kB / 0.9595 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.7739, allocations: 42.91 kB / 0.9595 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.7739, allocations: 400 / 0.9595 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.7739, allocations: 1.031 kB / 0.9595 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.861e-05/0.774, allocations: 3.281 kB / 0.9595 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.774, allocations: 1.25 kB / 0.9595 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.7742, allocations: 40.75 kB / 0.9596 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.083e-05/0.7743, allocations: 13.55 kB / 0.9596 GB, free: 4.215 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: 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 6.224e-05/0.7743, allocations: 118.5 kB / 0.9597 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.025e-05/0.7743, allocations: 2.094 kB / 0.9597 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.194e-05/0.7744, allocations: 5.25 kB / 0.9597 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.7744, allocations: 4 kB / 0.9597 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.7744, allocations: 1.562 kB / 0.9597 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.7744, allocations: 0 / 0.9597 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.327e-05/0.7745, allocations: 172.2 kB / 0.9599 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.7745, allocations: 0 / 0.9599 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.475e-05/0.7745, allocations: 2.719 kB / 0.9599 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.7745, allocations: 0 / 0.9599 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-06/0.7745, allocations: 1.312 kB / 0.9599 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.7745, allocations: 11.91 kB / 0.9599 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.7745, allocations: 1.375 kB / 0.9599 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.32e-05/0.7746, allocations: 88.94 kB / 0.96 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.913e-05/0.7746, allocations: 79.14 kB / 0.96 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.7747, allocations: 4 kB / 0.96 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.417e-05/0.7747, allocations: 1.031 kB / 0.96 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.717e-05/0.7747, allocations: 5.953 kB / 0.9601 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-06/0.7747, allocations: 1.25 kB / 0.9601 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.571e-05/0.7748, allocations: 85.06 kB / 0.9601 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7748, allocations: 0 / 0.9601 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002091/0.775, allocations: 27.14 kB / 0.9602 GB, free: 3.578 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: 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.0001218/0.7751, allocations: 98.59 kB / 0.9603 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001819/0.7753, allocations: 127 kB / 0.9604 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.7753, allocations: 3.938 kB / 0.9604 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.275e-05/0.7753, allocations: 17.95 kB / 0.9604 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001874/0.7755, allocations: 7.531 kB / 0.9604 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002444/0.7758, allocations: 175.2 kB / 0.9606 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.497e-05/0.7759, allocations: 0.6791 MB / 0.9612 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.626e-05/0.7759, allocations: 10.28 kB / 0.9612 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of SimCode: time 1.362e-06/0.7759, allocations: 0 / 0.9612 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of Templates: time 0.002239/0.7782, allocations: 0.9305 MB / 0.9622 GB, free: 2.023 MB / 0.7169 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/jenkins1/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