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.001472/0.001472, allocations: 108.1 kB / 16.36 MB, free: 5.824 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.001482/0.001482, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.395/1.395, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.334/2.334, allocations: 390.3 MB / 0.6655 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 63.23 kB / 0.814 GB, free: 32.77 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2921, allocations: 140.4 MB / 0.9511 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002543/0.2947, allocations: 0.8304 MB / 0.9519 GB, free: 7.18 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002021/0.2949, allocations: 47.72 kB / 0.952 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.473e-05/0.295, allocations: 0 / 0.952 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.573e-05/0.2951, allocations: 7.875 kB / 0.952 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.2952, allocations: 7.922 kB / 0.952 GB, free: 7.117 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 6.764e-05/0.2953, allocations: 19.98 kB / 0.952 GB, free: 7.098 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.2954, allocations: 63.78 kB / 0.9521 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.2956, allocations: 43.97 kB / 0.9521 GB, free: 6.992 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.677e-05/0.2957, allocations: 19.92 kB / 0.9521 GB, free: 6.973 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.121e-05/0.2958, allocations: 35.78 kB / 0.9522 GB, free: 6.938 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.061e-05/0.2958, allocations: 4 kB / 0.9522 GB, free: 6.934 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.255e-05/0.2958, allocations: 8 kB / 0.9522 GB, free: 6.926 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.225e-05/0.2958, allocations: 11.94 kB / 0.9522 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.531e-05/0.2959, allocations: 39.73 kB / 0.9522 GB, free: 6.875 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.296, allocations: 75.7 kB / 0.9523 GB, free: 6.801 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.296, allocations: 0 / 0.9523 GB, free: 6.801 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.412e-06/0.296, allocations: 0 / 0.9523 GB, free: 6.801 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.773e-06/0.2961, allocations: 3.938 kB / 0.9523 GB, free: 6.797 MB / 0.7325 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.0004918/0.2966, allocations: 383.1 kB / 0.9527 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.2966, allocations: 8.031 kB / 0.9527 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.64e-05/0.2967, allocations: 8.844 kB / 0.9527 GB, free: 6.355 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.2969, allocations: 196.1 kB / 0.9529 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.2969, allocations: 12.38 kB / 0.9529 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.742e-05/0.2969, allocations: 4.375 kB / 0.9529 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001618/0.2971, allocations: 95.84 kB / 0.953 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.2971, allocations: 192 / 0.953 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.2971, allocations: 7.938 kB / 0.953 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.2972, allocations: 0 / 0.953 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.068e-05/0.2972, allocations: 39.92 kB / 0.953 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006502/0.2979, allocations: 432.6 kB / 0.9534 GB, free: 5.48 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 6.632e-05/0.298, allocations: 41.28 kB / 0.9535 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.715e-05/0.298, allocations: 21.84 kB / 0.9535 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.298, allocations: 7.984 kB / 0.9535 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.2981, allocations: 34.55 kB / 0.9535 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.503e-06/0.2981, allocations: 0 / 0.9535 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0001939/0.2983, allocations: 53.48 kB / 0.9536 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.2983, allocations: 81.11 kB / 0.9537 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.2985, allocations: 172.7 kB / 0.9538 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.2985, allocations: 25.7 kB / 0.9539 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.979e-05/0.2986, allocations: 108.2 kB / 0.954 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.835e-06/0.2986, allocations: 3.906 kB / 0.954 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.2987, allocations: 17.72 kB / 0.954 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.2988, allocations: 318.8 kB / 0.9543 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.924e-05/0.2988, allocations: 4 kB / 0.9543 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.072e-05/0.2989, allocations: 25.7 kB / 0.9543 GB, free: 4.488 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.074e-05/0.299, allocations: 29.72 kB / 0.9543 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.299, allocations: 0 / 0.9543 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001018/0.2991, allocations: 53.55 kB / 0.9544 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.2991, allocations: 8 kB / 0.9544 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.2991, allocations: 7.922 kB / 0.9544 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.2991, allocations: 0 / 0.9544 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.341e-05/0.2992, allocations: 4 kB / 0.9544 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.2992, allocations: 4 kB / 0.9544 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.01e-05/0.2993, allocations: 7.844 kB / 0.9544 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-06/0.2993, allocations: 8 kB / 0.9544 GB, free: 4.355 MB / 0.7325 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 9.966e-05/0.2994, allocations: 117.8 kB / 0.9545 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.639e-05/0.2995, allocations: 7.906 kB / 0.9545 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.792e-05/0.2995, allocations: 27.73 kB / 0.9546 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2995, allocations: 0 / 0.9546 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2995, allocations: 0 / 0.9546 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.2995, allocations: 4 kB / 0.9546 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004184/0.2999, allocations: 474.8 kB / 0.955 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3, allocations: 0 / 0.955 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.943e-05/0.3, allocations: 0 / 0.955 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.3, allocations: 4 kB / 0.955 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.3, allocations: 0 / 0.955 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.3, allocations: 0 / 0.955 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3, allocations: 0 / 0.955 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.856e-05/0.3001, allocations: 81.89 kB / 0.9551 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.632e-05/0.3002, allocations: 85.02 kB / 0.9552 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.3002, allocations: 7.984 kB / 0.9552 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.979e-05/0.3002, allocations: 4 kB / 0.9552 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.196e-05/0.3003, allocations: 3.938 kB / 0.9552 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-06/0.3003, allocations: 0 / 0.9552 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.531e-05/0.3004, allocations: 121.3 kB / 0.9553 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3004, allocations: 0 / 0.9553 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001919/0.3006, allocations: 12.03 kB / 0.9553 GB, free: 3.312 MB / 0.7325 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.0001251/0.3007, allocations: 95.25 kB / 0.9554 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001004/0.3008, allocations: 16 kB / 0.9554 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3008, allocations: 0 / 0.9554 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.594e-05/0.3009, allocations: 15.92 kB / 0.9555 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001566/0.301, allocations: 11.94 kB / 0.9555 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003448/0.3014, allocations: 163.1 kB / 0.9556 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.3016, allocations: 0.6922 MB / 0.9563 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.747e-05/0.3017, allocations: 8.422 kB / 0.9563 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.813e-05/0.3017, allocations: 11.44 kB / 0.9563 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.3017, allocations: 0 / 0.9563 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of Templates: time 0.002682/0.3044, allocations: 458.9 kB / 0.9568 GB, free: 1.789 MB / 0.7325 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 -s gbode -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/jenkins1/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