Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.UnitConversions.Validation.To_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_9_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_9_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.00104/0.00104, allocations: 91.61 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.001262/0.001263, 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.454/1.454, allocations: 223.3 MB / 240 MB, free: 5.43 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.516/2.516, allocations: 390.9 MB / 0.666 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003822/0.0003824, allocations: 12 kB / 0.8154 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8136/0.814, allocations: 142.4 MB / 0.9544 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001073/0.8152, allocations: 0.5121 MB / 0.9549 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001613/0.8153, allocations: 40.84 kB / 0.955 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.611e-05/0.8154, allocations: 1.344 kB / 0.955 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.475e-05/0.8154, allocations: 7.938 kB / 0.955 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.053e-05/0.8155, allocations: 5.312 kB / 0.955 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 5.394e-05/0.8156, allocations: 19.08 kB / 0.955 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.8157, allocations: 58.28 kB / 0.9551 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.8159, allocations: 26.95 kB / 0.9551 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.285e-05/0.816, allocations: 24.12 kB / 0.9551 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.828e-05/0.816, allocations: 20.02 kB / 0.9551 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.817e-05/0.8161, allocations: 2.938 kB / 0.9551 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.184e-05/0.8161, allocations: 1.406 kB / 0.9551 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/0.8161, allocations: 5.375 kB / 0.9551 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.09e-05/0.8162, allocations: 37.92 kB / 0.9552 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.479e-05/0.8163, allocations: 49.45 kB / 0.9552 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.8163, allocations: 0 / 0.9552 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.985e-06/0.8163, allocations: 1.812 kB / 0.9552 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.067e-05/0.8163, allocations: 0 / 0.9552 GB, free: 7.074 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0004213/0.8167, allocations: 367.7 kB / 0.9556 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.8168, allocations: 9.031 kB / 0.9556 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.131e-05/0.8168, allocations: 16.55 kB / 0.9556 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001997/0.817, allocations: 193.1 kB / 0.9558 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.775e-05/0.8171, allocations: 6.781 kB / 0.9558 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.36e-05/0.8171, allocations: 5.062 kB / 0.9558 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001653/0.8173, allocations: 89.64 kB / 0.9559 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.8173, allocations: 4 kB / 0.9559 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.8173, allocations: 12.98 kB / 0.9559 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.8173, allocations: 2.281 kB / 0.9559 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001317/0.8175, allocations: 39.94 kB / 0.9559 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000766/0.8183, allocations: 437.7 kB / 0.9564 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.286e-05/0.8183, allocations: 40.59 kB / 0.9564 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.59e-05/0.8184, allocations: 19.84 kB / 0.9564 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.469e-05/0.8184, allocations: 0 / 0.9564 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/0.8184, allocations: 31.91 kB / 0.9564 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.8184, allocations: 4.969 kB / 0.9565 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0002689/0.8187, allocations: 53.91 kB / 0.9565 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.129e-05/0.8188, allocations: 78.11 kB / 0.9566 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002271/0.819, allocations: 162.9 kB / 0.9567 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.8191, allocations: 27.05 kB / 0.9568 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.464e-05/0.8192, allocations: 103.7 kB / 0.9569 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.8192, allocations: 13.25 kB / 0.9569 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.147e-06/0.8192, allocations: 256 / 0.9569 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.8194, allocations: 329.9 kB / 0.9572 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.697e-05/0.8194, allocations: 7.094 kB / 0.9572 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.896e-05/0.8194, allocations: 22.56 kB / 0.9572 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.054e-05/0.8195, allocations: 8.625 kB / 0.9572 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.8195, allocations: 0 / 0.9572 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001037/0.8196, allocations: 59.09 kB / 0.9573 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.8196, allocations: 9.188 kB / 0.9573 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.8197, allocations: 0 / 0.9573 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.123e-05/0.8197, allocations: 1 kB / 0.9573 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.423e-05/0.8198, allocations: 6.156 kB / 0.9573 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.8198, allocations: 1.438 kB / 0.9573 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.06e-05/0.8198, allocations: 1.375 kB / 0.9573 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.8199, allocations: 1.219 kB / 0.9573 GB, free: 4.961 MB / 0.7169 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 0.0001154/0.82, allocations: 121.9 kB / 0.9574 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.14e-05/0.82, allocations: 7.219 kB / 0.9574 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.372e-05/0.8201, allocations: 15.12 kB / 0.9574 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.8201, allocations: 1.062 kB / 0.9574 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/0.8201, allocations: 1.25 kB / 0.9574 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.8201, allocations: 4 kB / 0.9574 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004497/0.8206, allocations: 478.1 kB / 0.9579 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.8206, allocations: 1.156 kB / 0.9579 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.134e-05/0.8206, allocations: 6.359 kB / 0.9579 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.8206, allocations: 5.188 kB / 0.9579 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.8207, allocations: 1.188 kB / 0.9579 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.8207, allocations: 0 / 0.9579 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.8207, allocations: 1.188 kB / 0.9579 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001138/0.8208, allocations: 78.39 kB / 0.958 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.098e-05/0.8209, allocations: 92.22 kB / 0.9581 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.8209, allocations: 1.219 kB / 0.9581 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.954e-05/0.8209, allocations: 4.031 kB / 0.9581 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.097e-05/0.821, allocations: 1.062 kB / 0.9581 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-06/0.821, allocations: 1.062 kB / 0.9581 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001117/0.8211, allocations: 121.3 kB / 0.9582 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8211, allocations: 0 / 0.9582 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002356/0.8213, allocations: 14.39 kB / 0.9582 GB, free: 4.004 MB / 0.7169 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.0001873/0.8215, allocations: 100.1 kB / 0.9583 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001187/0.8216, allocations: 26.98 kB / 0.9583 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.8217, allocations: 0 / 0.9583 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.797e-05/0.8217, allocations: 7.906 kB / 0.9583 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002291/0.8219, allocations: 8.609 kB / 0.9583 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004821/0.8224, allocations: 177.5 kB / 0.9585 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.8227, allocations: 0.6956 MB / 0.9592 GB, free: 3 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.526e-05/0.8227, allocations: 4.594 kB / 0.9592 GB, free: 3 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.767e-05/0.8227, allocations: 14.34 kB / 0.9592 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of SimCode: time 1.413e-06/0.8227, allocations: 0.8438 kB / 0.9592 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of Templates: time 0.003289/0.826, allocations: 427 kB / 0.9596 GB, free: 2.77 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.makefile (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & ./Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches