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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Conversions_Validation_BooleanToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger,fileNamePrefix="Buildings_9_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.005199/0.005199, allocations: 103.4 kB / 15.74 MB, free: 6.008 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.001142/0.001142, allocations: 198.4 kB / 16.68 MB, free: 5.93 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.337/1.337, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.28/2.28, allocations: 390.3 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 67.89 kB / 0.9504 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8418/0.8433, allocations: 140.4 MB / 1.087 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger): time 0.001562/0.8449, allocations: 0.6016 MB / 1.088 GB, free: 4.883 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001111/0.846, allocations: 1.114 MB / 1.089 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.121e-05/0.8461, allocations: 0 / 1.089 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.657e-05/0.8461, allocations: 5.281 kB / 1.089 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.493e-05/0.8462, allocations: 8.766 kB / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004331/0.8466, allocations: 120.8 kB / 1.089 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000155/0.8468, allocations: 95.31 kB / 1.089 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 7.857e-05/0.8468, allocations: 8.312 kB / 1.089 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.401e-05/0.8469, allocations: 42.33 kB / 1.089 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.9e-05/0.847, allocations: 28.28 kB / 1.089 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.8471, allocations: 7.344 kB / 1.089 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.892e-05/0.8471, allocations: 30.34 kB / 1.089 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.656e-05/0.8471, allocations: 6.297 kB / 1.089 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.83e-05/0.8472, allocations: 39.48 kB / 1.09 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.8474, allocations: 83.91 kB / 1.09 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.8474, allocations: 0 / 1.09 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.282e-06/0.8474, allocations: 0 / 1.09 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.8474, allocations: 1.344 kB / 1.09 GB, free: 3.859 MB / 0.8575 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.0003852/0.8478, allocations: 379.2 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.8478, allocations: 9 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.587e-05/0.8479, allocations: 33.11 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.957e-05/0.8479, allocations: 5.375 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.7e-05/0.848, allocations: 171.7 kB / 1.09 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.848, allocations: 7.094 kB / 1.09 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.201e-05/0.848, allocations: 4.75 kB / 1.09 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.984e-05/0.8481, allocations: 40.39 kB / 1.09 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.8481, allocations: 3.938 kB / 1.09 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.8482, allocations: 5.797 kB / 1.09 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.506e-06/0.8482, allocations: 0 / 1.09 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.568e-05/0.8482, allocations: 6.344 kB / 1.09 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003309/0.8485, allocations: 294.4 kB / 1.09 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 5.403e-05/0.8486, allocations: 27.16 kB / 1.091 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.409e-05/0.8486, allocations: 17.59 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.138e-06/0.8487, allocations: 0.6875 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001377/0.8488, allocations: 58.75 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.242e-06/0.8488, allocations: 3.938 kB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.000188/0.849, allocations: 69.75 kB / 1.091 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.721e-05/0.849, allocations: 56.28 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.38e-05/0.8491, allocations: 114.4 kB / 1.091 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.8491, allocations: 28.38 kB / 1.091 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.425e-05/0.8492, allocations: 87.89 kB / 1.091 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.127e-05/0.8492, allocations: 9.547 kB / 1.091 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.222e-05/0.8493, allocations: 31.09 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.298e-05/0.8493, allocations: 318.2 kB / 1.091 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.027e-05/0.8494, allocations: 32.72 kB / 1.091 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.044e-05/0.8495, allocations: 49.45 kB / 1.091 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001019/0.8496, allocations: 93.92 kB / 1.091 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.8496, allocations: 1.031 kB / 1.091 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002467/0.8498, allocations: 145.2 kB / 1.092 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.8499, allocations: 43.72 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.8499, allocations: 0 / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.8499, allocations: 1.219 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5e-05/0.85, allocations: 7.75 kB / 1.092 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.565e-06/0.85, allocations: 1.953 kB / 1.092 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002116/0.8502, allocations: 31.95 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.8502, allocations: 6.562 kB / 1.092 GB, free: 1.836 MB / 0.8575 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 5.899e-05/0.8503, allocations: 122.6 kB / 1.092 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.133e-05/0.8503, allocations: 2.844 kB / 1.092 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.117e-05/0.8503, allocations: 5.297 kB / 1.092 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.8503, allocations: 1.219 kB / 1.092 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.8503, allocations: 0.7969 kB / 1.092 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.8504, allocations: 1.188 kB / 1.092 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.469e-05/0.8504, allocations: 166.9 kB / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.8504, allocations: 1.156 kB / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.728e-05/0.8505, allocations: 5.844 kB / 1.092 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.8505, allocations: 1.656 kB / 1.092 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.8505, allocations: 5.172 kB / 1.092 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.8505, allocations: 4.609 kB / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.8505, allocations: 0 / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.526e-05/0.8506, allocations: 88.38 kB / 1.092 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.651e-05/0.8506, allocations: 82.75 kB / 1.092 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.8506, allocations: 5.844 kB / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.573e-05/0.8507, allocations: 4.797 kB / 1.092 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.344e-05/0.8507, allocations: 3.172 kB / 1.092 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.8507, allocations: 5.578 kB / 1.092 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.762e-05/0.8507, allocations: 87.53 kB / 1.092 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8507, allocations: 0 / 1.092 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000221/0.851, allocations: 15.67 kB / 1.092 GB, free: 1.223 MB / 0.8575 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.0003314/0.8513, allocations: 0.6245 MB / 1.093 GB, free: 16.62 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002247/0.8515, allocations: 130.6 kB / 1.093 GB, free: 16.52 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.8515, allocations: 0.8125 kB / 1.093 GB, free: 16.52 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.661e-05/0.8516, allocations: 15.05 kB / 1.093 GB, free: 16.52 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.8518, allocations: 8.219 kB / 1.093 GB, free: 16.52 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.8532, allocations: 1.396 MB / 1.094 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.8534, allocations: 0.6877 MB / 1.095 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.26e-05/0.8535, allocations: 7.359 kB / 1.095 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.64e-05/0.8535, allocations: 9.422 kB / 1.095 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.8535, allocations: 0.7812 kB / 1.095 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01885/0.8724, allocations: 2.006 MB / 1.097 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.744/8.616, allocations: 16.34 kB / 1.097 GB, free: 14.12 MB / 0.8731 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_CDL_Conversions_Validation_BooleanToInteger.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger_res.csv","/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