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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.0017/0.0017, 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.002018/0.002018, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.46/1.46, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.49/2.49, allocations: 390.2 MB / 0.6642 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 63.91 kB / 0.8119 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7953/0.7966, allocations: 140.4 MB / 0.9489 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002312/0.7989, allocations: 0.8804 MB / 0.9498 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001225/0.7991, allocations: 41.39 kB / 0.9498 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.936e-05/0.7991, allocations: 1.219 kB / 0.9498 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.139e-05/0.7992, allocations: 3.938 kB / 0.9498 GB, free: 8.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.7993, allocations: 13.44 kB / 0.9498 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 6.396e-05/0.7994, allocations: 14.97 kB / 0.9499 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001275/0.7995, allocations: 54.88 kB / 0.9499 GB, free: 8.457 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001911/0.7997, allocations: 46.53 kB / 0.95 GB, free: 8.426 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.534e-05/0.7998, allocations: 22.95 kB / 0.95 GB, free: 8.41 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.387e-05/0.7999, allocations: 29.11 kB / 0.95 GB, free: 8.387 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.7999, allocations: 4.188 kB / 0.95 GB, free: 8.387 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.495e-05/0.7999, allocations: 4 kB / 0.95 GB, free: 8.387 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.642e-05/0.7999, allocations: 13.3 kB / 0.95 GB, free: 8.375 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.69e-05/0.8, allocations: 26.69 kB / 0.95 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001073/0.8001, allocations: 78.03 kB / 0.9501 GB, free: 8.293 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.8001, allocations: 0 / 0.9501 GB, free: 8.293 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.403e-06/0.8001, allocations: 0 / 0.9501 GB, free: 8.293 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.8001, allocations: 1.375 kB / 0.9501 GB, free: 8.293 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.0004526/0.8006, allocations: 378.5 kB / 0.9505 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.8007, allocations: 8.25 kB / 0.9505 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.689e-05/0.8007, allocations: 10.34 kB / 0.9505 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001967/0.8009, allocations: 193.8 kB / 0.9507 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.8009, allocations: 8.5 kB / 0.9507 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.684e-05/0.8009, allocations: 8.5 kB / 0.9507 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001654/0.8011, allocations: 90.08 kB / 0.9508 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.8011, allocations: 192 / 0.9508 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.8012, allocations: 5.312 kB / 0.9508 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.8012, allocations: 5.359 kB / 0.9508 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.271e-05/0.8013, allocations: 39.17 kB / 0.9508 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005192/0.8018, allocations: 441.9 kB / 0.9513 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.832e-05/0.8018, allocations: 45.34 kB / 0.9513 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.428e-05/0.8019, allocations: 15.22 kB / 0.9513 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.8019, allocations: 5.375 kB / 0.9513 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.8019, allocations: 34.56 kB / 0.9514 GB, free: 7 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.8019, allocations: 1.375 kB / 0.9514 GB, free: 7 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001684/0.8021, allocations: 57.84 kB / 0.9514 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.8021, allocations: 78.48 kB / 0.9515 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.8023, allocations: 163.2 kB / 0.9516 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.783e-06/0.8023, allocations: 29.95 kB / 0.9517 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.194e-05/0.8023, allocations: 108.6 kB / 0.9518 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.388e-06/0.8024, allocations: 5.469 kB / 0.9518 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.04e-05/0.8024, allocations: 16.91 kB / 0.9518 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.479e-05/0.8025, allocations: 325 kB / 0.9521 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.743e-05/0.8025, allocations: 3.25 kB / 0.9521 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.905e-05/0.8025, allocations: 19 kB / 0.9521 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.971e-05/0.8026, allocations: 26.84 kB / 0.9522 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.8026, allocations: 0 / 0.9522 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.335e-05/0.8026, allocations: 67.03 kB / 0.9522 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.8027, allocations: 5.5 kB / 0.9522 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.8027, allocations: 3.938 kB / 0.9522 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.8027, allocations: 1.562 kB / 0.9522 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.362e-05/0.8028, allocations: 4.625 kB / 0.9522 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.8028, allocations: 5.422 kB / 0.9522 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.718e-05/0.8028, allocations: 5.688 kB / 0.9522 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.8028, allocations: 5.422 kB / 0.9522 GB, free: 6.121 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.341e-05/0.8029, allocations: 113.8 kB / 0.9524 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.134e-05/0.8029, allocations: 7.844 kB / 0.9524 GB, free: 6 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.552e-05/0.803, allocations: 15.16 kB / 0.9524 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.803, allocations: 0 / 0.9524 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.803, allocations: 5.188 kB / 0.9524 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.803, allocations: 1.156 kB / 0.9524 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003098/0.8033, allocations: 474.5 kB / 0.9528 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.8033, allocations: 3.984 kB / 0.9528 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.815e-05/0.8033, allocations: 6.812 kB / 0.9528 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.8033, allocations: 1.469 kB / 0.9528 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.413e-06/0.8034, allocations: 3.938 kB / 0.9529 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.8034, allocations: 1.094 kB / 0.9529 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.8034, allocations: 1.5 kB / 0.9529 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.479e-05/0.8034, allocations: 81.84 kB / 0.9529 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.83e-05/0.8035, allocations: 91.72 kB / 0.953 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.8035, allocations: 1.062 kB / 0.953 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.902e-05/0.8035, allocations: 1.281 kB / 0.953 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.595e-05/0.8036, allocations: 5.312 kB / 0.953 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.8036, allocations: 1.406 kB / 0.953 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.818e-05/0.8036, allocations: 129.1 kB / 0.9532 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8036, allocations: 0 / 0.9532 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001818/0.8038, allocations: 7.094 kB / 0.9532 GB, free: 5.168 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 (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.0001177/0.804, allocations: 100.2 kB / 0.9533 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.8e-05/0.8041, allocations: 14.59 kB / 0.9533 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.8041, allocations: 0 / 0.9533 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.189e-05/0.8041, allocations: 7.906 kB / 0.9533 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000163/0.8042, allocations: 14 kB / 0.9533 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003319/0.8046, allocations: 182.2 kB / 0.9535 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001634/0.8048, allocations: 0.6944 MB / 0.9541 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.37e-05/0.8048, allocations: 8.891 kB / 0.9541 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.703e-05/0.8048, allocations: 11.47 kB / 0.9542 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.8048, allocations: 3.938 kB / 0.9542 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of Templates: time 0.002852/0.8077, allocations: 430.9 kB / 0.9546 GB, free: 3.945 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