Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008086/0.008086, allocations: 98.52 kB / 15.73 MB, free: 5.527 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.002167/0.002167, allocations: 187.5 kB / 16.67 MB, free: 5.465 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.91/1.91, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.752/2.752, allocations: 437 MB / 0.7105 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 71.88 kB / 1.018 GB, free: 15 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2715, allocations: 151.6 MB / 1.166 GB, free: 7.258 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.001909/0.2735, allocations: 0.8275 MB / 1.167 GB, free: 6.43 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.000106/0.2736, allocations: 43.84 kB / 1.167 GB, free: 6.387 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.427e-05/0.2736, allocations: 0 / 1.167 GB, free: 6.387 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.783e-05/0.2737, allocations: 7.875 kB / 1.167 GB, free: 6.379 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.244e-05/0.2738, allocations: 7.875 kB / 1.167 GB, free: 6.371 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 5.37e-05/0.2738, allocations: 23.97 kB / 1.167 GB, free: 6.348 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.2739, allocations: 59.84 kB / 1.167 GB, free: 6.289 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.2741, allocations: 47.97 kB / 1.167 GB, free: 6.242 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.837e-05/0.2741, allocations: 27.8 kB / 1.167 GB, free: 6.215 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.15e-05/0.2742, allocations: 27.8 kB / 1.167 GB, free: 6.188 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.606e-05/0.2742, allocations: 4 kB / 1.167 GB, free: 6.184 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.121e-05/0.2742, allocations: 12 kB / 1.167 GB, free: 6.172 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.383e-05/0.2743, allocations: 19.92 kB / 1.167 GB, free: 6.152 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.724e-05/0.2743, allocations: 27.81 kB / 1.167 GB, free: 6.125 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001334/0.2744, allocations: 87.78 kB / 1.167 GB, free: 6.039 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.2744, allocations: 0 / 1.167 GB, free: 6.039 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2745, allocations: 0 / 1.167 GB, free: 6.039 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.2745, allocations: 0 / 1.167 GB, free: 6.039 MB / 0.92 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.2749, allocations: 379.1 kB / 1.168 GB, free: 5.617 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.275, allocations: 11.97 kB / 1.168 GB, free: 5.605 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.663e-05/0.275, allocations: 42.73 kB / 1.168 GB, free: 5.555 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.676e-05/0.275, allocations: 16.84 kB / 1.168 GB, free: 5.539 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002124/0.2753, allocations: 188.3 kB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.2753, allocations: 4.375 kB / 1.168 GB, free: 5.312 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.433e-05/0.2753, allocations: 8.375 kB / 1.168 GB, free: 5.305 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000158/0.2755, allocations: 98.53 kB / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2755, allocations: 3.938 kB / 1.168 GB, free: 5.195 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.2755, allocations: 0 / 1.168 GB, free: 5.195 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.2755, allocations: 7.938 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.522e-05/0.2756, allocations: 43.92 kB / 1.168 GB, free: 5.145 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005569/0.2762, allocations: 432.7 kB / 1.169 GB, free: 4.668 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 5.805e-05/0.2762, allocations: 41.25 kB / 1.169 GB, free: 4.609 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.824e-05/0.2763, allocations: 21.78 kB / 1.169 GB, free: 4.582 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 8.065e-06/0.2763, allocations: 3.984 kB / 1.169 GB, free: 4.578 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.2763, allocations: 34.56 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.163e-06/0.2763, allocations: 0 / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0001635/0.2765, allocations: 53.53 kB / 1.169 GB, free: 4.477 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.012e-05/0.2766, allocations: 77.11 kB / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.2767, allocations: 163.7 kB / 1.169 GB, free: 4.215 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.2768, allocations: 25.7 kB / 1.169 GB, free: 4.184 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.98e-05/0.2768, allocations: 100.1 kB / 1.169 GB, free: 4.082 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.462e-05/0.2769, allocations: 15.89 kB / 1.169 GB, free: 4.066 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.411e-05/0.2769, allocations: 13.72 kB / 1.169 GB, free: 4.047 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.277, allocations: 318.8 kB / 1.169 GB, free: 3.727 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.032e-05/0.2771, allocations: 8 kB / 1.169 GB, free: 3.719 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.785e-05/0.2771, allocations: 21.7 kB / 1.169 GB, free: 3.691 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.458e-05/0.2772, allocations: 29.66 kB / 1.169 GB, free: 3.656 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2772, allocations: 0 / 1.169 GB, free: 3.656 MB / 0.92 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.202e-05/0.2773, allocations: 61.55 kB / 1.169 GB, free: 3.59 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.2773, allocations: 7.938 kB / 1.17 GB, free: 3.582 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2773, allocations: 3.984 kB / 1.17 GB, free: 3.578 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.2773, allocations: 8 kB / 1.17 GB, free: 3.57 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.516e-05/0.2774, allocations: 8.062 kB / 1.17 GB, free: 3.562 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.2774, allocations: 0 / 1.17 GB, free: 3.562 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.167e-05/0.2774, allocations: 4 kB / 1.17 GB, free: 3.559 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.2774, allocations: 4 kB / 1.17 GB, free: 3.555 MB / 0.92 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.769e-05/0.2775, allocations: 109.8 kB / 1.17 GB, free: 3.438 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.718e-05/0.2776, allocations: 11.89 kB / 1.17 GB, free: 3.426 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.535e-05/0.2776, allocations: 15.86 kB / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2776, allocations: 3.938 kB / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.2776, allocations: 0 / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.2776, allocations: 4 kB / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004505/0.2781, allocations: 474.7 kB / 1.17 GB, free: 2.871 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2781, allocations: 3.938 kB / 1.17 GB, free: 2.867 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.047e-05/0.2781, allocations: 4 kB / 1.17 GB, free: 2.863 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2781, allocations: 0 / 1.17 GB, free: 2.863 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.2781, allocations: 4 kB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.2781, allocations: 0 / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2782, allocations: 3.938 kB / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.823e-05/0.2783, allocations: 82.03 kB / 1.17 GB, free: 2.754 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.282e-05/0.2783, allocations: 93.05 kB / 1.17 GB, free: 2.645 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.2784, allocations: 3.984 kB / 1.17 GB, free: 2.641 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.112e-05/0.2784, allocations: 0 / 1.17 GB, free: 2.641 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.195e-05/0.2784, allocations: 4 kB / 1.17 GB, free: 2.637 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-06/0.2784, allocations: 4.031 kB / 1.17 GB, free: 2.633 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001078/0.2785, allocations: 121.7 kB / 1.17 GB, free: 2.516 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2785, allocations: 0 / 1.17 GB, free: 2.516 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0001982/0.2787, allocations: 11.94 kB / 1.17 GB, free: 2.504 MB / 0.92 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.0004278/0.2792, allocations: 0.6171 MB / 1.171 GB, free: 1.855 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 8.244e-05/0.2793, allocations: 23.94 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2793, allocations: 0 / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 1.144e-05/0.2793, allocations: 4 kB / 1.171 GB, free: 1.828 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001531/0.2794, allocations: 8 kB / 1.171 GB, free: 1.82 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.2807, allocations: 1.336 MB / 1.172 GB, free: 396 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.2811, allocations: 0.6928 MB / 1.173 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.585e-05/0.2811, allocations: 4.438 kB / 1.173 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.708e-05/0.2812, allocations: 27.42 kB / 1.173 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.2812, allocations: 0 / 1.173 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02321/0.3044, allocations: 1.575 MB / 1.175 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.119/8.424, allocations: 12.92 kB / 1.175 GB, free: 14.14 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_ton.fmu > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches