Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_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.0006673/0.0006673, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008669/0.0008669, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8998/0.8998, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.715/1.715, allocations: 377.8 MB / 0.6221 GB, free: 8.668 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.To_ton,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 0.981 GB, free: 2.594 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.635e-05/1.787e-05, allocations: 2.281 kB / 0.981 GB, free: 2.59 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001479/0.001497, allocations: 0.7971 MB / 0.9817 GB, free: 1.797 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0001024/0.0016, allocations: 43.78 kB / 0.9818 GB, free: 1.754 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.53e-05/0.001645, allocations: 0 / 0.9818 GB, free: 1.754 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.257e-05/0.001677, allocations: 11.86 kB / 0.9818 GB, free: 1.742 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.712e-05/0.001745, allocations: 11.88 kB / 0.9818 GB, free: 1.73 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 3.678e-05/0.001781, allocations: 15.98 kB / 0.9818 GB, free: 1.715 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 8.652e-05/0.001868, allocations: 63.78 kB / 0.9819 GB, free: 1.652 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.001975, allocations: 35.95 kB / 0.9819 GB, free: 1.617 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.018e-05/0.002045, allocations: 35.91 kB / 0.982 GB, free: 1.582 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 3.27e-05/0.002078, allocations: 23.91 kB / 0.982 GB, free: 1.559 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.969e-05/0.002098, allocations: 4 kB / 0.982 GB, free: 1.555 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 8.155e-06/0.002106, allocations: 8 kB / 0.982 GB, free: 1.547 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.7e-05/0.002123, allocations: 11.92 kB / 0.982 GB, free: 1.535 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.844e-05/0.002151, allocations: 19.94 kB / 0.982 GB, free: 1.516 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 9.17e-05/0.002243, allocations: 83.61 kB / 0.9821 GB, free: 1.434 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.694e-06/0.002245, allocations: 0 / 0.9821 GB, free: 1.434 MB / 0.9323 GB Notification: Performance of FrontEnd: time 7.21e-07/0.002245, allocations: 0 / 0.9821 GB, free: 1.434 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.177e-06/0.00225, allocations: 4 kB / 0.9821 GB, free: 1.43 MB / 0.9323 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.0003057/0.002555, allocations: 298 kB / 0.9824 GB, free: 1.105 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.002592, allocations: 8.031 kB / 0.9824 GB, free: 1.098 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.299e-05/0.002625, allocations: 50.67 kB / 0.9824 GB, free: 1.039 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.184e-05/0.002647, allocations: 16.84 kB / 0.9825 GB, free: 1.023 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.002786, allocations: 125.7 kB / 0.9826 GB, free: 0.875 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.125e-06/0.002794, allocations: 4.375 kB / 0.9826 GB, free: 0.8711 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.002805, allocations: 12.38 kB / 0.9826 GB, free: 0.8594 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/0.002918, allocations: 94.86 kB / 0.9827 GB, free: 0.7578 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.002925, allocations: 192 / 0.9827 GB, free: 0.7578 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-06/0.002933, allocations: 4.375 kB / 0.9827 GB, free: 0.7539 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.002942, allocations: 16.05 kB / 0.9827 GB, free: 0.7383 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.556e-05/0.002997, allocations: 35.98 kB / 0.9827 GB, free: 0.7031 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003804/0.003378, allocations: 387.8 kB / 0.9831 GB, free: 284 kB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 4.748e-05/0.003425, allocations: 37.22 kB / 0.9831 GB, free: 228 kB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.838e-05/0.003453, allocations: 17.77 kB / 0.9832 GB, free: 204 kB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 6.492e-06/0.00346, allocations: 96 / 0.9832 GB, free: 204 kB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.003479, allocations: 42.5 kB / 0.9832 GB, free: 152 kB / 0.9323 GB Notification: Performance of pre-optimization done (n=2): time 7.81e-07/0.003479, allocations: 4 kB / 0.9832 GB, free: 148 kB / 0.9323 GB Notification: Performance of matching and sorting (n=2): time 0.0001277/0.003607, allocations: 49.59 kB / 0.9833 GB, free: 92 kB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.003654, allocations: 81.05 kB / 0.9833 GB, free: 15.99 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.003754, allocations: 160.5 kB / 0.9835 GB, free: 15.83 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 8.726e-06/0.003763, allocations: 25.7 kB / 0.9835 GB, free: 15.8 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.008e-05/0.003813, allocations: 108 kB / 0.9836 GB, free: 15.69 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 7.454e-06/0.00382, allocations: 11.88 kB / 0.9836 GB, free: 15.68 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.586e-05/0.003846, allocations: 17.72 kB / 0.9836 GB, free: 15.65 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.231e-05/0.003919, allocations: 318.8 kB / 0.9839 GB, free: 15.33 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.152e-05/0.00393, allocations: 4.25 kB / 0.9839 GB, free: 15.33 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.154e-05/0.003952, allocations: 33.69 kB / 0.984 GB, free: 15.29 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.094e-05/0.003983, allocations: 29.59 kB / 0.984 GB, free: 15.25 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.003984, allocations: 0 / 0.984 GB, free: 15.25 MB / 0.948 GB Notification: Performance of matching and sorting (n=4) (initialization): time 5.222e-05/0.004036, allocations: 53.66 kB / 0.9841 GB, free: 15.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.004055, allocations: 11.98 kB / 0.9841 GB, free: 15.18 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.004059, allocations: 0 / 0.9841 GB, free: 15.18 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.00407, allocations: 0 / 0.9841 GB, free: 15.18 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.717e-05/0.004117, allocations: 11.88 kB / 0.9841 GB, free: 15.17 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.004122, allocations: 8.062 kB / 0.9841 GB, free: 15.16 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.538e-05/0.004137, allocations: 0 / 0.9841 GB, free: 15.16 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-06/0.004142, allocations: 4 kB / 0.9841 GB, free: 15.16 MB / 0.948 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 5.23e-05/0.004194, allocations: 113.8 kB / 0.9842 GB, free: 15.04 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.135e-05/0.004215, allocations: 11.91 kB / 0.9842 GB, free: 15.03 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.716e-05/0.004233, allocations: 11.8 kB / 0.9842 GB, free: 15.02 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.004234, allocations: 0 / 0.9842 GB, free: 15.02 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.004239, allocations: 7.938 kB / 0.9842 GB, free: 15.01 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.004241, allocations: 0 / 0.9842 GB, free: 15.01 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002359/0.004477, allocations: 430 kB / 0.9846 GB, free: 14.54 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.004478, allocations: 4.031 kB / 0.9846 GB, free: 14.53 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.085e-05/0.004489, allocations: 7.938 kB / 0.9847 GB, free: 14.52 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.00449, allocations: 0 / 0.9847 GB, free: 14.52 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.668e-06/0.004494, allocations: 0 / 0.9847 GB, free: 14.52 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.004497, allocations: 8 kB / 0.9847 GB, free: 14.52 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.004497, allocations: 3.938 kB / 0.9847 GB, free: 14.51 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.128e-05/0.004549, allocations: 77.88 kB / 0.9847 GB, free: 14.41 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.753e-05/0.004566, allocations: 15.89 kB / 0.9848 GB, free: 14.4 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.388e-06/0.004576, allocations: 3.984 kB / 0.9848 GB, free: 14.39 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.057e-05/0.004586, allocations: 4 kB / 0.9848 GB, free: 14.39 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.217e-06/0.004595, allocations: 4.031 kB / 0.9848 GB, free: 14.39 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-06/0.004596, allocations: 0 / 0.9848 GB, free: 14.39 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.514e-05/0.004652, allocations: 122.1 kB / 0.9849 GB, free: 14.27 MB / 0.948 GB Notification: Performance of sort global known variables: time 6.1e-08/0.004652, allocations: 0 / 0.9849 GB, free: 14.27 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001216/0.004773, allocations: 11.94 kB / 0.9849 GB, free: 14.26 MB / 0.948 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.0002231/0.004996, allocations: 0.617 MB / 0.9855 GB, free: 13.61 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 6.582e-05/0.005062, allocations: 16 kB / 0.9855 GB, free: 13.59 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.005063, allocations: 4.156 kB / 0.9855 GB, free: 13.59 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.783e-06/0.00507, allocations: 7.938 kB / 0.9855 GB, free: 13.58 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001116/0.005182, allocations: 15.84 kB / 0.9855 GB, free: 13.56 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008197/0.006002, allocations: 1.331 MB / 0.9868 GB, free: 12.12 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.714e-05/0.006049, allocations: 79.31 kB / 0.9869 GB, free: 12.03 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.478e-05/0.006074, allocations: 4.625 kB / 0.9869 GB, free: 12.02 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.093e-05/0.006114, allocations: 28.48 kB / 0.9869 GB, free: 12 MB / 0.948 GB Notification: Performance of SimCode: time 5.81e-07/0.006115, allocations: 3.938 kB / 0.9869 GB, free: 11.99 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01464/0.02075, allocations: 2.225 MB / 0.9891 GB, free: 9.906 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.705/6.726, allocations: 13.17 kB / 0.9891 GB, free: 9.902 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_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: 10.74363802280277]