Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_latest_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.004246/0.004245, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.001214/0.001214, allocations: 194.6 kB / 16.68 MB, free: 5.969 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.675/2.675, allocations: 482.6 MB / 0.755 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 71.83 kB / 1.083 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.294, allocations: 162.3 MB / 1.242 GB, free: 9.746 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.001904/0.2959, allocations: 0.8138 MB / 1.243 GB, free: 8.93 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0001107/0.2961, allocations: 43.78 kB / 1.243 GB, free: 8.887 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.412e-05/0.2961, allocations: 4 kB / 1.243 GB, free: 8.883 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.833e-05/0.2962, allocations: 11.86 kB / 1.243 GB, free: 8.871 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.732e-05/0.2962, allocations: 7.875 kB / 1.243 GB, free: 8.863 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 5.27e-05/0.2963, allocations: 19.98 kB / 1.243 GB, free: 8.844 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.958e-05/0.2964, allocations: 59.84 kB / 1.243 GB, free: 8.785 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.2965, allocations: 51.94 kB / 1.243 GB, free: 8.734 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.562e-05/0.2966, allocations: 23.81 kB / 1.243 GB, free: 8.711 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.301e-05/0.2966, allocations: 27.84 kB / 1.243 GB, free: 8.684 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.967e-05/0.2967, allocations: 8 kB / 1.243 GB, free: 8.676 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.689e-06/0.2967, allocations: 4 kB / 1.243 GB, free: 8.672 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.215e-05/0.2967, allocations: 15.94 kB / 1.243 GB, free: 8.656 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.518e-05/0.2968, allocations: 35.73 kB / 1.243 GB, free: 8.621 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.2969, allocations: 75.64 kB / 1.243 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2969, allocations: 3.938 kB / 1.243 GB, free: 8.543 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2969, allocations: 0 / 1.243 GB, free: 8.543 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.2969, allocations: 4 kB / 1.243 GB, free: 8.539 MB / 0.9981 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.0004229/0.2973, allocations: 387 kB / 1.243 GB, free: 8.109 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.2974, allocations: 8.031 kB / 1.243 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.617e-05/0.2974, allocations: 38.75 kB / 1.243 GB, free: 8.055 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.675e-05/0.2974, allocations: 8.891 kB / 1.243 GB, free: 8.047 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002032/0.2976, allocations: 192.2 kB / 1.244 GB, free: 7.82 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.2977, allocations: 4.375 kB / 1.244 GB, free: 7.816 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.2977, allocations: 8.375 kB / 1.244 GB, free: 7.809 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001515/0.2978, allocations: 97.3 kB / 1.244 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.2979, allocations: 3.938 kB / 1.244 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.2979, allocations: 0 / 1.244 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.2979, allocations: 4 kB / 1.244 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.472e-05/0.298, allocations: 35.98 kB / 1.244 GB, free: 7.66 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005044/0.2985, allocations: 444.6 kB / 1.244 GB, free: 7.172 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.518e-05/0.2985, allocations: 37.22 kB / 1.244 GB, free: 7.117 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.707e-05/0.2986, allocations: 21.81 kB / 1.244 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.927e-06/0.2986, allocations: 0 / 1.244 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.2986, allocations: 38.56 kB / 1.244 GB, free: 7.043 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.2986, allocations: 0 / 1.244 GB, free: 7.043 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001578/0.2988, allocations: 57.52 kB / 1.244 GB, free: 6.98 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.2988, allocations: 77.11 kB / 1.244 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.299, allocations: 164.6 kB / 1.245 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.299, allocations: 25.7 kB / 1.245 GB, free: 6.688 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.621e-05/0.2991, allocations: 104.1 kB / 1.245 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.455e-05/0.2991, allocations: 11.95 kB / 1.245 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.228e-05/0.2991, allocations: 17.97 kB / 1.245 GB, free: 6.547 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.2993, allocations: 322.8 kB / 1.245 GB, free: 6.223 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.757e-05/0.2993, allocations: 8 kB / 1.245 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.469e-05/0.2993, allocations: 17.72 kB / 1.245 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.92e-05/0.2994, allocations: 29.66 kB / 1.245 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2994, allocations: 4 kB / 1.245 GB, free: 6.152 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.289e-05/0.2995, allocations: 57.73 kB / 1.245 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.2995, allocations: 11.88 kB / 1.245 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.2995, allocations: 0 / 1.245 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.2995, allocations: 7.984 kB / 1.245 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.271e-05/0.2996, allocations: 4 kB / 1.245 GB, free: 6.066 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.2996, allocations: 3.984 kB / 1.245 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.067e-05/0.2996, allocations: 11.89 kB / 1.245 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-06/0.2996, allocations: 3.938 kB / 1.245 GB, free: 6.047 MB / 0.9981 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 7.876e-05/0.2997, allocations: 117.9 kB / 1.245 GB, free: 5.922 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.189e-05/0.2998, allocations: 11.89 kB / 1.245 GB, free: 5.91 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.554e-05/0.2998, allocations: 11.88 kB / 1.245 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.2998, allocations: 0 / 1.245 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.2998, allocations: 0 / 1.245 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.2998, allocations: 0 / 1.245 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000394/0.3002, allocations: 478.7 kB / 1.246 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3002, allocations: 4.062 kB / 1.246 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.958e-05/0.3003, allocations: 4 kB / 1.246 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.3003, allocations: 0 / 1.246 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.3003, allocations: 4 kB / 1.246 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3003, allocations: 0 / 1.246 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3003, allocations: 0 / 1.246 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.11e-05/0.3004, allocations: 81.81 kB / 1.246 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.644e-05/0.3004, allocations: 93.09 kB / 1.246 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.3004, allocations: 0 / 1.246 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.837e-05/0.3005, allocations: 0 / 1.246 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.45e-05/0.3005, allocations: 4 kB / 1.246 GB, free: 5.137 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.029e-06/0.3005, allocations: 3.984 kB / 1.246 GB, free: 5.133 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.415e-05/0.3006, allocations: 115.3 kB / 1.246 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3006, allocations: 0 / 1.246 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001744/0.3008, allocations: 8 kB / 1.246 GB, free: 5.012 MB / 0.9981 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.0003893/0.3012, allocations: 0.6176 MB / 1.247 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 7.925e-05/0.3012, allocations: 23.92 kB / 1.247 GB, free: 4.34 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.3013, allocations: 0 / 1.247 GB, free: 4.34 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.519e-05/0.3013, allocations: 12.16 kB / 1.247 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001415/0.3014, allocations: 8 kB / 1.247 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.3026, allocations: 1.334 MB / 1.248 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.3029, allocations: 0.6923 MB / 1.249 GB, free: 2.172 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.021e-05/0.3029, allocations: 12.42 kB / 1.249 GB, free: 2.16 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.469e-05/0.303, allocations: 27.42 kB / 1.249 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of SimCode: time 2.5e-07/0.303, allocations: 0 / 1.249 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.119/1.422, allocations: 1.577 MB / 1.25 GB, free: 0.6641 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/13.46, allocations: 14.86 kB / 1.25 GB, free: 0.6523 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_ton_fmu --startTime=0 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_ton.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches