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.001138/0.001138, allocations: 100.1 kB / 15.88 MB, free: 12 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.001263/0.001263, allocations: 196.5 kB / 16.79 MB, free: 6.828 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.378/1.378, allocations: 222.9 MB / 240.5 MB, free: 4.598 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.378/2.378, allocations: 390.2 MB / 0.6649 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 59.91 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.614/0.6154, allocations: 140.4 MB / 0.9496 GB, free: 9.254 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger): time 0.001787/0.6173, allocations: 0.6604 MB / 0.9502 GB, free: 8.75 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001179/0.6185, allocations: 1.122 MB / 0.9513 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.272e-05/0.6185, allocations: 0 / 0.9513 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.85e-05/0.6185, allocations: 1.375 kB / 0.9513 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.737e-05/0.6186, allocations: 3.938 kB / 0.9513 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003874/0.619, allocations: 109.8 kB / 0.9514 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.533e-05/0.6191, allocations: 83.14 kB / 0.9515 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.648e-05/0.6192, allocations: 7.875 kB / 0.9515 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.282e-05/0.6193, allocations: 35.92 kB / 0.9516 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.983e-05/0.6193, allocations: 28 kB / 0.9516 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.198e-05/0.6194, allocations: 3.875 kB / 0.9516 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.781e-05/0.6194, allocations: 19.2 kB / 0.9516 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.873e-05/0.6195, allocations: 5.656 kB / 0.9516 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.286e-05/0.6195, allocations: 29.83 kB / 0.9516 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.608e-05/0.6196, allocations: 53.45 kB / 0.9517 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.6196, allocations: 5.219 kB / 0.9517 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.21e-07/0.6196, allocations: 0 / 0.9517 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.6196, allocations: 0 / 0.9517 GB, free: 7.617 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.0003613/0.62, allocations: 382.3 kB / 0.9521 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.62, allocations: 9.344 kB / 0.9521 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.545e-05/0.6201, allocations: 9.25 kB / 0.9521 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.388e-05/0.6202, allocations: 166.9 kB / 0.9522 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.6202, allocations: 3 kB / 0.9522 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/0.6202, allocations: 5.469 kB / 0.9523 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.318e-05/0.6203, allocations: 46.94 kB / 0.9523 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.6203, allocations: 1.594 kB / 0.9523 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.6203, allocations: 3.938 kB / 0.9523 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.6203, allocations: 0 / 0.9523 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.808e-05/0.6204, allocations: 13.53 kB / 0.9523 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003056/0.6207, allocations: 291.8 kB / 0.9526 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.101e-05/0.6208, allocations: 30.08 kB / 0.9526 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.852e-05/0.6208, allocations: 11.64 kB / 0.9526 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.6208, allocations: 1.562 kB / 0.9526 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001141/0.6209, allocations: 74.44 kB / 0.9527 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.6209, allocations: 0 / 0.9527 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001714/0.6211, allocations: 71.25 kB / 0.9528 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.559e-05/0.6211, allocations: 52.72 kB / 0.9528 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.356e-05/0.6212, allocations: 111.2 kB / 0.9529 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.6212, allocations: 32.48 kB / 0.953 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.214e-05/0.6212, allocations: 83.17 kB / 0.953 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.052e-05/0.6213, allocations: 9.594 kB / 0.9531 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.02e-05/0.6213, allocations: 28.86 kB / 0.9531 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.138e-05/0.6214, allocations: 315.9 kB / 0.9534 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.942e-05/0.6215, allocations: 36.33 kB / 0.9534 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.451e-05/0.6215, allocations: 49.66 kB / 0.9535 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.035e-05/0.6216, allocations: 85.42 kB / 0.9535 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.6216, allocations: 3.938 kB / 0.9535 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002231/0.6219, allocations: 149.5 kB / 0.9537 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.6219, allocations: 37.22 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.6219, allocations: 0 / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.6219, allocations: 2.375 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.556e-05/0.622, allocations: 5.25 kB / 0.9537 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.371e-06/0.622, allocations: 5.344 kB / 0.9537 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002046/0.6222, allocations: 32.16 kB / 0.9538 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.6222, allocations: 9.328 kB / 0.9538 GB, free: 5.516 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.288e-05/0.6223, allocations: 115.3 kB / 0.9539 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.216e-05/0.6223, allocations: 13.25 kB / 0.9539 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.987e-05/0.6223, allocations: 5.281 kB / 0.9539 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.6224, allocations: 4 kB / 0.9539 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.6224, allocations: 5.344 kB / 0.9539 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.6224, allocations: 0 / 0.9539 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.115e-05/0.6224, allocations: 164.6 kB / 0.9541 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.6224, allocations: 0 / 0.9541 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.577e-05/0.6225, allocations: 2.844 kB / 0.9541 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.6225, allocations: 0 / 0.9541 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.6225, allocations: 13.42 kB / 0.9541 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.6225, allocations: 0 / 0.9541 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.6225, allocations: 0 / 0.9541 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.28e-05/0.6226, allocations: 90.34 kB / 0.9542 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.645e-05/0.6226, allocations: 82.8 kB / 0.9543 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.6226, allocations: 0 / 0.9543 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.445e-05/0.6227, allocations: 1.469 kB / 0.9543 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.313e-05/0.6227, allocations: 5.266 kB / 0.9543 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.6227, allocations: 1.656 kB / 0.9543 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.601e-05/0.6227, allocations: 85.83 kB / 0.9543 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6227, allocations: 0 / 0.9543 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002115/0.6229, allocations: 22.27 kB / 0.9544 GB, free: 4.879 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.0001102/0.6231, allocations: 111.1 kB / 0.9545 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001969/0.6233, allocations: 127 kB / 0.9546 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.6233, allocations: 0 / 0.9546 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.836e-05/0.6233, allocations: 17.61 kB / 0.9546 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001922/0.6235, allocations: 13.83 kB / 0.9546 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002462/0.6238, allocations: 170.8 kB / 0.9548 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.021e-05/0.6239, allocations: 0.6796 MB / 0.9554 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.618e-05/0.6239, allocations: 9.812 kB / 0.9555 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.6239, allocations: 0 / 0.9555 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of Templates: time 0.002285/0.6262, allocations: 0.9272 MB / 0.9564 GB, free: 3.316 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