Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.From_ton,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_9_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.007004/0.007004, allocations: 103.1 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.00131/0.00131, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.279/2.279, allocations: 390.3 MB / 0.6648 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 63.91 kB / 0.9504 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9267/0.9284, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.00178/0.9302, allocations: 0.8206 MB / 1.088 GB, free: 4.75 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0001031/0.9303, allocations: 40.94 kB / 1.088 GB, free: 4.719 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.853e-05/0.9304, allocations: 2.156 kB / 1.088 GB, free: 4.719 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.389e-05/0.9304, allocations: 13.56 kB / 1.088 GB, free: 4.707 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.604e-05/0.9305, allocations: 13.69 kB / 1.088 GB, free: 4.695 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 5.206e-05/0.9305, allocations: 16.34 kB / 1.088 GB, free: 4.688 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.786e-05/0.9306, allocations: 58.27 kB / 1.088 GB, free: 4.66 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.9308, allocations: 45.66 kB / 1.088 GB, free: 4.637 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.633e-05/0.9308, allocations: 26.3 kB / 1.088 GB, free: 4.621 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.995e-05/0.9309, allocations: 30.12 kB / 1.089 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.9309, allocations: 5.344 kB / 1.089 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.016e-05/0.9309, allocations: 6.156 kB / 1.089 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.004e-05/0.9309, allocations: 17.42 kB / 1.089 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.493e-05/0.931, allocations: 32.89 kB / 1.089 GB, free: 4.566 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.9311, allocations: 77.94 kB / 1.089 GB, free: 4.531 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.9311, allocations: 1.125 kB / 1.089 GB, free: 4.531 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.853e-06/0.9311, allocations: 0 / 1.089 GB, free: 4.531 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.9311, allocations: 0 / 1.089 GB, free: 4.531 MB / 0.8575 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.0003301/0.9315, allocations: 385.3 kB / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.9315, allocations: 9.281 kB / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.735e-05/0.9315, allocations: 38.92 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.867e-05/0.9316, allocations: 17.11 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.9317, allocations: 192.8 kB / 1.089 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.9317, allocations: 7.531 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.525e-05/0.9318, allocations: 6.25 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/0.9319, allocations: 94.53 kB / 1.089 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.9319, allocations: 7.875 kB / 1.089 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-06/0.9319, allocations: 5.094 kB / 1.089 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.9319, allocations: 2.125 kB / 1.089 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.195e-05/0.932, allocations: 32.22 kB / 1.089 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004274/0.9325, allocations: 441.5 kB / 1.09 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.625e-05/0.9325, allocations: 50.95 kB / 1.09 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.192e-05/0.9326, allocations: 19.62 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.9326, allocations: 1.094 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.632e-05/0.9326, allocations: 36.38 kB / 1.09 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.9326, allocations: 0 / 1.09 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001573/0.9328, allocations: 57.48 kB / 1.09 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.548e-05/0.9328, allocations: 82.27 kB / 1.09 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.9329, allocations: 158.1 kB / 1.09 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.957e-06/0.933, allocations: 25.7 kB / 1.09 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.88e-05/0.933, allocations: 107.5 kB / 1.09 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.008e-05/0.933, allocations: 6.969 kB / 1.09 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.247e-05/0.9331, allocations: 13.22 kB / 1.09 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.93e-05/0.9332, allocations: 323.6 kB / 1.091 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.189e-05/0.9332, allocations: 8.484 kB / 1.091 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.189e-05/0.9332, allocations: 19.67 kB / 1.091 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.684e-05/0.9333, allocations: 23.77 kB / 1.091 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.9333, allocations: 1.094 kB / 1.091 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.366e-05/0.9334, allocations: 60.33 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.9334, allocations: 12.31 kB / 1.091 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.9334, allocations: 1.156 kB / 1.091 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.9334, allocations: 0.9688 kB / 1.091 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.922e-05/0.9335, allocations: 10.27 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.9335, allocations: 1.703 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.928e-05/0.9335, allocations: 10.03 kB / 1.091 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-06/0.9335, allocations: 1.438 kB / 1.091 GB, free: 2.402 MB / 0.8575 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.992e-05/0.9336, allocations: 113.7 kB / 1.091 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.9337, allocations: 16.72 kB / 1.091 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.281e-05/0.9338, allocations: 11.86 kB / 1.091 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.9338, allocations: 1.875 kB / 1.091 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.9338, allocations: 0 / 1.091 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.9338, allocations: 1.375 kB / 1.091 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002796/0.9341, allocations: 470.7 kB / 1.091 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.9341, allocations: 1.25 kB / 1.091 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.937e-05/0.9341, allocations: 7.016 kB / 1.091 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.9341, allocations: 1.438 kB / 1.091 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-06/0.9341, allocations: 4.625 kB / 1.091 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.9341, allocations: 1.547 kB / 1.091 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.9341, allocations: 1.125 kB / 1.091 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.275e-05/0.9342, allocations: 84.61 kB / 1.091 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.184e-05/0.9343, allocations: 90.3 kB / 1.092 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.9343, allocations: 4.781 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.511e-05/0.9343, allocations: 1.609 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.856e-05/0.9344, allocations: 1.891 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.9344, allocations: 5.031 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.474e-05/0.9345, allocations: 121.5 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9345, allocations: 0 / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001846/0.9347, allocations: 11.38 kB / 1.092 GB, free: 1.48 MB / 0.8575 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.0003438/0.935, allocations: 0.6137 MB / 1.092 GB, free: 16.87 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 8.629e-05/0.9351, allocations: 20.7 kB / 1.092 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.9351, allocations: 0 / 1.092 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.274e-05/0.9351, allocations: 8.672 kB / 1.092 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001551/0.9353, allocations: 17.55 kB / 1.092 GB, free: 16.85 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.9364, allocations: 1.323 MB / 1.094 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.9366, allocations: 0.6962 MB / 1.094 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.561e-05/0.9367, allocations: 11.7 kB / 1.094 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/0.9367, allocations: 24.86 kB / 1.094 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.9367, allocations: 1.094 kB / 1.094 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.9531, allocations: 1.581 MB / 1.096 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.72/8.673, allocations: 9.75 kB / 1.096 GB, free: 14.52 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_ton.fmu > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches