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.006825/0.006825, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001138/0.001138, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.184 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.684/2.684, allocations: 437 MB / 0.7105 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 67.91 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3679, allocations: 151.6 MB / 1.166 GB, free: 7.293 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.002415/0.3704, allocations: 0.8178 MB / 1.167 GB, free: 6.469 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0001713/0.3706, allocations: 47.78 kB / 1.167 GB, free: 6.422 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.049e-05/0.3707, allocations: 8 kB / 1.167 GB, free: 6.414 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.934e-05/0.3708, allocations: 15.8 kB / 1.167 GB, free: 6.398 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.664e-05/0.3709, allocations: 3.938 kB / 1.167 GB, free: 6.395 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 8.036e-05/0.371, allocations: 19.98 kB / 1.167 GB, free: 6.375 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000138/0.3711, allocations: 59.84 kB / 1.167 GB, free: 6.316 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.3713, allocations: 47.95 kB / 1.167 GB, free: 6.27 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.235e-05/0.3713, allocations: 23.88 kB / 1.167 GB, free: 6.246 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.859e-05/0.3714, allocations: 31.78 kB / 1.167 GB, free: 6.215 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.3714, allocations: 4 kB / 1.167 GB, free: 6.211 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.414e-05/0.3715, allocations: 8 kB / 1.167 GB, free: 6.203 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.269e-05/0.3715, allocations: 15.88 kB / 1.167 GB, free: 6.188 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.444e-05/0.3715, allocations: 35.8 kB / 1.167 GB, free: 6.152 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.3717, allocations: 74.45 kB / 1.167 GB, free: 6.082 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.3717, allocations: 4 kB / 1.167 GB, free: 6.078 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.415e-06/0.3717, allocations: 4 kB / 1.167 GB, free: 6.074 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.236e-06/0.3717, allocations: 0 / 1.167 GB, free: 6.074 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.0005122/0.3722, allocations: 388 kB / 1.168 GB, free: 5.645 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.3723, allocations: 8.031 kB / 1.168 GB, free: 5.637 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.754e-05/0.3724, allocations: 38.75 kB / 1.168 GB, free: 5.59 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.454e-05/0.3724, allocations: 8.844 kB / 1.168 GB, free: 5.582 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002515/0.3726, allocations: 192.1 kB / 1.168 GB, free: 5.355 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.3727, allocations: 8.375 kB / 1.168 GB, free: 5.348 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.621e-05/0.3727, allocations: 8.312 kB / 1.168 GB, free: 5.34 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.3729, allocations: 97.67 kB / 1.168 GB, free: 5.234 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.3729, allocations: 3.938 kB / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.3729, allocations: 0 / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.3729, allocations: 4 kB / 1.168 GB, free: 5.227 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.513e-05/0.373, allocations: 35.92 kB / 1.168 GB, free: 5.191 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006354/0.3737, allocations: 440.5 kB / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 6.956e-05/0.3738, allocations: 41.28 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.361e-05/0.3738, allocations: 17.84 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.142e-05/0.3738, allocations: 4 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.3738, allocations: 34.56 kB / 1.169 GB, free: 4.578 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.262e-06/0.3739, allocations: 0 / 1.169 GB, free: 4.578 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0002116/0.3741, allocations: 61.47 kB / 1.169 GB, free: 4.512 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.3741, allocations: 77.11 kB / 1.169 GB, free: 4.418 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.3743, allocations: 159.5 kB / 1.169 GB, free: 4.254 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.3743, allocations: 25.7 kB / 1.169 GB, free: 4.223 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.025e-05/0.3744, allocations: 104 kB / 1.169 GB, free: 4.117 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 9.017e-06/0.3744, allocations: 4.156 kB / 1.169 GB, free: 4.113 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.98e-05/0.3745, allocations: 21.72 kB / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.3746, allocations: 322.8 kB / 1.169 GB, free: 3.762 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.05e-05/0.3746, allocations: 4 kB / 1.169 GB, free: 3.758 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.163e-05/0.3747, allocations: 17.72 kB / 1.169 GB, free: 3.734 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.49e-05/0.3747, allocations: 25.72 kB / 1.169 GB, free: 3.703 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3747, allocations: 0 / 1.169 GB, free: 3.703 MB / 0.92 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.052e-05/0.3748, allocations: 69.53 kB / 1.169 GB, free: 3.629 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.3748, allocations: 7.938 kB / 1.169 GB, free: 3.621 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3749, allocations: 0 / 1.169 GB, free: 3.621 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.3749, allocations: 0 / 1.169 GB, free: 3.621 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.937e-05/0.375, allocations: 11.94 kB / 1.169 GB, free: 3.609 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.375, allocations: 0 / 1.169 GB, free: 3.609 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.295e-05/0.375, allocations: 7.844 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.375, allocations: 4 kB / 1.17 GB, free: 3.598 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 9.359e-05/0.3751, allocations: 121.9 kB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.331e-05/0.3752, allocations: 15.78 kB / 1.17 GB, free: 3.453 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.939e-05/0.3752, allocations: 11.95 kB / 1.17 GB, free: 3.438 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3752, allocations: 7.938 kB / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3752, allocations: 0 / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.3752, allocations: 0 / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003853/0.3756, allocations: 470.8 kB / 1.17 GB, free: 2.906 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3756, allocations: 4.062 kB / 1.17 GB, free: 2.902 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.301e-05/0.3757, allocations: 7.984 kB / 1.17 GB, free: 2.895 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.3757, allocations: 0 / 1.17 GB, free: 2.895 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.102e-06/0.3757, allocations: 0 / 1.17 GB, free: 2.895 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3757, allocations: 0 / 1.17 GB, free: 2.895 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.3757, allocations: 4 kB / 1.17 GB, free: 2.891 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.768e-05/0.3758, allocations: 73.84 kB / 1.17 GB, free: 2.797 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.3758, allocations: 97.03 kB / 1.17 GB, free: 2.684 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.3759, allocations: 0 / 1.17 GB, free: 2.684 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.981e-05/0.3759, allocations: 0 / 1.17 GB, free: 2.684 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.765e-05/0.3759, allocations: 3.938 kB / 1.17 GB, free: 2.68 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.3759, allocations: 4 kB / 1.17 GB, free: 2.676 MB / 0.92 GB Notification: Performance of sorting global known variables: time 9.304e-05/0.376, allocations: 121.7 kB / 1.17 GB, free: 2.559 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.4e-07/0.376, allocations: 0 / 1.17 GB, free: 2.559 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000224/0.3762, allocations: 7.906 kB / 1.17 GB, free: 2.551 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.0003826/0.3766, allocations: 0.6171 MB / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 9.617e-05/0.3767, allocations: 23.92 kB / 1.171 GB, free: 1.879 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3768, allocations: 0 / 1.171 GB, free: 1.879 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 1.194e-05/0.3768, allocations: 8.219 kB / 1.171 GB, free: 1.871 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001585/0.3769, allocations: 8 kB / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.3782, allocations: 1.327 MB / 1.172 GB, free: 448 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.3785, allocations: 0.6929 MB / 1.173 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.82e-05/0.3785, allocations: 12.42 kB / 1.173 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.652e-05/0.3786, allocations: 23.44 kB / 1.173 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.3786, allocations: 0 / 1.173 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02006/0.3987, allocations: 1.582 MB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.576/7.974, allocations: 7.391 kB / 1.175 GB, free: 14.2 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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