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.004756/0.004756, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001261/0.001261, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.923/2.923, allocations: 482.4 MB / 0.7548 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 68.11 kB / 1.083 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.289, allocations: 162.2 MB / 1.241 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.002008/0.291, allocations: 0.8254 MB / 1.242 GB, free: 9.348 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0001114/0.2911, allocations: 39.78 kB / 1.242 GB, free: 9.309 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.401e-05/0.2912, allocations: 0 / 1.242 GB, free: 9.309 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.957e-05/0.2912, allocations: 11.86 kB / 1.242 GB, free: 9.297 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.775e-05/0.2913, allocations: 11.88 kB / 1.242 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 4.849e-05/0.2914, allocations: 15.98 kB / 1.242 GB, free: 9.27 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001014/0.2915, allocations: 63.84 kB / 1.242 GB, free: 9.207 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.2916, allocations: 43.94 kB / 1.242 GB, free: 9.164 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.594e-05/0.2917, allocations: 23.88 kB / 1.242 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.08e-05/0.2917, allocations: 27.84 kB / 1.243 GB, free: 9.113 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.17e-05/0.2918, allocations: 12 kB / 1.243 GB, free: 9.102 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.302e-05/0.2918, allocations: 7.938 kB / 1.243 GB, free: 9.094 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.27e-05/0.2918, allocations: 15.94 kB / 1.243 GB, free: 9.078 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.185e-05/0.2918, allocations: 35.73 kB / 1.243 GB, free: 9.043 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001123/0.292, allocations: 71.64 kB / 1.243 GB, free: 8.973 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.292, allocations: 0 / 1.243 GB, free: 8.973 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.263e-06/0.292, allocations: 0 / 1.243 GB, free: 8.973 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.292, allocations: 0 / 1.243 GB, free: 8.973 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.0004459/0.2924, allocations: 383.1 kB / 1.243 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.2925, allocations: 8.031 kB / 1.243 GB, free: 8.539 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.259e-05/0.2925, allocations: 46.75 kB / 1.243 GB, free: 8.484 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.822e-05/0.2926, allocations: 12.84 kB / 1.243 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002145/0.2928, allocations: 196.2 kB / 1.243 GB, free: 8.242 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.2928, allocations: 4.375 kB / 1.243 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.78e-05/0.2928, allocations: 12.36 kB / 1.243 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001606/0.293, allocations: 93.61 kB / 1.243 GB, free: 8.125 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.293, allocations: 3.938 kB / 1.243 GB, free: 8.121 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.293, allocations: 4 kB / 1.243 GB, free: 8.117 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.293, allocations: 4 kB / 1.243 GB, free: 8.113 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.709e-05/0.2931, allocations: 35.98 kB / 1.243 GB, free: 8.078 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005338/0.2937, allocations: 440.7 kB / 1.244 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.927e-05/0.2937, allocations: 37.22 kB / 1.244 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.458e-05/0.2938, allocations: 17.78 kB / 1.244 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.099e-05/0.2938, allocations: 4 kB / 1.244 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.2938, allocations: 38.59 kB / 1.244 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.2938, allocations: 0 / 1.244 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001888/0.294, allocations: 57.52 kB / 1.244 GB, free: 7.402 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.2941, allocations: 89.3 kB / 1.244 GB, free: 7.297 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.2943, allocations: 160.6 kB / 1.244 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.2943, allocations: 29.7 kB / 1.244 GB, free: 7.098 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.694e-05/0.2944, allocations: 100.1 kB / 1.244 GB, free: 6.996 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 8.175e-06/0.2944, allocations: 3.953 kB / 1.244 GB, free: 6.992 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.236e-05/0.2944, allocations: 17.72 kB / 1.244 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.2946, allocations: 318.8 kB / 1.245 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.929e-05/0.2946, allocations: 4 kB / 1.245 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.608e-05/0.2946, allocations: 25.66 kB / 1.245 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.138e-05/0.2947, allocations: 29.66 kB / 1.245 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.2947, allocations: 0 / 1.245 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.982e-05/0.2948, allocations: 61.59 kB / 1.245 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.2948, allocations: 7.938 kB / 1.245 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2948, allocations: 4 kB / 1.245 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.258e-06/0.2948, allocations: 4.062 kB / 1.245 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.618e-05/0.2949, allocations: 7.938 kB / 1.245 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.2949, allocations: 0 / 1.245 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.571e-05/0.2949, allocations: 15.92 kB / 1.245 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-06/0.295, allocations: 0 / 1.245 GB, free: 6.473 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 8.238e-05/0.295, allocations: 114.4 kB / 1.245 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.439e-05/0.2951, allocations: 11.89 kB / 1.245 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.501e-05/0.2951, allocations: 11.88 kB / 1.245 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.2951, allocations: 0 / 1.245 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.2951, allocations: 4 kB / 1.245 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2951, allocations: 4 kB / 1.245 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004283/0.2956, allocations: 466.7 kB / 1.245 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.2956, allocations: 7.984 kB / 1.245 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.751e-05/0.2956, allocations: 0 / 1.245 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.2956, allocations: 4 kB / 1.245 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.2956, allocations: 4 kB / 1.245 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2956, allocations: 64 / 1.245 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2956, allocations: 4 kB / 1.245 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.756e-05/0.2957, allocations: 77.83 kB / 1.246 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.929e-05/0.2958, allocations: 89.05 kB / 1.246 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.114e-05/0.2958, allocations: 0 / 1.246 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.498e-05/0.2959, allocations: 8 kB / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.911e-05/0.2959, allocations: 4.031 kB / 1.246 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-06/0.2959, allocations: 0 / 1.246 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.972e-05/0.296, allocations: 121.7 kB / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.296, allocations: 0 / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002494/0.2962, allocations: 8 kB / 1.246 GB, free: 5.438 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.0004234/0.2967, allocations: 0.6209 MB / 1.246 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 7.669e-05/0.2968, allocations: 19.98 kB / 1.246 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.2968, allocations: 0 / 1.246 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.27e-05/0.2968, allocations: 11.88 kB / 1.246 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.2969, allocations: 10.23 kB / 1.246 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001208/0.2982, allocations: 1.335 MB / 1.248 GB, free: 3.312 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.2985, allocations: 0.6924 MB / 1.248 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.007e-05/0.2985, allocations: 8.422 kB / 1.248 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.345e-05/0.2986, allocations: 23.44 kB / 1.248 GB, free: 2.562 MB / 0.9981 GB Notification: Performance of SimCode: time 2.5e-07/0.2986, allocations: 4 kB / 1.248 GB, free: 2.559 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02046/0.319, allocations: 1.572 MB / 1.25 GB, free: 1.09 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.693/8.012, allocations: 10.23 kB / 1.25 GB, free: 1.082 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.csv","/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