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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.01039/0.01039, allocations: 100.1 kB / 15.73 MB, free: 6.039 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.002165/0.002165, allocations: 187.4 kB / 16.67 MB, free: 5.965 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.605/1.605, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.279/3.279, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 71.89 kB / 1.054 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3846/0.3858, allocations: 157.4 MB / 1.208 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger): time 0.002032/0.3879, allocations: 0.596 MB / 1.208 GB, free: 9.082 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001739/0.3897, allocations: 1.123 MB / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.072e-05/0.3898, allocations: 0 / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.382e-05/0.3898, allocations: 0 / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.058e-05/0.3899, allocations: 7.922 kB / 1.209 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005792/0.3905, allocations: 117.5 kB / 1.21 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001848/0.3907, allocations: 91.89 kB / 1.21 GB, free: 7.734 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.3908, allocations: 8 kB / 1.21 GB, free: 7.727 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.551e-05/0.3909, allocations: 43.83 kB / 1.21 GB, free: 7.684 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.391, allocations: 31.89 kB / 1.21 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.53e-05/0.391, allocations: 8 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.429e-05/0.3911, allocations: 23.98 kB / 1.21 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.298e-05/0.3911, allocations: 8 kB / 1.21 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.849e-05/0.3912, allocations: 31.91 kB / 1.21 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001911/0.3914, allocations: 87.78 kB / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.3914, allocations: 0 / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.134e-06/0.3914, allocations: 0 / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.458e-06/0.3914, allocations: 0 / 1.21 GB, free: 7.496 MB / 0.9669 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.0005993/0.392, allocations: 381 kB / 1.21 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.3921, allocations: 8.031 kB / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.33e-05/0.3922, allocations: 8.922 kB / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.3923, allocations: 168.3 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.586e-05/0.3924, allocations: 4.375 kB / 1.21 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.768e-05/0.3924, allocations: 4.375 kB / 1.21 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00013/0.3925, allocations: 46.19 kB / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.3926, allocations: 192 / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.3926, allocations: 3.938 kB / 1.21 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.3926, allocations: 0 / 1.21 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.752e-05/0.3926, allocations: 12 kB / 1.21 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000459/0.3931, allocations: 292.8 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 6.543e-05/0.3932, allocations: 38.45 kB / 1.211 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.926e-05/0.3932, allocations: 12.91 kB / 1.211 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.3932, allocations: 3.938 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000166/0.3934, allocations: 67.39 kB / 1.211 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 1.513e-06/0.3934, allocations: 0 / 1.211 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4): time 0.0002218/0.3936, allocations: 69.59 kB / 1.211 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.3937, allocations: 59.34 kB / 1.211 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.798e-05/0.3938, allocations: 109.8 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.3938, allocations: 33.7 kB / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.586e-05/0.3939, allocations: 80.14 kB / 1.211 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.131e-05/0.3939, allocations: 19.88 kB / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.557e-05/0.394, allocations: 29.7 kB / 1.211 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.3942, allocations: 310.8 kB / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.119e-05/0.3942, allocations: 31.98 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.762e-05/0.3943, allocations: 58.55 kB / 1.212 GB, free: 5.445 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.3945, allocations: 76.22 kB / 1.212 GB, free: 5.355 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.3945, allocations: 3.938 kB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002737/0.3948, allocations: 159.2 kB / 1.212 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.3948, allocations: 35.11 kB / 1.212 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3948, allocations: 4.062 kB / 1.212 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.3948, allocations: 0 / 1.212 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.673e-05/0.3949, allocations: 4 kB / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.3949, allocations: 3.938 kB / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/0.3951, allocations: 23.97 kB / 1.212 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.3952, allocations: 11.98 kB / 1.212 GB, free: 5.098 MB / 0.9669 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.444e-05/0.3953, allocations: 117.8 kB / 1.212 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.327e-06/0.3953, allocations: 4 kB / 1.212 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.46e-05/0.3954, allocations: 7.906 kB / 1.212 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.3954, allocations: 0 / 1.212 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3954, allocations: 4 kB / 1.212 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/0.3954, allocations: 3.984 kB / 1.212 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000126/0.3955, allocations: 157.6 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.3955, allocations: 7.938 kB / 1.212 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.449e-05/0.3956, allocations: 0 / 1.212 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.3956, allocations: 3.984 kB / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.3956, allocations: 4 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.3956, allocations: 4 kB / 1.212 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3956, allocations: 8.062 kB / 1.212 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001237/0.3957, allocations: 85.47 kB / 1.212 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.213e-05/0.3958, allocations: 77.11 kB / 1.212 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.3958, allocations: 3.938 kB / 1.212 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.657e-05/0.3958, allocations: 7.984 kB / 1.212 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.342e-05/0.3958, allocations: 0 / 1.212 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.3959, allocations: 0 / 1.212 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001164/0.396, allocations: 95.27 kB / 1.212 GB, free: 4.414 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.396, allocations: 0 / 1.212 GB, free: 4.414 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002129/0.3962, allocations: 16 kB / 1.212 GB, free: 4.398 MB / 0.9669 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.0001718/0.3964, allocations: 103.2 kB / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000302/0.3967, allocations: 123.7 kB / 1.213 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3967, allocations: 0 / 1.213 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.033e-05/0.3967, allocations: 23.92 kB / 1.213 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002127/0.397, allocations: 14.12 kB / 1.213 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003117/0.3973, allocations: 134.1 kB / 1.213 GB, free: 3.961 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.3976, allocations: 0.6807 MB / 1.214 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.461e-05/0.3976, allocations: 3.984 kB / 1.214 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.717e-05/0.3976, allocations: 11.44 kB / 1.214 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of SimCode: time 3.797e-06/0.3976, allocations: 0 / 1.214 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of Templates: time 0.003894/0.4015, allocations: 1.078 MB / 1.215 GB, free: 2.18 MB / 0.9669 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches