Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 105.2 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002265/0.002265, allocations: 209.7 kB / 19.43 MB, free: 3.621 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.616/1.616, allocations: 230.6 MB / 252.8 MB, free: 8.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.364/3.364, allocations: 0.49 GB / 0.7916 GB, free: 33.07 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 67.16 kB / 1.149 GB, free: 26.36 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3906, allocations: 176.1 MB / 1.321 GB, free: 3.359 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.002614/0.3932, allocations: 0.8286 MB / 1.322 GB, free: 2.535 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0001306/0.3933, allocations: 39.78 kB / 1.322 GB, free: 2.496 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.794e-05/0.3934, allocations: 4 kB / 1.322 GB, free: 2.492 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.6e-05/0.3935, allocations: 7.875 kB / 1.322 GB, free: 2.484 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.581e-05/0.3936, allocations: 19.81 kB / 1.322 GB, free: 2.465 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 7.426e-05/0.3936, allocations: 19.97 kB / 1.322 GB, free: 2.445 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001407/0.3938, allocations: 63.83 kB / 1.322 GB, free: 2.383 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.3939, allocations: 31.92 kB / 1.322 GB, free: 2.352 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 6.687e-05/0.394, allocations: 27.86 kB / 1.322 GB, free: 2.324 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.099e-05/0.3941, allocations: 27.8 kB / 1.322 GB, free: 2.297 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.3941, allocations: 4 kB / 1.322 GB, free: 2.293 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.135e-05/0.3941, allocations: 11.94 kB / 1.322 GB, free: 2.281 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.846e-05/0.3941, allocations: 15.98 kB / 1.322 GB, free: 2.266 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.894e-05/0.3942, allocations: 31.75 kB / 1.322 GB, free: 2.234 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.3943, allocations: 83.84 kB / 1.322 GB, free: 2.152 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3943, allocations: 0 / 1.322 GB, free: 2.152 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.106e-06/0.3943, allocations: 0 / 1.322 GB, free: 2.152 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.744e-06/0.3943, allocations: 0 / 1.322 GB, free: 2.152 MB / 1.014 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.0004994/0.3948, allocations: 383.1 kB / 1.322 GB, free: 1.727 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.3949, allocations: 11.98 kB / 1.322 GB, free: 1.715 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.235e-05/0.3949, allocations: 46.67 kB / 1.322 GB, free: 1.66 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.71e-05/0.395, allocations: 8.891 kB / 1.322 GB, free: 1.652 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.3952, allocations: 192.3 kB / 1.323 GB, free: 1.426 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.3952, allocations: 4.375 kB / 1.323 GB, free: 1.422 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.3952, allocations: 12.38 kB / 1.323 GB, free: 1.41 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001767/0.3954, allocations: 95.78 kB / 1.323 GB, free: 1.305 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3954, allocations: 3.938 kB / 1.323 GB, free: 1.301 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.3954, allocations: 4 kB / 1.323 GB, free: 1.297 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.3954, allocations: 4 kB / 1.323 GB, free: 1.293 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.885e-05/0.3955, allocations: 31.98 kB / 1.323 GB, free: 1.262 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005676/0.3961, allocations: 444.7 kB / 1.323 GB, free: 0.7734 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 5.876e-05/0.3961, allocations: 33.22 kB / 1.323 GB, free: 0.7227 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.507e-05/0.3962, allocations: 25.77 kB / 1.323 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 9.248e-06/0.3962, allocations: 4.031 kB / 1.323 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.3962, allocations: 30.56 kB / 1.323 GB, free: 0.6484 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.143e-06/0.3962, allocations: 4 kB / 1.323 GB, free: 0.6445 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.0001846/0.3964, allocations: 57.48 kB / 1.323 GB, free: 0.582 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.335e-05/0.3965, allocations: 77.11 kB / 1.323 GB, free: 500 kB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.3966, allocations: 164.5 kB / 1.324 GB, free: 328 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.3966, allocations: 29.7 kB / 1.324 GB, free: 292 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 7.948e-05/0.3967, allocations: 108 kB / 1.324 GB, free: 180 kB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 9.508e-06/0.3967, allocations: 3.953 kB / 1.324 GB, free: 176 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.652e-05/0.3968, allocations: 21.7 kB / 1.324 GB, free: 148 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.3969, allocations: 318.8 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.138e-05/0.3969, allocations: 8 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.402e-05/0.397, allocations: 25.69 kB / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.399e-05/0.397, allocations: 29.66 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.397, allocations: 0 / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001036/0.3971, allocations: 61.64 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3971, allocations: 7.938 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3972, allocations: 0 / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.3972, allocations: 0 / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.927e-05/0.3973, allocations: 11.94 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.3973, allocations: 4.062 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.552e-05/0.3973, allocations: 7.953 kB / 1.324 GB, free: 15.65 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-06/0.3973, allocations: 0 / 1.324 GB, free: 15.65 MB / 1.029 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 0.0001202/0.3974, allocations: 113.8 kB / 1.324 GB, free: 15.53 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.842e-05/0.3975, allocations: 11.89 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.743e-05/0.3975, allocations: 11.86 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3975, allocations: 4 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3975, allocations: 0 / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3975, allocations: 0 / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004777/0.398, allocations: 474.8 kB / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.398, allocations: 0 / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.99e-05/0.398, allocations: 4 kB / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.398, allocations: 0 / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.398, allocations: 0 / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.398, allocations: 4 kB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.398, allocations: 0 / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001268/0.3982, allocations: 93.83 kB / 1.325 GB, free: 14.85 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.452e-05/0.3983, allocations: 92.98 kB / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.3983, allocations: 0 / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.006e-05/0.3983, allocations: 0 / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.379e-05/0.3983, allocations: 3.938 kB / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.3983, allocations: 4 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001154/0.3984, allocations: 125.3 kB / 1.325 GB, free: 14.61 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3984, allocations: 0 / 1.325 GB, free: 14.61 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001904/0.3986, allocations: 8 kB / 1.325 GB, free: 14.61 MB / 1.029 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.00053/0.3992, allocations: 0.6132 MB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001111/0.3993, allocations: 20.03 kB / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3993, allocations: 0 / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.696e-05/0.3993, allocations: 11.94 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001633/0.3995, allocations: 7.938 kB / 1.326 GB, free: 13.92 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.4008, allocations: 1.326 MB / 1.327 GB, free: 12.5 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.4012, allocations: 0.6963 MB / 1.328 GB, free: 11.77 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.047e-05/0.4012, allocations: 4.438 kB / 1.328 GB, free: 11.77 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.656e-05/0.4013, allocations: 27.42 kB / 1.328 GB, free: 11.74 MB / 1.029 GB Notification: Performance of SimCode: time 4.81e-07/0.4013, allocations: 3.938 kB / 1.328 GB, free: 11.74 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02576/0.427, allocations: 1.592 MB / 1.329 GB, free: 10.24 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.106/8.533, allocations: 11.92 kB / 1.329 GB, free: 10.23 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Controls_OBC_UnitConversions_Validation_From_ton.fmu > Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.80941413808614]