Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton") translateModel(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001134/0.001134, allocations: 172.7 kB / 15.95 MB, free: 208 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.491/1.491, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.842/2.842, allocations: 462.6 MB / 0.736 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004294/0.0004295, allocations: 9.406 kB / 0.9021 GB, free: 36.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.38/0.3805, allocations: 159.6 MB / 1.058 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001101/0.3816, allocations: 0.5222 MB / 1.059 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001388/0.3818, allocations: 39.84 kB / 1.059 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.978e-05/0.3818, allocations: 4 kB / 1.059 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.489e-05/0.3819, allocations: 3.938 kB / 1.059 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.631e-05/0.382, allocations: 3.938 kB / 1.059 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 5.622e-05/0.382, allocations: 15.98 kB / 1.059 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001049/0.3821, allocations: 59.75 kB / 1.059 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.3823, allocations: 36.16 kB / 1.059 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.401e-05/0.3824, allocations: 15.86 kB / 1.059 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.732e-05/0.3824, allocations: 19.86 kB / 1.059 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.3824, allocations: 7.938 kB / 1.059 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.592e-06/0.3825, allocations: 0 / 1.059 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.209e-05/0.3825, allocations: 4 kB / 1.059 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.892e-05/0.3825, allocations: 37.64 kB / 1.059 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.632e-05/0.3826, allocations: 47.89 kB / 1.059 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3826, allocations: 7.938 kB / 1.059 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3826, allocations: 0 / 1.059 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.3826, allocations: 0 / 1.059 GB, free: 4.43 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0003935/0.383, allocations: 363.4 kB / 1.059 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.3831, allocations: 8.031 kB / 1.059 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.099e-05/0.3831, allocations: 15.89 kB / 1.059 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001983/0.3833, allocations: 186.9 kB / 1.059 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.3833, allocations: 12 kB / 1.059 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.486e-05/0.3834, allocations: 11.95 kB / 1.059 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/0.3835, allocations: 91.3 kB / 1.059 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3835, allocations: 4 kB / 1.059 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.3836, allocations: 7.938 kB / 1.059 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.3836, allocations: 0 / 1.059 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.532e-05/0.3837, allocations: 35.97 kB / 1.06 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005685/0.3842, allocations: 436.5 kB / 1.06 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.667e-05/0.3843, allocations: 41.28 kB / 1.06 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.818e-05/0.3844, allocations: 21.84 kB / 1.06 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.466e-06/0.3844, allocations: 0 / 1.06 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.3844, allocations: 42.45 kB / 1.06 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.3844, allocations: 0 / 1.06 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001742/0.3846, allocations: 53.59 kB / 1.06 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.3846, allocations: 81.05 kB / 1.06 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.3848, allocations: 163.7 kB / 1.06 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.3848, allocations: 25.7 kB / 1.06 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.259e-05/0.3849, allocations: 116.2 kB / 1.06 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 8.215e-06/0.3849, allocations: 3.906 kB / 1.06 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-06/0.3849, allocations: 0 / 1.06 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.385, allocations: 322.8 kB / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.57e-05/0.385, allocations: 4 kB / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.792e-05/0.3851, allocations: 17.72 kB / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.321e-05/0.3851, allocations: 8 kB / 1.061 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3851, allocations: 4 kB / 1.061 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.696e-05/0.3852, allocations: 61.47 kB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.3852, allocations: 10.03 kB / 1.061 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.3852, allocations: 3.953 kB / 1.061 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.3852, allocations: 0 / 1.061 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.39e-05/0.3853, allocations: 4 kB / 1.061 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3853, allocations: 4 kB / 1.061 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.012e-05/0.3854, allocations: 7.844 kB / 1.061 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.3854, allocations: 8 kB / 1.061 GB, free: 2.051 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 7.955e-05/0.3855, allocations: 113.9 kB / 1.061 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.194e-05/0.3855, allocations: 7.906 kB / 1.061 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.428e-05/0.3855, allocations: 11.88 kB / 1.061 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3855, allocations: 3.953 kB / 1.061 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3856, allocations: 4 kB / 1.061 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.3856, allocations: 0 / 1.061 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003696/0.3859, allocations: 474.8 kB / 1.061 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3859, allocations: 0 / 1.061 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.576e-05/0.386, allocations: 15.88 kB / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.386, allocations: 0 / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.386, allocations: 0 / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.386, allocations: 0 / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.386, allocations: 0 / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.937e-05/0.3861, allocations: 73.94 kB / 1.062 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.752e-05/0.3861, allocations: 93 kB / 1.062 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.3862, allocations: 7.953 kB / 1.062 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.813e-05/0.3862, allocations: 0 / 1.062 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.293e-05/0.3862, allocations: 0 / 1.062 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-06/0.3862, allocations: 0 / 1.062 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.777e-05/0.3863, allocations: 122.1 kB / 1.062 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3863, allocations: 0 / 1.062 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001872/0.3865, allocations: 8 kB / 1.062 GB, free: 1.023 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * 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 0.0001356/0.3866, allocations: 107.3 kB / 1.062 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 8.468e-05/0.3867, allocations: 16 kB / 1.062 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3867, allocations: 0 / 1.062 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.283e-05/0.3868, allocations: 11.94 kB / 1.062 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001573/0.3869, allocations: 11.88 kB / 1.062 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003283/0.3873, allocations: 182.7 kB / 1.062 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.3875, allocations: 0.6965 MB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.325e-05/0.3875, allocations: 12.41 kB / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.215e-05/0.3876, allocations: 15.44 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3876, allocations: 0 / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of Templates: time 0.002387/0.39, allocations: 418.5 kB / 1.063 GB, free: 15.5 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & ./Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches