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.009238/0.009238, allocations: 107.4 kB / 15.74 MB, free: 5.996 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.001457/0.001457, allocations: 197 kB / 16.67 MB, free: 5.918 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.607/2.607, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 60.12 kB / 1.054 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8524/0.8538, allocations: 157.4 MB / 1.207 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.ModelTime): time 0.001725/0.8556, allocations: 0.5918 MB / 1.208 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 4.103e-05/0.8556, allocations: 7.969 kB / 1.208 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.967e-05/0.8557, allocations: 4 kB / 1.208 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.288e-05/0.8557, allocations: 0 / 1.208 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.306e-06/0.8557, allocations: 0 / 1.208 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 3.798e-05/0.8558, allocations: 0 / 1.208 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 4.51e-05/0.8558, allocations: 4 kB / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.864e-05/0.8559, allocations: 4 kB / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 1.116e-05/0.8559, allocations: 0 / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 1.774e-05/0.8559, allocations: 3.938 kB / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.186e-05/0.8559, allocations: 0 / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.429e-06/0.8559, allocations: 0 / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.118e-05/0.856, allocations: 3.938 kB / 1.208 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 1.794e-05/0.856, allocations: 4 kB / 1.208 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 4.965e-05/0.856, allocations: 0 / 1.208 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.856, allocations: 4 kB / 1.208 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.383e-06/0.8561, allocations: 0 / 1.208 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.8561, allocations: 0 / 1.208 GB, free: 12.96 MB / 0.9356 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.0002694/0.8563, allocations: 311.5 kB / 1.208 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.8564, allocations: 12.06 kB / 1.208 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.945e-05/0.8564, allocations: 30.75 kB / 1.208 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.74e-05/0.8564, allocations: 0.9375 kB / 1.208 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.916e-05/0.8565, allocations: 160.4 kB / 1.208 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-06/0.8566, allocations: 8.312 kB / 1.208 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.821e-06/0.8566, allocations: 384 / 1.208 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.414e-05/0.8566, allocations: 30.27 kB / 1.208 GB, free: 12.32 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.8567, allocations: 3.938 kB / 1.208 GB, free: 12.32 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.911e-06/0.8567, allocations: 0 / 1.208 GB, free: 12.32 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-06/0.8567, allocations: 0 / 1.208 GB, free: 12.32 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.721e-05/0.8567, allocations: 7.922 kB / 1.208 GB, free: 12.31 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001391/0.8568, allocations: 149.7 kB / 1.209 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 3.734e-05/0.8569, allocations: 18.58 kB / 1.209 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.303e-05/0.8569, allocations: 8.953 kB / 1.209 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.688e-06/0.8569, allocations: 0 / 1.209 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.857, allocations: 38.5 kB / 1.209 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.857, allocations: 0 / 1.209 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001106/0.8571, allocations: 45.56 kB / 1.209 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.626e-05/0.8571, allocations: 55.53 kB / 1.209 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.307e-05/0.8572, allocations: 93.86 kB / 1.209 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.8572, allocations: 25.7 kB / 1.209 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.231e-05/0.8572, allocations: 80.14 kB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.197e-05/0.8573, allocations: 0 / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.487e-05/0.8573, allocations: 9.719 kB / 1.209 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.8574, allocations: 314.8 kB / 1.209 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.697e-06/0.8574, allocations: 0 / 1.209 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.04e-06/0.8574, allocations: 0 / 1.209 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.742e-05/0.8575, allocations: 16.92 kB / 1.209 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.8575, allocations: 0 / 1.209 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.385e-05/0.8575, allocations: 41.53 kB / 1.209 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.8576, allocations: 4 kB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.8576, allocations: 3.938 kB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.8576, allocations: 4 kB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.751e-05/0.8576, allocations: 0 / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.8576, allocations: 0 / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.698e-06/0.8577, allocations: 0 / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-06/0.8577, allocations: 4.031 kB / 1.209 GB, free: 11.28 MB / 0.9356 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 6.773e-05/0.8577, allocations: 109.8 kB / 1.209 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.731e-06/0.8577, allocations: 0 / 1.209 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.73e-05/0.8578, allocations: 11.06 kB / 1.209 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.8578, allocations: 3.984 kB / 1.209 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.8578, allocations: 0 / 1.209 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.8578, allocations: 3.984 kB / 1.209 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.176e-05/0.8579, allocations: 151.9 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.8579, allocations: 0 / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.104e-05/0.8579, allocations: 4 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.8579, allocations: 3.938 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-06/0.8579, allocations: 3.938 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.8579, allocations: 0 / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.8579, allocations: 4 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.514e-05/0.858, allocations: 61.06 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.121e-05/0.8581, allocations: 81.05 kB / 1.21 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.04e-05/0.8581, allocations: 3.938 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.994e-06/0.8581, allocations: 4.031 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.09e-05/0.8581, allocations: 4 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-06/0.8581, allocations: 0 / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 2.59e-05/0.8581, allocations: 75.28 kB / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.8581, allocations: 0 / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0001872/0.8583, allocations: 0 / 1.21 GB, free: 10.67 MB / 0.9356 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.0003251/0.8587, allocations: 0.5968 MB / 1.21 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 6.224e-05/0.8587, allocations: 4 kB / 1.21 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.8587, allocations: 0 / 1.21 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.933e-06/0.8588, allocations: 4 kB / 1.21 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001291/0.8589, allocations: 7.984 kB / 1.21 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002678/0.8592, allocations: 98.59 kB / 1.21 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.8594, allocations: 0.673 MB / 1.211 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.184e-05/0.8594, allocations: 0 / 1.211 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.02e-05/0.8595, allocations: 7.438 kB / 1.211 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of SimCode: time 1.913e-06/0.8595, allocations: 0 / 1.211 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01726/0.8767, allocations: 0.8908 MB / 1.212 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.511/8.388, allocations: 0 / 1.212 GB, free: 8.367 MB / 0.9356 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) Reference file matches