Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_psi.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_psi,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_psi",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_psi,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_psi",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.0008586/0.0008584, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005017/0.005017, allocations: 170 kB / 16.26 MB, free: 6.613 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.25/1.25, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.502/2.502, allocations: 462.7 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003148/0.0003148, allocations: 8.562 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2566, allocations: 159.6 MB / 1.059 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_psi): time 0.0009147/0.2575, allocations: 0.5414 MB / 1.059 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001018/0.2577, allocations: 43.78 kB / 1.059 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.532e-05/0.2577, allocations: 0 / 1.059 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.246e-05/0.2577, allocations: 7.922 kB / 1.059 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.902e-05/0.2578, allocations: 3.938 kB / 1.059 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.052e-05/0.2579, allocations: 16 kB / 1.059 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.42e-05/0.258, allocations: 59.78 kB / 1.059 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.2581, allocations: 43.95 kB / 1.059 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.014e-05/0.2581, allocations: 19.86 kB / 1.059 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.658e-05/0.2582, allocations: 19.86 kB / 1.06 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.582e-05/0.2582, allocations: 4 kB / 1.06 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.703e-06/0.2582, allocations: 0 / 1.06 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.72e-05/0.2582, allocations: 11.88 kB / 1.06 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.189e-05/0.2583, allocations: 57.45 kB / 1.06 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.218e-05/0.2584, allocations: 67.95 kB / 1.06 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2584, allocations: 0 / 1.06 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.512e-06/0.2584, allocations: 0 / 1.06 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.176e-06/0.2584, allocations: 0 / 1.06 GB, free: 4.039 MB / 0.8106 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.0003465/0.2588, allocations: 367.3 kB / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.2588, allocations: 11.97 kB / 1.06 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.322e-05/0.2588, allocations: 38.75 kB / 1.06 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.433e-05/0.2589, allocations: 12.83 kB / 1.06 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001735/0.259, allocations: 196.2 kB / 1.06 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.446e-06/0.2591, allocations: 8.375 kB / 1.06 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.644e-05/0.2591, allocations: 8.375 kB / 1.06 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001357/0.2592, allocations: 89.36 kB / 1.06 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.2592, allocations: 3.938 kB / 1.06 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.2593, allocations: 4 kB / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.2593, allocations: 7.938 kB / 1.06 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.86e-05/0.2593, allocations: 39.91 kB / 1.06 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004555/0.2598, allocations: 432.6 kB / 1.061 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.764e-05/0.2599, allocations: 45.17 kB / 1.061 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.505e-05/0.2599, allocations: 21.84 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.639e-06/0.2599, allocations: 4 kB / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.894e-05/0.2599, allocations: 30.56 kB / 1.061 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.373e-06/0.2599, allocations: 0 / 1.061 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.000152/0.2601, allocations: 57.47 kB / 1.061 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.2602, allocations: 85.36 kB / 1.061 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.2603, allocations: 163.6 kB / 1.061 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/0.2603, allocations: 29.7 kB / 1.061 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.615e-05/0.2604, allocations: 107.9 kB / 1.061 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.843e-06/0.2604, allocations: 4 kB / 1.061 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.095e-05/0.2604, allocations: 9.719 kB / 1.061 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.582e-05/0.2605, allocations: 322.8 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.628e-05/0.2605, allocations: 4 kB / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.132e-05/0.2605, allocations: 29.59 kB / 1.062 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.893e-05/0.2606, allocations: 25.7 kB / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2606, allocations: 0 / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.585e-05/0.2607, allocations: 61.55 kB / 1.062 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.2607, allocations: 7.938 kB / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.2607, allocations: 0 / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.777e-06/0.2607, allocations: 0 / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.311e-05/0.2608, allocations: 12.06 kB / 1.062 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.2608, allocations: 7.969 kB / 1.062 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.866e-05/0.2608, allocations: 7.844 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.2608, allocations: 4 kB / 1.062 GB, free: 1.555 MB / 0.8106 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 6.134e-05/0.2609, allocations: 113.8 kB / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.366e-05/0.2609, allocations: 11.84 kB / 1.062 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.856e-05/0.261, allocations: 7.875 kB / 1.062 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.261, allocations: 4 kB / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.261, allocations: 0 / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.261, allocations: 7.984 kB / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003183/0.2613, allocations: 466.8 kB / 1.062 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2613, allocations: 3.938 kB / 1.062 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.107e-05/0.2613, allocations: 7.938 kB / 1.062 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2613, allocations: 0 / 1.062 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.2614, allocations: 4 kB / 1.062 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.2614, allocations: 0 / 1.062 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.2614, allocations: 4.062 kB / 1.062 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.9e-05/0.2614, allocations: 81.83 kB / 1.062 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/0.2615, allocations: 84.92 kB / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.093e-05/0.2615, allocations: 4 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.194e-05/0.2615, allocations: 4 kB / 1.063 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.272e-05/0.2616, allocations: 3.984 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.2616, allocations: 12.03 kB / 1.063 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.002e-05/0.2616, allocations: 114.1 kB / 1.063 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2616, allocations: 0 / 1.063 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001804/0.2618, allocations: 8 kB / 1.063 GB, free: 0.5195 MB / 0.8106 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.0003013/0.2621, allocations: 0.621 MB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.351e-05/0.2622, allocations: 19.92 kB / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2622, allocations: 0 / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.397e-06/0.2622, allocations: 8 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001511/0.2624, allocations: 4 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000996/0.2634, allocations: 1.345 MB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001979/0.2636, allocations: 0.6965 MB / 1.065 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.828e-05/0.2636, allocations: 8.438 kB / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.003e-05/0.2637, allocations: 31.36 kB / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.2637, allocations: 0 / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01813/0.2818, allocations: 1.359 MB / 1.067 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/0.282, allocations: 216.1 kB / 1.067 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.523/1.805, allocations: 2.391 kB / 1.067 GB, free: 12.16 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_psi.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_psi.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_psi.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_psi.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_psi_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_psi_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_psi.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_psi.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_psi_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_From_psi.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_psi.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches