Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.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.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001554/0.001554, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.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.338/2.338, allocations: 390.2 MB / 0.6653 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003325, allocations: 8 kB / 0.8145 GB, free: 14.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.65/0.6503, allocations: 142.3 MB / 0.9535 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.0006565/0.651, allocations: 347.7 kB / 0.9538 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006688/0.6517, allocations: 0.8139 MB / 0.9546 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.617e-05/0.6518, allocations: 1.344 kB / 0.9546 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.173e-05/0.6518, allocations: 0 / 0.9546 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.958e-05/0.6518, allocations: 0 / 0.9546 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001511/0.652, allocations: 16.12 kB / 0.9547 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.879e-05/0.6521, allocations: 16.95 kB / 0.9547 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.607e-05/0.6522, allocations: 6.094 kB / 0.9547 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.853e-05/0.6522, allocations: 8.328 kB / 0.9547 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.851e-05/0.6523, allocations: 19.64 kB / 0.9547 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.6523, allocations: 1.375 kB / 0.9547 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.035e-05/0.6523, allocations: 1.344 kB / 0.9547 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.298e-06/0.6523, allocations: 0 / 0.9547 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.908e-05/0.6523, allocations: 26.98 kB / 0.9547 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.038e-05/0.6524, allocations: 24.2 kB / 0.9548 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.6524, allocations: 3.938 kB / 0.9548 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6524, allocations: 0 / 0.9548 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.507e-06/0.6524, allocations: 0 / 0.9548 GB, free: 7.055 MB / 0.7169 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.0003237/0.6527, allocations: 338.9 kB / 0.9551 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.6528, allocations: 8.25 kB / 0.9551 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.861e-05/0.6528, allocations: 5.109 kB / 0.9551 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.957e-05/0.6529, allocations: 168.5 kB / 0.9553 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.6529, allocations: 1.344 kB / 0.9553 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.6529, allocations: 5.188 kB / 0.9553 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001682/0.6531, allocations: 66.91 kB / 0.9553 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.6531, allocations: 0 / 0.9553 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.228e-06/0.6531, allocations: 0 / 0.9553 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.6532, allocations: 1.344 kB / 0.9553 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000187/0.6533, allocations: 49.09 kB / 0.9554 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002648/0.6536, allocations: 249.5 kB / 0.9556 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001338/0.6538, allocations: 49.22 kB / 0.9557 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.6538, allocations: 4 kB / 0.9557 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.398e-05/0.6538, allocations: 36.12 kB / 0.9557 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.6538, allocations: 0 / 0.9557 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003654/0.6542, allocations: 113.1 kB / 0.9558 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.286e-05/0.6542, allocations: 51.41 kB / 0.9559 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.723e-05/0.6543, allocations: 103.2 kB / 0.956 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.6543, allocations: 25.7 kB / 0.956 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.421e-05/0.6543, allocations: 81.92 kB / 0.9561 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.662e-05/0.6543, allocations: 5.125 kB / 0.9561 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-06/0.6543, allocations: 0 / 0.9561 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.877e-05/0.6544, allocations: 319.9 kB / 0.9564 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.154e-05/0.6545, allocations: 26.55 kB / 0.9564 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.034e-05/0.6546, allocations: 22.61 kB / 0.9564 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.866e-05/0.6547, allocations: 22.78 kB / 0.9564 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.6547, allocations: 4 kB / 0.9564 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002007/0.6549, allocations: 82.84 kB / 0.9565 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.6549, allocations: 5.562 kB / 0.9565 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.6549, allocations: 0 / 0.9565 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.6549, allocations: 1.625 kB / 0.9565 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.985e-05/0.655, allocations: 16.14 kB / 0.9565 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.655, allocations: 11.88 kB / 0.9565 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.462e-05/0.6551, allocations: 6.875 kB / 0.9566 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-06/0.6551, allocations: 0 / 0.9566 GB, free: 5.258 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.142e-05/0.6552, allocations: 112 kB / 0.9567 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.244e-05/0.6552, allocations: 1.25 kB / 0.9567 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.722e-05/0.6552, allocations: 12.38 kB / 0.9567 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.6552, allocations: 3.938 kB / 0.9567 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.6552, allocations: 1.156 kB / 0.9567 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.6552, allocations: 3.953 kB / 0.9567 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.6554, allocations: 154.5 kB / 0.9568 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.6554, allocations: 3.984 kB / 0.9568 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.95e-05/0.6554, allocations: 8.781 kB / 0.9568 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.6554, allocations: 4.969 kB / 0.9568 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-06/0.6555, allocations: 3.984 kB / 0.9569 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.6555, allocations: 5.031 kB / 0.9569 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.6555, allocations: 0 / 0.9569 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002218/0.6557, allocations: 174.5 kB / 0.957 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.534e-05/0.6557, allocations: 86.14 kB / 0.9571 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.6557, allocations: 0 / 0.9571 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.544e-05/0.6558, allocations: 11.08 kB / 0.9571 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.209e-05/0.6559, allocations: 6.781 kB / 0.9571 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.6559, allocations: 4 kB / 0.9571 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.984e-05/0.6559, allocations: 82.17 kB / 0.9572 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6559, allocations: 5.344 kB / 0.9572 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002363/0.6562, allocations: 2.812 kB / 0.9572 GB, free: 4.562 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.33e-05/0.6562, allocations: 104 kB / 0.9573 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002195/0.6565, allocations: 52.89 kB / 0.9574 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.6565, allocations: 0 / 0.9574 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.99e-05/0.6566, allocations: 29.64 kB / 0.9574 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.6568, allocations: 5.953 kB / 0.9574 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002348/0.657, allocations: 109.2 kB / 0.9575 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.541e-05/0.6571, allocations: 0.6784 MB / 0.9582 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.195e-05/0.6572, allocations: 10.56 kB / 0.9582 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.539e-05/0.6572, allocations: 8.75 kB / 0.9582 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of SimCode: time 2.7e-07/0.6572, allocations: 0 / 0.9582 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of Templates: time 0.002534/0.6597, allocations: 499.7 kB / 0.9587 GB, free: 3.344 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches