Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Utilities.Time.Examples.ModelTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modTim.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Time.Examples.ModelTime") translateModel(Buildings.Utilities.Time.Examples.ModelTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modTim.y",fileNamePrefix="Buildings_10_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.001516/0.001516, allocations: 106.2 kB / 16.4 MB, free: 6.512 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.001611/0.001612, allocations: 192 kB / 17.34 MB, free: 5.738 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.428/1.428, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.565/2.565, allocations: 437.1 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 63.91 kB / 1.019 GB, free: 9.449 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9396/0.9416, allocations: 151.6 MB / 1.167 GB, free: 3.832 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.ModelTime): time 0.0019/0.9435, allocations: 0.5903 MB / 1.168 GB, free: 3.242 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 4.66e-05/0.9436, allocations: 4 kB / 1.168 GB, free: 3.238 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.448e-05/0.9436, allocations: 0 / 1.168 GB, free: 3.238 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.476e-05/0.9437, allocations: 0 / 1.168 GB, free: 3.238 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.543e-06/0.9437, allocations: 0 / 1.168 GB, free: 3.238 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 5.132e-05/0.9437, allocations: 0 / 1.168 GB, free: 3.238 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.997e-05/0.9438, allocations: 3.938 kB / 1.168 GB, free: 3.234 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.886e-05/0.9439, allocations: 7.938 kB / 1.168 GB, free: 3.227 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.7e-05/0.9439, allocations: 3.938 kB / 1.168 GB, free: 3.223 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 1.963e-05/0.9439, allocations: 0 / 1.168 GB, free: 3.223 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.177e-05/0.9439, allocations: 0 / 1.168 GB, free: 3.223 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 4.658e-06/0.9439, allocations: 4 kB / 1.168 GB, free: 3.219 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.354e-05/0.944, allocations: 7.984 kB / 1.168 GB, free: 3.211 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.619e-05/0.944, allocations: 0 / 1.168 GB, free: 3.211 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 6.121e-05/0.9441, allocations: 3.984 kB / 1.168 GB, free: 3.207 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 9.287e-06/0.9441, allocations: 4 kB / 1.168 GB, free: 3.203 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.854e-06/0.9441, allocations: 0 / 1.168 GB, free: 3.203 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.9441, allocations: 0 / 1.168 GB, free: 3.203 MB / 0.8887 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.0003646/0.9445, allocations: 303.6 kB / 1.168 GB, free: 2.855 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.9445, allocations: 12.95 kB / 1.168 GB, free: 2.844 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.468e-05/0.9445, allocations: 0.9375 kB / 1.168 GB, free: 2.844 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.9447, allocations: 168.4 kB / 1.168 GB, free: 2.641 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.787e-06/0.9447, allocations: 384 / 1.168 GB, free: 2.641 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/0.9447, allocations: 384 / 1.168 GB, free: 2.641 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001184/0.9449, allocations: 34.27 kB / 1.168 GB, free: 2.602 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.9449, allocations: 192 / 1.168 GB, free: 2.602 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.9449, allocations: 3.938 kB / 1.168 GB, free: 2.598 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.9449, allocations: 0 / 1.168 GB, free: 2.598 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.888e-05/0.9449, allocations: 3.938 kB / 1.168 GB, free: 2.594 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001736/0.9451, allocations: 145.7 kB / 1.169 GB, free: 2.402 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 4.357e-05/0.9451, allocations: 18.61 kB / 1.169 GB, free: 2.375 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.941e-05/0.9452, allocations: 20.84 kB / 1.169 GB, free: 2.352 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 6.983e-06/0.9452, allocations: 0 / 1.169 GB, free: 2.352 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.9452, allocations: 34.56 kB / 1.169 GB, free: 2.309 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.9452, allocations: 0 / 1.169 GB, free: 2.309 MB / 0.8887 GB Notification: Performance of matching and sorting (n=1): time 0.0001363/0.9454, allocations: 41.53 kB / 1.169 GB, free: 2.262 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.9454, allocations: 55.53 kB / 1.169 GB, free: 2.195 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.662e-05/0.9455, allocations: 89.86 kB / 1.169 GB, free: 2.098 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.9455, allocations: 25.7 kB / 1.169 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.621e-05/0.9455, allocations: 84.14 kB / 1.169 GB, free: 1.98 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.251e-05/0.9456, allocations: 4 kB / 1.169 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-05/0.9456, allocations: 9.719 kB / 1.169 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.9458, allocations: 314.8 kB / 1.169 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.063e-05/0.9458, allocations: 4 kB / 1.169 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.378e-06/0.9458, allocations: 4 kB / 1.169 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.634e-05/0.9458, allocations: 8.859 kB / 1.169 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.9458, allocations: 0 / 1.169 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.309e-05/0.9459, allocations: 37.64 kB / 1.169 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.9459, allocations: 4 kB / 1.169 GB, free: 1.578 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.9459, allocations: 3.938 kB / 1.169 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.9459, allocations: 3.938 kB / 1.169 GB, free: 1.57 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.401e-05/0.946, allocations: 4 kB / 1.169 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.946, allocations: 96 / 1.169 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.927e-06/0.946, allocations: 4 kB / 1.169 GB, free: 1.562 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-06/0.946, allocations: 0 / 1.169 GB, free: 1.562 MB / 0.8887 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 8.964e-05/0.9461, allocations: 109.8 kB / 1.169 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.939e-06/0.9461, allocations: 4 kB / 1.169 GB, free: 1.441 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.242e-05/0.9462, allocations: 7.062 kB / 1.169 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.9462, allocations: 0 / 1.169 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.9462, allocations: 0 / 1.169 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.9462, allocations: 0 / 1.169 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.9463, allocations: 141.7 kB / 1.17 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.9463, allocations: 7.984 kB / 1.17 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.284e-05/0.9463, allocations: 4 kB / 1.17 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.9463, allocations: 0 / 1.17 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.9464, allocations: 7.938 kB / 1.17 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.9464, allocations: 0 / 1.17 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.9464, allocations: 7.875 kB / 1.17 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.303e-05/0.9464, allocations: 53.14 kB / 1.17 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 4.546e-05/0.9465, allocations: 81.14 kB / 1.17 GB, free: 1.047 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.9465, allocations: 7.922 kB / 1.17 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.312e-06/0.9465, allocations: 0 / 1.17 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.278e-05/0.9466, allocations: 3.984 kB / 1.17 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-06/0.9466, allocations: 0 / 1.17 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 4.404e-05/0.9466, allocations: 83.28 kB / 1.17 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9466, allocations: 0 / 1.17 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0001913/0.9468, allocations: 0 / 1.17 GB, free: 0.9531 MB / 0.8887 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.0001054/0.9469, allocations: 91.25 kB / 1.17 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 8.333e-05/0.947, allocations: 11.94 kB / 1.17 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.947, allocations: 0 / 1.17 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 6.372e-06/0.9471, allocations: 4 kB / 1.17 GB, free: 0.8359 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.9472, allocations: 0 / 1.17 GB, free: 0.8359 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002231/0.9474, allocations: 87.36 kB / 1.17 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.9477, allocations: 0.669 MB / 1.171 GB, free: 32 kB / 0.8887 GB Notification: Performance of simCode: alias equations: time 1.29e-05/0.9478, allocations: 0 / 1.171 GB, free: 32 kB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.745e-05/0.9478, allocations: 7.438 kB / 1.171 GB, free: 24 kB / 0.8887 GB Notification: Performance of SimCode: time 3.21e-07/0.9478, allocations: 8.125 kB / 1.171 GB, free: 16 kB / 0.8887 GB Notification: Performance of Templates: time 0.002192/0.95, allocations: 165.1 kB / 1.171 GB, free: 15.86 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Time.Examples.ModelTime.makefile (rm -f Buildings_10_Buildings.Utilities.Time.Examples.ModelTime.pipe ; mkfifo Buildings_10_Buildings.Utilities.Time.Examples.ModelTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Time.Examples.ModelTime.pipe >> ../files/Buildings_10_Buildings.Utilities.Time.Examples.ModelTime.sim & ./Buildings_10_Buildings.Utilities.Time.Examples.ModelTime -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Time.Examples.ModelTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Time.Examples.ModelTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Time_Examples_ModelTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Time.Examples.ModelTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches