Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_bar.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_bar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_bar") translateModel(Buildings.Controls.OBC.UnitConversions.Validation.From_bar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_bar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 109 kB / 16.41 MB, free: 6.457 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.001493/0.001494, allocations: 193.2 kB / 17.34 MB, free: 5.734 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.493/1.493, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.875/2.875, allocations: 474.5 MB / 0.7477 GB, free: 14.1 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002619/0.00262, allocations: 63.91 kB / 1.073 GB, free: 7.184 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.103/1.105, allocations: 160.3 MB / 1.229 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_bar): time 0.002083/1.107, allocations: 0.8339 MB / 1.23 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0001247/1.107, allocations: 47.78 kB / 1.23 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.119e-05/1.108, allocations: 0 / 1.23 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.759e-05/1.108, allocations: 7.875 kB / 1.23 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 9.031e-05/1.108, allocations: 7.875 kB / 1.23 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 5.106e-05/1.108, allocations: 23.97 kB / 1.23 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001213/1.108, allocations: 63.84 kB / 1.23 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/1.108, allocations: 47.84 kB / 1.23 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 5.999e-05/1.108, allocations: 31.8 kB / 1.23 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.185e-05/1.108, allocations: 27.86 kB / 1.23 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.914e-05/1.108, allocations: 8 kB / 1.23 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.397e-06/1.108, allocations: 4 kB / 1.23 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.618e-05/1.108, allocations: 19.92 kB / 1.23 GB, free: 10.01 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.846e-05/1.108, allocations: 31.75 kB / 1.23 GB, free: 9.98 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001298/1.108, allocations: 80.55 kB / 1.23 GB, free: 9.902 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/1.108, allocations: 0 / 1.23 GB, free: 9.902 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.312e-06/1.108, allocations: 0 / 1.23 GB, free: 9.902 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.689e-06/1.108, allocations: 0 / 1.23 GB, free: 9.902 MB / 0.9512 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.0005051/1.109, allocations: 379.2 kB / 1.231 GB, free: 9.48 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/1.109, allocations: 12.03 kB / 1.231 GB, free: 9.469 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.153e-05/1.109, allocations: 12.84 kB / 1.231 GB, free: 9.457 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002392/1.109, allocations: 192.2 kB / 1.231 GB, free: 9.23 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/1.109, allocations: 8.375 kB / 1.231 GB, free: 9.223 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/1.109, allocations: 8.375 kB / 1.231 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001663/1.11, allocations: 93.92 kB / 1.231 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/1.11, allocations: 192 / 1.231 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/1.11, allocations: 7.938 kB / 1.231 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/1.11, allocations: 11.94 kB / 1.231 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.934e-05/1.11, allocations: 35.92 kB / 1.231 GB, free: 9.059 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005716/1.11, allocations: 440.7 kB / 1.231 GB, free: 8.574 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 6.132e-05/1.11, allocations: 37.19 kB / 1.232 GB, free: 8.52 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.791e-05/1.11, allocations: 25.84 kB / 1.232 GB, free: 8.488 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 7.223e-06/1.11, allocations: 0 / 1.232 GB, free: 8.488 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/1.11, allocations: 30.56 kB / 1.232 GB, free: 8.449 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/1.11, allocations: 0 / 1.232 GB, free: 8.449 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0001946/1.111, allocations: 61.52 kB / 1.232 GB, free: 8.383 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/1.111, allocations: 85.36 kB / 1.232 GB, free: 8.281 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/1.111, allocations: 156.7 kB / 1.232 GB, free: 8.121 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/1.111, allocations: 25.7 kB / 1.232 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.11e-05/1.111, allocations: 108 kB / 1.232 GB, free: 7.98 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.556e-06/1.111, allocations: 3.953 kB / 1.232 GB, free: 7.977 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.174e-05/1.111, allocations: 21.67 kB / 1.232 GB, free: 7.949 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001439/1.111, allocations: 322.8 kB / 1.232 GB, free: 7.625 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.002e-05/1.111, allocations: 4 kB / 1.232 GB, free: 7.621 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.62e-05/1.111, allocations: 25.66 kB / 1.232 GB, free: 7.59 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.073e-05/1.111, allocations: 25.66 kB / 1.232 GB, free: 7.559 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/1.111, allocations: 0 / 1.232 GB, free: 7.559 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001002/1.111, allocations: 65.58 kB / 1.232 GB, free: 7.488 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/1.111, allocations: 4 kB / 1.232 GB, free: 7.484 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/1.111, allocations: 3.938 kB / 1.232 GB, free: 7.48 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/1.111, allocations: 4.062 kB / 1.232 GB, free: 7.477 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.424e-05/1.111, allocations: 8 kB / 1.232 GB, free: 7.469 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/1.112, allocations: 7.969 kB / 1.232 GB, free: 7.461 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.888e-05/1.112, allocations: 3.938 kB / 1.232 GB, free: 7.457 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-06/1.112, allocations: 4 kB / 1.232 GB, free: 7.453 MB / 0.9512 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.474e-05/1.112, allocations: 113.8 kB / 1.233 GB, free: 7.332 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.384e-05/1.112, allocations: 7.953 kB / 1.233 GB, free: 7.324 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.469e-05/1.112, allocations: 11.81 kB / 1.233 GB, free: 7.309 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/1.112, allocations: 4 kB / 1.233 GB, free: 7.305 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/1.112, allocations: 4 kB / 1.233 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/1.112, allocations: 0 / 1.233 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004264/1.112, allocations: 474.7 kB / 1.233 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/1.112, allocations: 0 / 1.233 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.925e-05/1.112, allocations: 4 kB / 1.233 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/1.112, allocations: 0 / 1.233 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/1.112, allocations: 4 kB / 1.233 GB, free: 6.766 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/1.112, allocations: 64 / 1.233 GB, free: 6.766 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.112, allocations: 15.88 kB / 1.233 GB, free: 6.75 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.813e-05/1.112, allocations: 81.88 kB / 1.233 GB, free: 6.648 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.957e-05/1.112, allocations: 85.16 kB / 1.233 GB, free: 6.547 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/1.112, allocations: 3.984 kB / 1.233 GB, free: 6.543 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.912e-05/1.112, allocations: 0 / 1.233 GB, free: 6.543 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.097e-05/1.112, allocations: 4.031 kB / 1.233 GB, free: 6.539 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/1.112, allocations: 7.984 kB / 1.233 GB, free: 6.531 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.475e-05/1.113, allocations: 122.7 kB / 1.233 GB, free: 6.414 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.21e-07/1.113, allocations: 0 / 1.233 GB, free: 6.414 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001819/1.113, allocations: 4 kB / 1.233 GB, free: 6.41 MB / 0.9512 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.000142/1.113, allocations: 107.2 kB / 1.233 GB, free: 6.297 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 9.083e-05/1.113, allocations: 15.94 kB / 1.234 GB, free: 6.281 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/1.113, allocations: 128 / 1.234 GB, free: 6.281 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.133e-05/1.113, allocations: 11.94 kB / 1.234 GB, free: 6.27 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001511/1.113, allocations: 11.94 kB / 1.234 GB, free: 6.258 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003385/1.114, allocations: 170.5 kB / 1.234 GB, free: 6.055 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/1.114, allocations: 0.6963 MB / 1.234 GB, free: 5.332 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.237e-05/1.114, allocations: 12.55 kB / 1.234 GB, free: 5.32 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.392e-05/1.114, allocations: 11.44 kB / 1.234 GB, free: 5.309 MB / 0.9512 GB Notification: Performance of SimCode: time 2.6e-07/1.114, allocations: 0 / 1.234 GB, free: 5.309 MB / 0.9512 GB Notification: Performance of Templates: time 0.002676/1.117, allocations: 461.3 kB / 1.235 GB, free: 4.863 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_bar.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_bar.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_bar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_bar.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_bar.sim & ./Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_bar -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_bar.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_bar_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_From_bar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_bar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches