Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 110.8 kB / 17.54 MB, free: 4.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 189.9 kB / 20.71 MB, free: 1.484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 225.6 MB / 249.3 MB, free: 3.176 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.46/2.46, allocations: 476.7 MB / 0.7628 GB, free: 15.15 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.To_ton,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 63.89 kB / 1.107 GB, free: 5.145 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8357/0.8375, allocations: 168.7 MB / 1.271 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001778/0.8392, allocations: 0.8496 MB / 1.272 GB, free: 7.164 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 8.859e-05/0.8393, allocations: 40.02 kB / 1.272 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.813e-05/0.8394, allocations: 2.094 kB / 1.272 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.026e-05/0.8394, allocations: 9.891 kB / 1.272 GB, free: 7.125 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.811e-05/0.8395, allocations: 13.88 kB / 1.272 GB, free: 7.113 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 4.116e-05/0.8395, allocations: 16.5 kB / 1.272 GB, free: 7.105 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.646e-05/0.8396, allocations: 63.59 kB / 1.272 GB, free: 7.074 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.8397, allocations: 30.67 kB / 1.272 GB, free: 7.059 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.742e-05/0.8398, allocations: 26.86 kB / 1.272 GB, free: 7.043 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.512e-05/0.8398, allocations: 37.58 kB / 1.272 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.793e-05/0.8398, allocations: 6.688 kB / 1.272 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.253e-05/0.8399, allocations: 5.562 kB / 1.272 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.876e-05/0.8399, allocations: 16.73 kB / 1.272 GB, free: 7.004 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.205e-05/0.8399, allocations: 32.28 kB / 1.273 GB, free: 6.98 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001131/0.84, allocations: 73.12 kB / 1.273 GB, free: 6.949 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.84, allocations: 1.531 kB / 1.273 GB, free: 6.949 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.903e-06/0.84, allocations: 0 / 1.273 GB, free: 6.949 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.588e-06/0.84, allocations: 0 / 1.273 GB, free: 6.949 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.0003447/0.8404, allocations: 381.1 kB / 1.273 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.8404, allocations: 9.844 kB / 1.273 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.351e-05/0.8405, allocations: 42.06 kB / 1.273 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.739e-05/0.8405, allocations: 18.16 kB / 1.273 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.8406, allocations: 196.4 kB / 1.273 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.8407, allocations: 7.641 kB / 1.273 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.314e-05/0.8407, allocations: 9.5 kB / 1.273 GB, free: 6.277 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001486/0.8408, allocations: 90.95 kB / 1.273 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.8408, allocations: 3.938 kB / 1.273 GB, free: 6.207 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.829e-06/0.8408, allocations: 9.031 kB / 1.273 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.8408, allocations: 1.969 kB / 1.273 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.916e-05/0.8409, allocations: 36.64 kB / 1.273 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004441/0.8414, allocations: 442.1 kB / 1.274 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.072e-05/0.8414, allocations: 37.55 kB / 1.274 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.176e-05/0.8414, allocations: 19.52 kB / 1.274 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.085e-06/0.8414, allocations: 5.469 kB / 1.274 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.8415, allocations: 31.44 kB / 1.274 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.8415, allocations: 0.6562 kB / 1.274 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001523/0.8416, allocations: 65.02 kB / 1.274 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/0.8416, allocations: 78.53 kB / 1.274 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/0.8418, allocations: 158.8 kB / 1.274 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.681e-06/0.8418, allocations: 25.7 kB / 1.274 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.321e-05/0.8418, allocations: 108.6 kB / 1.274 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 8.316e-06/0.8418, allocations: 8.219 kB / 1.274 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/0.8419, allocations: 12.94 kB / 1.274 GB, free: 5.242 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.201e-05/0.8419, allocations: 320.5 kB / 1.275 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.73e-05/0.8419, allocations: 11.06 kB / 1.275 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.908e-05/0.8419, allocations: 18.78 kB / 1.275 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.792e-05/0.842, allocations: 29.44 kB / 1.275 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.842, allocations: 0 / 1.275 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.071e-05/0.842, allocations: 51.77 kB / 1.275 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.8421, allocations: 11.34 kB / 1.275 GB, free: 4.832 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.8421, allocations: 4.781 kB / 1.275 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.8421, allocations: 1.531 kB / 1.275 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.138e-05/0.8421, allocations: 14.3 kB / 1.275 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.8421, allocations: 0.6875 kB / 1.275 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.836e-05/0.8422, allocations: 6.719 kB / 1.275 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.8422, allocations: 1.469 kB / 1.275 GB, free: 4.816 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 4.699e-05/0.8422, allocations: 114.8 kB / 1.275 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.183e-05/0.8423, allocations: 15.72 kB / 1.275 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.349e-05/0.8423, allocations: 9.234 kB / 1.275 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.8423, allocations: 4.75 kB / 1.275 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.8423, allocations: 0.7812 kB / 1.275 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.8423, allocations: 0.9688 kB / 1.275 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002601/0.8426, allocations: 470.7 kB / 1.275 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.8426, allocations: 0.9688 kB / 1.275 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.769e-05/0.8426, allocations: 7.375 kB / 1.275 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.8426, allocations: 3.281 kB / 1.275 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.581e-06/0.8426, allocations: 5.188 kB / 1.275 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.8426, allocations: 0.8438 kB / 1.275 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.8426, allocations: 4.938 kB / 1.275 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.121e-05/0.8427, allocations: 82.42 kB / 1.275 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.048e-05/0.8427, allocations: 85.77 kB / 1.276 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.8427, allocations: 2.219 kB / 1.276 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.076e-05/0.8427, allocations: 8.891 kB / 1.276 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.199e-05/0.8427, allocations: 3.422 kB / 1.276 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.8427, allocations: 1.812 kB / 1.276 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.252e-05/0.8428, allocations: 120.4 kB / 1.276 GB, free: 3.898 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6.1e-08/0.8428, allocations: 0 / 1.276 GB, free: 3.898 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001788/0.843, allocations: 10.84 kB / 1.276 GB, free: 3.895 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.0002498/0.8432, allocations: 0.6185 MB / 1.276 GB, free: 3.277 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 8.59e-05/0.8433, allocations: 17.62 kB / 1.276 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.8433, allocations: 0 / 1.276 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.145e-05/0.8433, allocations: 11.69 kB / 1.276 GB, free: 3.266 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001479/0.8435, allocations: 11.34 kB / 1.276 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000976/0.8445, allocations: 1.328 MB / 1.278 GB, free: 18.04 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.8448, allocations: 0.6935 MB / 1.278 GB, free: 17.34 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.229e-05/0.8448, allocations: 7.453 kB / 1.278 GB, free: 17.34 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.131e-05/0.8448, allocations: 24.33 kB / 1.278 GB, free: 17.32 MB / 1.014 GB Notification: Performance of SimCode: time 3.11e-07/0.8448, allocations: 7.938 kB / 1.278 GB, free: 17.31 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02183/0.8667, allocations: 1.564 MB / 1.28 GB, free: 16.93 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.774/7.641, allocations: 6.109 kB / 1.28 GB, free: 16.93 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 12.929640004000248]