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.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: translateModel(Buildings.Utilities.Time.Examples.ModelTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modTim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime") translateModel(Buildings.Utilities.Time.Examples.ModelTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modTim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.00127/0.00127, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.923/2.923, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003997/0.0004, allocations: 8.312 kB / 0.9021 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3889, allocations: 159.6 MB / 1.058 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.ModelTime): time 0.0009472/0.3899, allocations: 315.5 kB / 1.058 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 4.436e-05/0.3899, allocations: 3.938 kB / 1.058 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.47e-05/0.39, allocations: 0 / 1.058 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.637e-05/0.39, allocations: 3.938 kB / 1.058 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.165e-06/0.39, allocations: 0 / 1.058 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.285e-05/0.3901, allocations: 7.984 kB / 1.058 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.03e-05/0.3901, allocations: 8 kB / 1.058 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.114e-05/0.3902, allocations: 0 / 1.058 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.748e-05/0.3902, allocations: 0 / 1.058 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.084e-05/0.3902, allocations: 0 / 1.058 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.412e-05/0.3903, allocations: 0 / 1.058 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.857e-06/0.3903, allocations: 0 / 1.058 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.285e-06/0.3903, allocations: 0 / 1.058 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.458e-05/0.3903, allocations: 29.7 kB / 1.058 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 4.757e-05/0.3904, allocations: 0 / 1.058 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.3904, allocations: 0 / 1.058 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.747e-06/0.3904, allocations: 0 / 1.058 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.3904, allocations: 7.938 kB / 1.058 GB, free: 5.016 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.0002702/0.3907, allocations: 311.3 kB / 1.059 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.554e-05/0.3908, allocations: 12.09 kB / 1.059 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.161e-05/0.3908, allocations: 0 / 1.059 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001598/0.391, allocations: 163 kB / 1.059 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.391, allocations: 0 / 1.059 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.391, allocations: 3.953 kB / 1.059 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.668e-05/0.3911, allocations: 33.7 kB / 1.059 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.3911, allocations: 0 / 1.059 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.3911, allocations: 4 kB / 1.059 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.3911, allocations: 0 / 1.059 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.038e-05/0.3912, allocations: 0 / 1.059 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002234/0.3914, allocations: 145.7 kB / 1.059 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.121e-05/0.3915, allocations: 22.55 kB / 1.059 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.015e-05/0.3915, allocations: 12.92 kB / 1.059 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.3915, allocations: 3.953 kB / 1.059 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.959e-05/0.3916, allocations: 34.56 kB / 1.059 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.3916, allocations: 0 / 1.059 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001493/0.3918, allocations: 29.7 kB / 1.059 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.3918, allocations: 51.41 kB / 1.059 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.562e-05/0.3919, allocations: 89.86 kB / 1.059 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.3919, allocations: 29.69 kB / 1.059 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.322e-05/0.3919, allocations: 80.14 kB / 1.059 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.161e-05/0.392, allocations: 12.05 kB / 1.059 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-06/0.392, allocations: 8 kB / 1.059 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3922, allocations: 310.8 kB / 1.06 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.358e-06/0.3922, allocations: 0 / 1.06 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.183e-06/0.3922, allocations: 0 / 1.06 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.599e-05/0.3922, allocations: 7.938 kB / 1.06 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3922, allocations: 0 / 1.06 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.048e-05/0.3923, allocations: 29.7 kB / 1.06 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.3923, allocations: 9.828 kB / 1.06 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.3923, allocations: 4.094 kB / 1.06 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.3924, allocations: 4 kB / 1.06 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.898e-05/0.3924, allocations: 3.984 kB / 1.06 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.3925, allocations: 0 / 1.06 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.237e-05/0.3925, allocations: 7.938 kB / 1.06 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.3925, allocations: 0 / 1.06 GB, free: 3.406 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.332e-05/0.3926, allocations: 117.8 kB / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-06/0.3926, allocations: 3.938 kB / 1.06 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.014e-05/0.3926, allocations: 7.078 kB / 1.06 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3926, allocations: 4 kB / 1.06 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3927, allocations: 3.984 kB / 1.06 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.3927, allocations: 0 / 1.06 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001238/0.3928, allocations: 145.7 kB / 1.06 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3928, allocations: 4 kB / 1.06 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.707e-05/0.3928, allocations: 0 / 1.06 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.3928, allocations: 0 / 1.06 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.3928, allocations: 0 / 1.06 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.3929, allocations: 3.953 kB / 1.06 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3929, allocations: 0 / 1.06 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.055e-05/0.393, allocations: 61.14 kB / 1.06 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.733e-05/0.393, allocations: 81.09 kB / 1.06 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.393, allocations: 0 / 1.06 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.225e-06/0.3931, allocations: 0 / 1.06 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.806e-05/0.3931, allocations: 3.953 kB / 1.06 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.3931, allocations: 4 kB / 1.06 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.795e-05/0.3931, allocations: 79.22 kB / 1.06 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of sort global known variables: time 9e-08/0.3931, allocations: 0 / 1.06 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002205/0.3934, allocations: 4.031 kB / 1.06 GB, free: 2.801 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001313/0.3935, allocations: 91.53 kB / 1.06 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 8.393e-05/0.3936, allocations: 4 kB / 1.06 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3936, allocations: 0 / 1.06 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.581e-05/0.3936, allocations: 8 kB / 1.06 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001572/0.3938, allocations: 0 / 1.06 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002725/0.3941, allocations: 90.66 kB / 1.06 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.3945, allocations: 0.6731 MB / 1.061 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.408e-05/0.3945, allocations: 0 / 1.061 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.557e-05/0.3945, allocations: 7.438 kB / 1.061 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of SimCode: time 9.12e-07/0.3945, allocations: 3.938 kB / 1.061 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of Templates: time 0.002201/0.3967, allocations: 152.4 kB / 1.061 GB, free: 1.711 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime.makefile (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 & ./Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.ModelTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches