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.002051/0.002051, allocations: 112.6 kB / 16.37 MB, free: 6 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.001838/0.001839, allocations: 196 kB / 17.31 MB, free: 5.613 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.456/1.456, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.373/2.373, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 66.92 kB / 0.814 GB, free: 32.72 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3078, allocations: 140.4 MB / 0.9511 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger): time 0.002005/0.3099, allocations: 0.6121 MB / 0.9517 GB, free: 7.465 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001465/0.3114, allocations: 1.107 MB / 0.9528 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.096e-05/0.3114, allocations: 0 / 0.9528 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.764e-05/0.3114, allocations: 7.938 kB / 0.9528 GB, free: 6.336 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.866e-05/0.3115, allocations: 7.922 kB / 0.9528 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000495/0.312, allocations: 123.5 kB / 0.9529 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.3122, allocations: 103.8 kB / 0.953 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.754e-05/0.3123, allocations: 4 kB / 0.953 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.957e-05/0.3124, allocations: 35.97 kB / 0.9531 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.698e-05/0.3125, allocations: 35.83 kB / 0.9531 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.409e-05/0.3125, allocations: 8 kB / 0.9531 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.125e-05/0.3126, allocations: 23.98 kB / 0.9531 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.81e-05/0.3126, allocations: 3.938 kB / 0.9532 GB, free: 6 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.425e-05/0.3127, allocations: 39.89 kB / 0.9532 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.3129, allocations: 83.72 kB / 0.9533 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3129, allocations: 0 / 0.9533 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3129, allocations: 4 kB / 0.9533 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.3129, allocations: 0 / 0.9533 GB, free: 5.875 MB / 0.7325 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.0004836/0.3134, allocations: 377.1 kB / 0.9536 GB, free: 5.449 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.3134, allocations: 8.031 kB / 0.9536 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.314e-05/0.3135, allocations: 12.84 kB / 0.9537 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/0.3138, allocations: 164.4 kB / 0.9538 GB, free: 5.23 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.3138, allocations: 4.375 kB / 0.9538 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.938e-05/0.3138, allocations: 4.375 kB / 0.9538 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.943e-05/0.3139, allocations: 42.25 kB / 0.9539 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.3139, allocations: 192 / 0.9539 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.314, allocations: 3.938 kB / 0.9539 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.314, allocations: 0 / 0.9539 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.2e-05/0.314, allocations: 19.92 kB / 0.9539 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004222/0.3144, allocations: 292.8 kB / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 6.2e-05/0.3145, allocations: 30.5 kB / 0.9542 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.794e-05/0.3145, allocations: 16.92 kB / 0.9542 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.099e-05/0.3146, allocations: 0 / 0.9542 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001499/0.3147, allocations: 63.33 kB / 0.9543 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.3147, allocations: 0 / 0.9543 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4): time 0.0002085/0.3149, allocations: 65.69 kB / 0.9543 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.315, allocations: 55.39 kB / 0.9544 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.096e-05/0.3151, allocations: 105.9 kB / 0.9545 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.3151, allocations: 33.69 kB / 0.9545 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.677e-05/0.3152, allocations: 92.05 kB / 0.9546 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.27e-05/0.3152, allocations: 7.906 kB / 0.9546 GB, free: 4.293 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.327e-05/0.3153, allocations: 29.7 kB / 0.9546 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.3154, allocations: 314.8 kB / 0.9549 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.991e-05/0.3155, allocations: 35.91 kB / 0.955 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.14e-05/0.3156, allocations: 54.5 kB / 0.955 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001159/0.3157, allocations: 88.25 kB / 0.9551 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.3157, allocations: 7.938 kB / 0.9551 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002456/0.316, allocations: 143.3 kB / 0.9553 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.306e-05/0.316, allocations: 33.7 kB / 0.9553 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.316, allocations: 3.984 kB / 0.9553 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.3161, allocations: 3.938 kB / 0.9553 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.174e-05/0.3161, allocations: 11.94 kB / 0.9553 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.3161, allocations: 4.062 kB / 0.9553 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.3163, allocations: 23.97 kB / 0.9553 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.3164, allocations: 4 kB / 0.9553 GB, free: 3.492 MB / 0.7325 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 9.569e-05/0.3165, allocations: 121.8 kB / 0.9554 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.3165, allocations: 7.891 kB / 0.9555 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.854e-05/0.3165, allocations: 7.906 kB / 0.9555 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.3165, allocations: 240 / 0.9555 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3166, allocations: 4 kB / 0.9555 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3166, allocations: 4.047 kB / 0.9555 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/0.3167, allocations: 173.6 kB / 0.9556 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3167, allocations: 0 / 0.9556 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.5e-05/0.3167, allocations: 0 / 0.9556 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.3167, allocations: 0 / 0.9556 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.3167, allocations: 4 kB / 0.9556 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3168, allocations: 0 / 0.9556 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3168, allocations: 0 / 0.9556 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001253/0.3169, allocations: 92.98 kB / 0.9557 GB, free: 3 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.882e-05/0.3169, allocations: 81.02 kB / 0.9558 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.317, allocations: 4 kB / 0.9558 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.428e-05/0.317, allocations: 0 / 0.9558 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.05e-05/0.317, allocations: 4 kB / 0.9558 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.317, allocations: 4 kB / 0.9558 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.495e-05/0.3171, allocations: 83.66 kB / 0.9559 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of sort global known variables: time 4.61e-07/0.3171, allocations: 0 / 0.9559 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002295/0.3173, allocations: 24 kB / 0.9559 GB, free: 2.785 MB / 0.7325 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.0001624/0.3175, allocations: 111.5 kB / 0.956 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002388/0.3177, allocations: 127.2 kB / 0.9561 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3177, allocations: 4 kB / 0.9562 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.378e-05/0.3178, allocations: 12 kB / 0.9562 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002039/0.318, allocations: 13.81 kB / 0.9562 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003064/0.3183, allocations: 130 kB / 0.9563 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.3187, allocations: 0.6885 MB / 0.957 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.242e-05/0.3187, allocations: 3.938 kB / 0.957 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.293e-05/0.3187, allocations: 11.44 kB / 0.957 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.3187, allocations: 0 / 0.957 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of Templates: time 0.004356/0.3231, allocations: 1.077 MB / 0.958 GB, free: 0.5547 MB / 0.7325 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 -s cvode -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