Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.From_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton") translateModel(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001609/0.001609, allocations: 197.1 kB / 16.14 MB, free: 6.711 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.506/1.506, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.946/2.946, allocations: 472.7 MB / 0.7447 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 69.89 kB / 0.9114 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.3792, allocations: 159.9 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.00235/0.3816, allocations: 0.867 MB / 1.068 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001371/0.3818, allocations: 35.84 kB / 1.068 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.535e-05/0.3819, allocations: 4 kB / 1.068 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.793e-05/0.3819, allocations: 7.922 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.221e-05/0.382, allocations: 3.938 kB / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 5.448e-05/0.3821, allocations: 12 kB / 1.068 GB, free: 9.891 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.3822, allocations: 63.78 kB / 1.069 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.3823, allocations: 51.89 kB / 1.069 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.066e-05/0.3824, allocations: 23.86 kB / 1.069 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.056e-05/0.3824, allocations: 27.8 kB / 1.069 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.251e-05/0.3825, allocations: 4 kB / 1.069 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.146e-05/0.3825, allocations: 4 kB / 1.069 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.112e-05/0.3825, allocations: 7.984 kB / 1.069 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.856e-05/0.3826, allocations: 31.75 kB / 1.069 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001038/0.3827, allocations: 68.03 kB / 1.069 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3827, allocations: 0 / 1.069 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3827, allocations: 0 / 1.069 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.3827, allocations: 4 kB / 1.069 GB, free: 9.609 MB / 0.8262 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.0004631/0.3832, allocations: 379.2 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3832, allocations: 11.97 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.212e-05/0.3833, allocations: 8.844 kB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.3835, allocations: 200.1 kB / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.3835, allocations: 4.375 kB / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.5e-05/0.3835, allocations: 8.375 kB / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.3837, allocations: 91.89 kB / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.3837, allocations: 4.188 kB / 1.069 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.3837, allocations: 7.938 kB / 1.069 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.3837, allocations: 0 / 1.069 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.363e-05/0.3838, allocations: 35.98 kB / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000575/0.3844, allocations: 444.5 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.639e-05/0.3844, allocations: 41.16 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.641e-05/0.3845, allocations: 17.84 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.3845, allocations: 0 / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.3845, allocations: 42.59 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.3845, allocations: 0 / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001846/0.3847, allocations: 69.45 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.3848, allocations: 77.11 kB / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.3849, allocations: 160.5 kB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.385, allocations: 29.7 kB / 1.07 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.728e-05/0.385, allocations: 104 kB / 1.07 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.246e-06/0.385, allocations: 4.156 kB / 1.07 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/0.3851, allocations: 21.72 kB / 1.07 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.3852, allocations: 322.8 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.942e-05/0.3852, allocations: 4 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.315e-05/0.3852, allocations: 17.72 kB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.912e-05/0.3853, allocations: 25.66 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3853, allocations: 4 kB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.396e-05/0.3854, allocations: 61.53 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.3854, allocations: 8 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-06/0.3854, allocations: 3.938 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.3854, allocations: 0 / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.944e-05/0.3855, allocations: 15.88 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.3855, allocations: 3.984 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.157e-05/0.3855, allocations: 7.844 kB / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.922e-06/0.3856, allocations: 4 kB / 1.071 GB, free: 7.152 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.225e-05/0.3856, allocations: 119.4 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.206e-05/0.3857, allocations: 7.906 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.515e-05/0.3857, allocations: 11.81 kB / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.3857, allocations: 0 / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3857, allocations: 4 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3857, allocations: 0 / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003627/0.3861, allocations: 470.8 kB / 1.071 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3861, allocations: 4.062 kB / 1.071 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.061e-05/0.3862, allocations: 4 kB / 1.071 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3862, allocations: 0 / 1.071 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.83e-06/0.3862, allocations: 0 / 1.071 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3862, allocations: 0 / 1.071 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3862, allocations: 0 / 1.071 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.092e-05/0.3863, allocations: 93.77 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.517e-05/0.3863, allocations: 81.02 kB / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.572e-05/0.3864, allocations: 4 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.947e-05/0.3864, allocations: 0 / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.086e-05/0.3864, allocations: 0 / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.3864, allocations: 3.984 kB / 1.072 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.462e-05/0.3865, allocations: 121.7 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3865, allocations: 0 / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001872/0.3867, allocations: 11.91 kB / 1.072 GB, free: 6.121 MB / 0.8262 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 (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.0001252/0.3868, allocations: 105.2 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 8.332e-05/0.3869, allocations: 19.94 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3869, allocations: 0 / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.022e-05/0.3869, allocations: 4 kB / 1.072 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001632/0.3871, allocations: 15.88 kB / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002954/0.3874, allocations: 184.8 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/0.3876, allocations: 0.6926 MB / 1.073 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.579e-05/0.3877, allocations: 12.42 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.169e-05/0.3877, allocations: 11.44 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of SimCode: time 1.533e-06/0.3877, allocations: 0 / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of Templates: time 0.00251/0.3902, allocations: 436.5 kB / 1.073 GB, free: 4.59 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & ./Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches