Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Utilities.Time.Examples.ModelTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_ModelTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.ModelTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_ModelTime",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.002491/0.002491, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.003922/0.003922, allocations: 191 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.155/2.155, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.6/3.6, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 64.41 kB / 0.8987 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4127/0.4142, allocations: 157.4 MB / 1.052 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.ModelTime): time 0.002454/0.4167, allocations: 0.6625 MB / 1.053 GB, free: 8 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 5.048e-05/0.4168, allocations: 7.984 kB / 1.053 GB, free: 7.992 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.866e-05/0.4168, allocations: 0 / 1.053 GB, free: 7.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.258e-05/0.4169, allocations: 0 / 1.053 GB, free: 7.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.021e-06/0.4169, allocations: 4 kB / 1.053 GB, free: 7.988 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.685e-05/0.417, allocations: 0 / 1.053 GB, free: 7.988 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.206e-05/0.417, allocations: 4 kB / 1.053 GB, free: 7.984 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.266e-05/0.4171, allocations: 4 kB / 1.053 GB, free: 7.98 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.957e-05/0.4171, allocations: 7.984 kB / 1.053 GB, free: 7.973 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.139e-05/0.4171, allocations: 0 / 1.053 GB, free: 7.973 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.4172, allocations: 0 / 1.053 GB, free: 7.973 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.288e-06/0.4172, allocations: 0 / 1.053 GB, free: 7.973 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.295e-05/0.4172, allocations: 0 / 1.053 GB, free: 7.973 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.837e-05/0.4172, allocations: 0 / 1.053 GB, free: 7.973 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.15e-05/0.4173, allocations: 0 / 1.053 GB, free: 7.973 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4173, allocations: 4 kB / 1.053 GB, free: 7.969 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.164e-06/0.4173, allocations: 4 kB / 1.053 GB, free: 7.965 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.4173, allocations: 0 / 1.053 GB, free: 7.965 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003293/0.4177, allocations: 303.6 kB / 1.053 GB, free: 7.617 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.584e-05/0.4177, allocations: 12.66 kB / 1.053 GB, free: 7.605 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.537e-05/0.4178, allocations: 30.75 kB / 1.053 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.956e-05/0.4178, allocations: 8.859 kB / 1.053 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001272/0.4179, allocations: 168.3 kB / 1.054 GB, free: 7.355 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.418, allocations: 384 / 1.054 GB, free: 7.355 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.437e-06/0.418, allocations: 384 / 1.054 GB, free: 7.355 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.4181, allocations: 34.27 kB / 1.054 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.4181, allocations: 7.922 kB / 1.054 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-06/0.4181, allocations: 0 / 1.054 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.4181, allocations: 0 / 1.054 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.137e-05/0.4182, allocations: 0 / 1.054 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001854/0.4184, allocations: 149.7 kB / 1.054 GB, free: 7.113 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.339e-05/0.4184, allocations: 22.52 kB / 1.054 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.366e-05/0.4185, allocations: 12.95 kB / 1.054 GB, free: 7.066 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.4185, allocations: 0 / 1.054 GB, free: 7.066 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.422e-05/0.4185, allocations: 34.56 kB / 1.054 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.4185, allocations: 0 / 1.054 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001699/0.4187, allocations: 37.58 kB / 1.054 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.4188, allocations: 51.41 kB / 1.054 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.787e-05/0.4188, allocations: 93.86 kB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.4188, allocations: 33.77 kB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.082e-05/0.4189, allocations: 84.14 kB / 1.054 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.917e-05/0.4189, allocations: 3.984 kB / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.85e-05/0.4189, allocations: 9.719 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.4191, allocations: 310.8 kB / 1.054 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.319e-05/0.4191, allocations: 8 kB / 1.054 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.604e-06/0.4191, allocations: 0 / 1.054 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.724e-05/0.4192, allocations: 12.86 kB / 1.054 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4192, allocations: 4.062 kB / 1.054 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.593e-05/0.4192, allocations: 29.7 kB / 1.054 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.4193, allocations: 4 kB / 1.054 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.4193, allocations: 3.938 kB / 1.054 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.4193, allocations: 0 / 1.054 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.353e-05/0.4194, allocations: 11.92 kB / 1.054 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.4194, allocations: 0 / 1.054 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.102e-05/0.4194, allocations: 0 / 1.054 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.4194, allocations: 0 / 1.054 GB, free: 6.277 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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 7.822e-05/0.4195, allocations: 115.4 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.504e-06/0.4195, allocations: 3.938 kB / 1.055 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.18e-05/0.4195, allocations: 7.062 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.4195, allocations: 0 / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4195, allocations: 0 / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.4196, allocations: 0 / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.87e-05/0.4197, allocations: 150 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.4197, allocations: 4 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.464e-05/0.4197, allocations: 0 / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.4197, allocations: 0 / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.4197, allocations: 7.938 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.4197, allocations: 0 / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4197, allocations: 0 / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.246e-05/0.4198, allocations: 65.06 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/0.4199, allocations: 77.11 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.4199, allocations: 3.938 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.995e-06/0.4199, allocations: 0 / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.233e-05/0.4199, allocations: 0 / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.4199, allocations: 8.031 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.234e-05/0.42, allocations: 75.28 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.42, allocations: 0 / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002261/0.4202, allocations: 0 / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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.0003836/0.4206, allocations: 0.6006 MB / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 8.998e-05/0.4207, allocations: 7.938 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4207, allocations: 0 / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.491e-06/0.4207, allocations: 0 / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000161/0.4209, allocations: 5.406 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003285/0.4212, allocations: 106.6 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.4215, allocations: 0.6729 MB / 1.056 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.597e-05/0.4215, allocations: 0 / 1.056 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.329e-05/0.4215, allocations: 11.56 kB / 1.056 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.4215, allocations: 0 / 1.056 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3432/0.7647, allocations: 0.7972 MB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000303/0.765, allocations: 194.7 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.528/3.293, allocations: 5.812 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB (rm -f Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Time_Examples_ModelTime_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Time_Examples_ModelTime.fmu > Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_ModelTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,modTim.y Variables in the result:modTim.y,time