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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_BooleanToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_BooleanToInteger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004565/0.004565, allocations: 101.5 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.001085/0.001086, allocations: 200.9 kB / 16.68 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.716/2.716, allocations: 469.4 MB / 0.7422 GB, free: 7.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 63.91 kB / 1.064 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2628, allocations: 159.1 MB / 1.22 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger): time 0.001716/0.2646, allocations: 0.6053 MB / 1.22 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001296/0.2659, allocations: 1.106 MB / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.968e-05/0.266, allocations: 0 / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.53e-05/0.266, allocations: 3.938 kB / 1.221 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.811e-05/0.2661, allocations: 15.91 kB / 1.221 GB, free: 13 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004535/0.2665, allocations: 130.3 kB / 1.222 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.2667, allocations: 83.89 kB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.095e-05/0.2668, allocations: 8 kB / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.127e-05/0.2669, allocations: 43.83 kB / 1.222 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.879e-05/0.267, allocations: 35.89 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.031e-05/0.267, allocations: 8 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.361e-05/0.2671, allocations: 23.98 kB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.539e-05/0.2671, allocations: 4 kB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.279e-05/0.2671, allocations: 31.91 kB / 1.222 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.2673, allocations: 83.78 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2673, allocations: 0 / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2673, allocations: 0 / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.69e-06/0.2673, allocations: 0 / 1.222 GB, free: 12.55 MB / 0.9825 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.0004072/0.2677, allocations: 388.9 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.2678, allocations: 12.03 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.882e-05/0.2678, allocations: 38.73 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.856e-05/0.2679, allocations: 4.938 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.571e-05/0.268, allocations: 168.3 kB / 1.222 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.268, allocations: 8.312 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.163e-05/0.268, allocations: 4.375 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.182e-05/0.2681, allocations: 38.25 kB / 1.222 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.2681, allocations: 3.938 kB / 1.222 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.767e-06/0.2681, allocations: 4 kB / 1.222 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.2681, allocations: 0 / 1.222 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.991e-05/0.2682, allocations: 15.98 kB / 1.222 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003535/0.2685, allocations: 284.9 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.847e-05/0.2686, allocations: 30.45 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.213e-05/0.2686, allocations: 12.91 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-06/0.2687, allocations: 4 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00013/0.2688, allocations: 67.38 kB / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.272e-06/0.2688, allocations: 0 / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0001808/0.269, allocations: 73.58 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.269, allocations: 51.41 kB / 1.223 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.68e-05/0.2691, allocations: 105.8 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.2691, allocations: 33.7 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.457e-05/0.2692, allocations: 84.14 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.2692, allocations: 19.86 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.399e-05/0.2693, allocations: 33.7 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.2694, allocations: 314.8 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.088e-05/0.2695, allocations: 35.92 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.799e-05/0.2696, allocations: 50.55 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.2697, allocations: 88.14 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2697, allocations: 4 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002616/0.27, allocations: 155.3 kB / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.773e-05/0.27, allocations: 35.58 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/0.27, allocations: 0 / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.2701, allocations: 4 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.719e-05/0.2701, allocations: 3.938 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.2701, allocations: 3.984 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002025/0.2703, allocations: 28.03 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.2704, allocations: 12 kB / 1.224 GB, free: 10.1 MB / 0.9825 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 8.851e-05/0.2705, allocations: 118.2 kB / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.052e-05/0.2705, allocations: 0 / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.716e-05/0.2705, allocations: 11.91 kB / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.2705, allocations: 3.984 kB / 1.224 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2705, allocations: 0 / 1.224 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.2705, allocations: 0 / 1.224 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001121/0.2706, allocations: 161.6 kB / 1.224 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2707, allocations: 4 kB / 1.224 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.937e-05/0.2707, allocations: 3.984 kB / 1.224 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.2707, allocations: 4 kB / 1.224 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.2707, allocations: 4 kB / 1.224 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.2707, allocations: 0 / 1.224 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2707, allocations: 0 / 1.224 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001244/0.2708, allocations: 85.02 kB / 1.224 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.95e-05/0.2709, allocations: 81.11 kB / 1.224 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.2709, allocations: 3.984 kB / 1.224 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.574e-05/0.2709, allocations: 4 kB / 1.224 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.456e-05/0.271, allocations: 3.938 kB / 1.224 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.271, allocations: 4 kB / 1.224 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.109e-05/0.271, allocations: 87.27 kB / 1.225 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.271, allocations: 0 / 1.225 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002197/0.2713, allocations: 16 kB / 1.225 GB, free: 9.414 MB / 0.9825 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.0003871/0.2716, allocations: 0.628 MB / 1.225 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002126/0.2719, allocations: 127.3 kB / 1.225 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2719, allocations: 3.938 kB / 1.225 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.646e-05/0.2719, allocations: 12.42 kB / 1.225 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.2721, allocations: 15.92 kB / 1.225 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.2735, allocations: 1.409 MB / 1.227 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.2738, allocations: 0.6807 MB / 1.227 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.897e-05/0.2739, allocations: 4.078 kB / 1.227 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.946e-05/0.2739, allocations: 15.44 kB / 1.227 GB, free: 6.355 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.2739, allocations: 0 / 1.227 GB, free: 6.355 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0175/0.2914, allocations: 2.03 MB / 1.229 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.273/7.564, allocations: 0.5 kB / 1.229 GB, free: 4.477 MB / 0.9825 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_BooleanToInteger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Conversions_Validation_BooleanToInteger.csv","/var/lib/jenkins1/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