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: 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.001561/0.001562, allocations: 104.5 kB / 15.99 MB, free: 6.348 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.00173/0.00173, allocations: 191.6 kB / 16.91 MB, free: 6.188 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.384/1.384, allocations: 222.9 MB / 240.6 MB, free: 13.75 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.306/2.306, allocations: 390.2 MB / 0.665 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 67.19 kB / 0.8127 GB, free: 32.57 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2433, allocations: 140.4 MB / 0.9498 GB, free: 9.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger): time 0.001976/0.2453, allocations: 0.6757 MB / 0.9504 GB, free: 8.582 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001349/0.2467, allocations: 1.105 MB / 0.9515 GB, free: 7.461 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.015e-05/0.2468, allocations: 0 / 0.9515 GB, free: 7.461 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.098e-05/0.2468, allocations: 0 / 0.9515 GB, free: 7.461 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.547e-05/0.2469, allocations: 15.92 kB / 0.9515 GB, free: 7.445 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000469/0.2474, allocations: 103.7 kB / 0.9516 GB, free: 7.348 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.2475, allocations: 99.81 kB / 0.9517 GB, free: 7.25 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.229e-05/0.2476, allocations: 8 kB / 0.9517 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.535e-05/0.2477, allocations: 39.91 kB / 0.9518 GB, free: 7.203 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.987e-05/0.2478, allocations: 23.91 kB / 0.9518 GB, free: 7.18 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.336e-05/0.2478, allocations: 8 kB / 0.9518 GB, free: 7.172 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.651e-05/0.2479, allocations: 27.92 kB / 0.9518 GB, free: 7.145 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.903e-05/0.2479, allocations: 11.98 kB / 0.9518 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.069e-05/0.248, allocations: 23.92 kB / 0.9519 GB, free: 7.109 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.2481, allocations: 63.86 kB / 0.9519 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2481, allocations: 0 / 0.9519 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2481, allocations: 0 / 0.9519 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.2481, allocations: 4 kB / 0.9519 GB, free: 7.043 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.0004439/0.2485, allocations: 377.4 kB / 0.9523 GB, free: 6.617 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.2486, allocations: 8.031 kB / 0.9523 GB, free: 6.609 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.982e-05/0.2486, allocations: 12.78 kB / 0.9523 GB, free: 6.598 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.2488, allocations: 168.3 kB / 0.9525 GB, free: 6.395 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.2488, allocations: 384 / 0.9525 GB, free: 6.395 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/0.2488, allocations: 8.375 kB / 0.9525 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.083e-05/0.2489, allocations: 38.25 kB / 0.9525 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/0.2489, allocations: 192 / 0.9525 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.2489, allocations: 11.92 kB / 0.9525 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.249, allocations: 0 / 0.9525 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.784e-05/0.249, allocations: 12 kB / 0.9525 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004004/0.2494, allocations: 292.7 kB / 0.9528 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 5.774e-05/0.2495, allocations: 34.5 kB / 0.9528 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.43e-05/0.2495, allocations: 12.92 kB / 0.9529 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 8.657e-06/0.2495, allocations: 4 kB / 0.9529 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001618/0.2497, allocations: 59.39 kB / 0.9529 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 1.182e-06/0.2497, allocations: 0 / 0.9529 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4): time 0.0002021/0.2499, allocations: 73.62 kB / 0.953 GB, free: 5.773 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.2499, allocations: 55.39 kB / 0.953 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.752e-05/0.25, allocations: 105.8 kB / 0.9531 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.2501, allocations: 33.7 kB / 0.9532 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.299e-05/0.2501, allocations: 88.05 kB / 0.9533 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.18e-05/0.2501, allocations: 7.906 kB / 0.9533 GB, free: 5.457 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.865e-05/0.2502, allocations: 33.7 kB / 0.9533 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.2503, allocations: 310.8 kB / 0.9536 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.701e-05/0.2504, allocations: 35.97 kB / 0.9536 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.211e-05/0.2505, allocations: 46.56 kB / 0.9537 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.2506, allocations: 88.2 kB / 0.9538 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.2506, allocations: 3.938 kB / 0.9538 GB, free: 4.91 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002558/0.2509, allocations: 159.3 kB / 0.9539 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.2509, allocations: 37.69 kB / 0.9539 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.2509, allocations: 0 / 0.9539 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.251, allocations: 0 / 0.9539 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.037e-05/0.251, allocations: 4 kB / 0.9539 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.251, allocations: 400 / 0.9539 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.2512, allocations: 31.97 kB / 0.954 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.2513, allocations: 8 kB / 0.954 GB, free: 4.656 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.767e-05/0.2514, allocations: 125.7 kB / 0.9541 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.128e-05/0.2514, allocations: 7.844 kB / 0.9541 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.422e-05/0.2514, allocations: 7.906 kB / 0.9541 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2514, allocations: 4 kB / 0.9541 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.2514, allocations: 0 / 0.9541 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2514, allocations: 4.234 kB / 0.9541 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001203/0.2516, allocations: 165.6 kB / 0.9543 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2516, allocations: 0 / 0.9543 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.854e-05/0.2516, allocations: 3.984 kB / 0.9543 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2516, allocations: 0 / 0.9543 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.567e-06/0.2516, allocations: 4 kB / 0.9543 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2516, allocations: 0 / 0.9543 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2516, allocations: 0 / 0.9543 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001087/0.2517, allocations: 92.98 kB / 0.9544 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.253e-05/0.2518, allocations: 85.02 kB / 0.9545 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.2518, allocations: 4 kB / 0.9545 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.44e-05/0.2518, allocations: 0 / 0.9545 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.618e-05/0.2519, allocations: 3.984 kB / 0.9545 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.022e-06/0.2519, allocations: 4 kB / 0.9545 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.499e-05/0.2519, allocations: 87.27 kB / 0.9546 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2519, allocations: 0 / 0.9546 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002149/0.2521, allocations: 16 kB / 0.9546 GB, free: 3.949 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.0001339/0.2523, allocations: 115.2 kB / 0.9547 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002008/0.2525, allocations: 123.3 kB / 0.9548 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2525, allocations: 0 / 0.9548 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.701e-05/0.2525, allocations: 16 kB / 0.9548 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001857/0.2527, allocations: 11.92 kB / 0.9548 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002877/0.253, allocations: 159.9 kB / 0.955 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002475/0.2533, allocations: 0.6805 MB / 0.9556 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.142e-05/0.2533, allocations: 15.42 kB / 0.9557 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.2533, allocations: 0 / 0.9557 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of Templates: time 0.002427/0.2558, allocations: 0.939 MB / 0.9566 GB, free: 1.824 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 -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