Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Time.Examples.ModelTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Time.Examples.ModelTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modTim.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Time.Examples.ModelTime") translateModel(Buildings.Utilities.Time.Examples.ModelTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modTim.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Time.Examples.ModelTime") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.963/1.963, allocations: 387.2 MB / 394.5 MB, free: 13.73 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 185.2 kB / 487 MB, free: 5.398 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 221.3 MB / 0.7819 GB, free: 1.402 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 99.12 kB / 0.9213 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.622e-06/6.652e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.283, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7478/1.031, allocations: 147.7 MB / 1.349 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/1.031, allocations: 72.56 kB / 1.35 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.0004285/1.032, allocations: 53.02 kB / 1.35 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 9.287e-06/1.032, allocations: 0 / 1.35 GB, free: 15.98 MB / 0.8073 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.0002178/1.032, allocations: 306.6 kB / 1.35 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/1.032, allocations: 9.062 kB / 1.35 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.153e-05/1.032, allocations: 1.828 kB / 1.35 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.376e-05/1.032, allocations: 169.2 kB / 1.35 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/1.032, allocations: 0.6562 kB / 1.35 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/1.032, allocations: 3.906 kB / 1.35 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.307e-05/1.032, allocations: 4.656 kB / 1.35 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.964e-05/1.032, allocations: 32.72 kB / 1.35 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/1.032, allocations: 0 / 1.35 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.764e-06/1.032, allocations: 0 / 1.35 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/1.032, allocations: 1.188 kB / 1.35 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001029/1.032, allocations: 124.9 kB / 1.35 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 3.076e-05/1.032, allocations: 15.73 kB / 1.35 GB, free: 15.22 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.689e-05/1.032, allocations: 15.3 kB / 1.35 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/1.032, allocations: 4 kB / 1.35 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/1.033, allocations: 33.12 kB / 1.35 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/1.033, allocations: 0 / 1.35 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1): time 0.0001071/1.033, allocations: 32.52 kB / 1.35 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.253e-05/1.033, allocations: 52.81 kB / 1.35 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.276e-05/1.033, allocations: 86.75 kB / 1.35 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 6.272e-06/1.033, allocations: 25.7 kB / 1.35 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.316e-05/1.033, allocations: 80.14 kB / 1.351 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/1.033, allocations: 4.031 kB / 1.351 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.674e-06/1.033, allocations: 1.25 kB / 1.351 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.799e-05/1.033, allocations: 319 kB / 1.351 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.833e-06/1.033, allocations: 1.594 kB / 1.351 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.228e-06/1.033, allocations: 0 / 1.351 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.423e-05/1.033, allocations: 1.656 kB / 1.351 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/1.033, allocations: 0 / 1.351 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.676e-05/1.033, allocations: 41.58 kB / 1.351 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/1.033, allocations: 8.656 kB / 1.351 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/1.033, allocations: 0 / 1.351 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/1.033, allocations: 1.406 kB / 1.351 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.416e-05/1.033, allocations: 3.359 kB / 1.351 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/1.033, allocations: 0.75 kB / 1.351 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.057e-05/1.033, allocations: 0 / 1.351 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/1.033, allocations: 0 / 1.351 GB, free: 14.5 MB / 0.8073 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 () * 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 4.342e-05/1.033, allocations: 102.7 kB / 1.351 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.033e-06/1.033, allocations: 5.172 kB / 1.351 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.198e-05/1.033, allocations: 8.688 kB / 1.351 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.92e-07/1.033, allocations: 0 / 1.351 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/1.033, allocations: 0 / 1.351 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/1.033, allocations: 3.938 kB / 1.351 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.394e-05/1.033, allocations: 130.2 kB / 1.351 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/1.033, allocations: 0 / 1.351 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.656e-06/1.033, allocations: 1.031 kB / 1.351 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/1.033, allocations: 1.969 kB / 1.351 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/1.033, allocations: 6.594 kB / 1.351 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.51e-07/1.033, allocations: 0 / 1.351 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.033, allocations: 1.5 kB / 1.351 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 5.229e-05/1.033, allocations: 64.3 kB / 1.351 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.914e-05/1.033, allocations: 77.11 kB / 1.351 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/1.033, allocations: 1.969 kB / 1.351 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.407e-06/1.033, allocations: 5.359 kB / 1.351 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.097e-06/1.033, allocations: 0 / 1.351 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-06/1.033, allocations: 5.969 kB / 1.351 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.239e-05/1.033, allocations: 75.28 kB / 1.351 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000228/1.034, allocations: 4.031 kB / 1.351 GB, free: 13.98 MB / 0.8073 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 () * 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 8.534e-05/1.034, allocations: 95.67 kB / 1.351 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 5.186e-05/1.034, allocations: 6.156 kB / 1.351 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/1.034, allocations: 1.281 kB / 1.351 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.382e-06/1.034, allocations: 5.188 kB / 1.351 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.822e-05/1.034, allocations: 1.25 kB / 1.351 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001355/1.034, allocations: 40.08 kB / 1.351 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002239/1.034, allocations: 0.6867 MB / 1.352 GB, free: 29.12 MB / 0.823 GB Notification: Performance of SimCode: time 2.41e-07/1.034, allocations: 0 / 1.352 GB, free: 29.12 MB / 0.823 GB Notification: Performance of Templates: time 0.001499/1.036, allocations: 158.6 kB / 1.352 GB, free: 29.09 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Utilities.Time.Examples.ModelTime.makefile (rm -f Buildings_9_Buildings.Utilities.Time.Examples.ModelTime.pipe ; mkfifo Buildings_9_Buildings.Utilities.Time.Examples.ModelTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Time.Examples.ModelTime.pipe >> ../files/Buildings_9_Buildings.Utilities.Time.Examples.ModelTime.sim & ./Buildings_9_Buildings.Utilities.Time.Examples.ModelTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Time.Examples.ModelTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Examples.ModelTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Time_Examples_ModelTime.csv","../files/Buildings_9_Buildings.Utilities.Time.Examples.ModelTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches