Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001924/0.001924, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001893/0.001893, allocations: 211.4 kB / 22.24 MB, free: 4.855 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.503/1.503, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.869/2.869, allocations: 476 MB / 0.7699 GB, free: 4.75 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_11_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.00219/0.00219, allocations: 68.72 kB / 1.117 GB, free: 41.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3234, allocations: 170 MB / 1.283 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.002074/0.3255, allocations: 0.7897 MB / 1.283 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0001196/0.3256, allocations: 39.8 kB / 1.283 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.414e-05/0.3257, allocations: 0 / 1.283 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.384e-05/0.3257, allocations: 11.86 kB / 1.283 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.506e-05/0.3258, allocations: 11.88 kB / 1.283 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 4.802e-05/0.3258, allocations: 15.98 kB / 1.283 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.326, allocations: 63.84 kB / 1.283 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.3261, allocations: 43.47 kB / 1.284 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.34e-05/0.3262, allocations: 19.88 kB / 1.284 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.392e-05/0.3262, allocations: 31.72 kB / 1.284 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.22e-05/0.3263, allocations: 4 kB / 1.284 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.253e-05/0.3263, allocations: 8 kB / 1.284 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.426e-05/0.3263, allocations: 11.94 kB / 1.284 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.368e-05/0.3263, allocations: 27.86 kB / 1.284 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001362/0.3265, allocations: 77.33 kB / 1.284 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3265, allocations: 0 / 1.284 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3265, allocations: 0 / 1.284 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.67e-06/0.3265, allocations: 0 / 1.284 GB, free: 11.38 MB / 0.9825 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.0005038/0.327, allocations: 314.1 kB / 1.284 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.327, allocations: 8.031 kB / 1.284 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.613e-05/0.3271, allocations: 42.69 kB / 1.284 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.117e-05/0.3271, allocations: 8.891 kB / 1.284 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002172/0.3273, allocations: 142.3 kB / 1.284 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.3273, allocations: 8.375 kB / 1.284 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.3274, allocations: 4.375 kB / 1.284 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.3275, allocations: 97.83 kB / 1.284 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3275, allocations: 11.88 kB / 1.284 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.3276, allocations: 4 kB / 1.284 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.3276, allocations: 4 kB / 1.284 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.718e-05/0.3276, allocations: 31.98 kB / 1.284 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000582/0.3282, allocations: 403.8 kB / 1.285 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 7.286e-05/0.3283, allocations: 33.22 kB / 1.285 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.872e-05/0.3283, allocations: 17.78 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.3284, allocations: 8.031 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.3284, allocations: 30.56 kB / 1.285 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.3284, allocations: 0 / 1.285 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001898/0.3286, allocations: 65.52 kB / 1.285 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/0.3286, allocations: 81.11 kB / 1.285 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001769/0.3288, allocations: 156.7 kB / 1.285 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.3288, allocations: 25.7 kB / 1.285 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.63e-05/0.3289, allocations: 112 kB / 1.285 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.667e-06/0.3289, allocations: 3.953 kB / 1.285 GB, free: 9.598 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.367e-05/0.329, allocations: 17.72 kB / 1.285 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.3291, allocations: 322.8 kB / 1.286 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.732e-05/0.3291, allocations: 4 kB / 1.286 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.518e-05/0.3292, allocations: 17.97 kB / 1.286 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.398e-05/0.3292, allocations: 29.66 kB / 1.286 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3292, allocations: 0 / 1.286 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.569e-05/0.3293, allocations: 61.64 kB / 1.286 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.3293, allocations: 7.938 kB / 1.286 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.3293, allocations: 0 / 1.286 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.3293, allocations: 0 / 1.286 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.411e-05/0.3294, allocations: 12.03 kB / 1.286 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.3294, allocations: 3.984 kB / 1.286 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.203e-05/0.3294, allocations: 12.02 kB / 1.286 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.3294, allocations: 3.984 kB / 1.286 GB, free: 9.082 MB / 0.9825 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.222e-05/0.3295, allocations: 113.8 kB / 1.286 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.754e-05/0.3296, allocations: 11.89 kB / 1.286 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.721e-05/0.3296, allocations: 11.81 kB / 1.286 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.3296, allocations: 0 / 1.286 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3296, allocations: 0 / 1.286 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.624e-06/0.3296, allocations: 3.938 kB / 1.286 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004351/0.3301, allocations: 445.7 kB / 1.286 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3301, allocations: 8.062 kB / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.649e-05/0.3301, allocations: 0 / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.3301, allocations: 4 kB / 1.286 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-06/0.3301, allocations: 0 / 1.286 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3301, allocations: 0 / 1.286 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3301, allocations: 0 / 1.286 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001067/0.3302, allocations: 89.81 kB / 1.286 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.754e-05/0.3302, allocations: 11.91 kB / 1.286 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.3302, allocations: 0 / 1.286 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.983e-05/0.3303, allocations: 0 / 1.286 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.511e-05/0.3303, allocations: 32 / 1.286 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-06/0.3303, allocations: 8 kB / 1.286 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001071/0.3304, allocations: 124.3 kB / 1.286 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3304, allocations: 0 / 1.286 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002003/0.3306, allocations: 4 kB / 1.287 GB, free: 8.176 MB / 0.9825 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.0004541/0.331, allocations: 0.6132 MB / 1.287 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 8.301e-05/0.3311, allocations: 15.98 kB / 1.287 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.3311, allocations: 0 / 1.287 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.242e-05/0.3311, allocations: 16.09 kB / 1.287 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001465/0.3313, allocations: 8 kB / 1.287 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.3327, allocations: 1.329 MB / 1.288 GB, free: 6.066 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.734e-05/0.3328, allocations: 79.14 kB / 1.289 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.201e-05/0.3328, allocations: 16.55 kB / 1.289 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.599e-05/0.3329, allocations: 19.44 kB / 1.289 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of SimCode: time 3.51e-07/0.3329, allocations: 7.938 kB / 1.289 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0362/0.3691, allocations: 2.094 MB / 1.291 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.6, allocations: 16.41 kB / 1.291 GB, free: 3.965 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_OBC_UnitConversions_Validation_From_ton.fmu > Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 18.49352298816666]