Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.SmoothMin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin") translateModel(BuildingSystems.Utilities.Math.Examples.SmoothMin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7242/0.7242, allocations: 141.8 MB / 149.1 MB, free: 2.48 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001044/0.001045, allocations: 186.9 kB / 182 MB, free: 14.45 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 221.4 MB / 436 MB, free: 7.391 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 96.62 kB / 0.507 GB, free: 24.44 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001837/0.001837, allocations: 280.3 kB / 0.5885 GB, free: 10.64 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.061e-05/1.07e-05, allocations: 7.938 kB / 0.6759 GB, free: 0.9961 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4685/0.4685, allocations: 82.76 MB / 0.7567 GB, free: 111.3 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.5942, allocations: 108 MB / 0.8622 GB, free: 3.117 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002213/0.5945, allocations: 75.89 kB / 0.8623 GB, free: 3.043 MB / 0.5263 GB Notification: Performance of FrontEnd: time 0.003214/0.5977, allocations: 0.8675 MB / 0.8632 GB, free: 2.199 MB / 0.5263 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.5977, allocations: 0 / 0.8632 GB, free: 2.199 MB / 0.5263 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003114/0.5981, allocations: 349.8 kB / 0.8635 GB, free: 1.816 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.5981, allocations: 13.03 kB / 0.8635 GB, free: 1.805 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008407/0.599, allocations: 173.3 kB / 0.8637 GB, free: 1.645 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.5991, allocations: 172.3 kB / 0.8638 GB, free: 1.438 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.5991, allocations: 0 / 0.8638 GB, free: 1.438 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.592e-05/0.5992, allocations: 4 kB / 0.8638 GB, free: 1.434 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000218/0.5994, allocations: 121 kB / 0.8639 GB, free: 1.316 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001661/0.5996, allocations: 114.9 kB / 0.8641 GB, free: 1.199 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.5996, allocations: 0 / 0.8641 GB, free: 1.199 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.5996, allocations: 1.656 kB / 0.8641 GB, free: 1.199 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.5996, allocations: 0 / 0.8641 GB, free: 1.199 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009009/0.6005, allocations: 448 kB / 0.8645 GB, free: 0.7305 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003699/0.6009, allocations: 162.5 kB / 0.8646 GB, free: 0.5625 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.316e-05/0.601, allocations: 56.92 kB / 0.8647 GB, free: 0.5039 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.601, allocations: 4 kB / 0.8647 GB, free: 0.5 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.599e-05/0.601, allocations: 35.78 kB / 0.8647 GB, free: 468 kB / 0.5263 GB Notification: Performance of pre-optimization done (n=3): time 1.633e-06/0.6011, allocations: 0 / 0.8647 GB, free: 468 kB / 0.5263 GB Notification: Performance of matching and sorting (n=3): time 0.0002772/0.6013, allocations: 113.5 kB / 0.8648 GB, free: 348 kB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.6014, allocations: 55.41 kB / 0.8649 GB, free: 280 kB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.892e-05/0.6014, allocations: 97 kB / 0.865 GB, free: 176 kB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.6015, allocations: 25.7 kB / 0.865 GB, free: 144 kB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 3.195e-05/0.6015, allocations: 92.12 kB / 0.8651 GB, free: 48 kB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.6015, allocations: 7.812 kB / 0.8651 GB, free: 40 kB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.828e-06/0.6015, allocations: 0 / 0.8651 GB, free: 40 kB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.6017, allocations: 310.8 kB / 0.8654 GB, free: 15.73 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.429e-05/0.6018, allocations: 51.91 kB / 0.8655 GB, free: 15.67 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.05e-05/0.6019, allocations: 47.97 kB / 0.8655 GB, free: 15.62 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.292e-05/0.6019, allocations: 39.91 kB / 0.8655 GB, free: 15.59 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.6019, allocations: 0.5625 kB / 0.8655 GB, free: 15.59 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001997/0.6021, allocations: 105.6 kB / 0.8656 GB, free: 15.48 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.6022, allocations: 6.969 kB / 0.8656 GB, free: 15.47 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.6022, allocations: 3.906 kB / 0.8656 GB, free: 15.47 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.6022, allocations: 0 / 0.8656 GB, free: 15.47 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002909/0.6025, allocations: 51.95 kB / 0.8657 GB, free: 15.42 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.6025, allocations: 4.547 kB / 0.8657 GB, free: 15.41 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002106/0.6028, allocations: 39.91 kB / 0.8657 GB, free: 15.38 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.6028, allocations: 6.797 kB / 0.8657 GB, free: 15.37 MB / 0.5419 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 (3): * Single equations (assignments): 3 * 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 7.708e-05/0.6029, allocations: 109 kB / 0.8659 GB, free: 15.26 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-05/0.6029, allocations: 3.906 kB / 0.8659 GB, free: 15.25 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.086e-05/0.603, allocations: 8 kB / 0.8659 GB, free: 15.24 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.603, allocations: 1.125 kB / 0.8659 GB, free: 15.24 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.603, allocations: 0 / 0.8659 GB, free: 15.24 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.603, allocations: 0 / 0.8659 GB, free: 15.24 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002205/0.6032, allocations: 194.1 kB / 0.866 GB, free: 15.02 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.6032, allocations: 192 / 0.866 GB, free: 15.02 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002549/0.6035, allocations: 51.89 kB / 0.8661 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.6035, allocations: 4 kB / 0.8661 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.6035, allocations: 3.984 kB / 0.8661 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.6035, allocations: 0 / 0.8661 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.6036, allocations: 0 / 0.8661 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002542/0.6038, allocations: 211.4 kB / 0.8663 GB, free: 14.73 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.691e-05/0.6039, allocations: 77.11 kB / 0.8664 GB, free: 14.64 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.529e-05/0.6039, allocations: 5.219 kB / 0.8664 GB, free: 14.64 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.6041, allocations: 39.95 kB / 0.8664 GB, free: 14.6 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.713e-05/0.6042, allocations: 4 kB / 0.8664 GB, free: 14.59 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.6042, allocations: 4 kB / 0.8664 GB, free: 14.59 MB / 0.5419 GB Notification: Performance of sort global known variables: time 4.835e-05/0.6043, allocations: 87.27 kB / 0.8665 GB, free: 14.5 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0002327/0.6045, allocations: 16 kB / 0.8665 GB, free: 14.49 MB / 0.5419 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 (3): * Single equations (assignments): 3 * 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.0001487/0.6047, allocations: 91.25 kB / 0.8666 GB, free: 14.39 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0002083/0.6049, allocations: 103.8 kB / 0.8667 GB, free: 14.29 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.6049, allocations: 0 / 0.8667 GB, free: 14.29 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 9.237e-05/0.605, allocations: 51.95 kB / 0.8668 GB, free: 14.24 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001988/0.6052, allocations: 9.125 kB / 0.8668 GB, free: 14.23 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007315/0.6059, allocations: 179.7 kB / 0.8669 GB, free: 14.03 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004659/0.6064, allocations: 0.711 MB / 0.8676 GB, free: 13.3 MB / 0.5419 GB Notification: Performance of SimCode: time 2.41e-07/0.6064, allocations: 0 / 0.8676 GB, free: 13.3 MB / 0.5419 GB Notification: Performance of Templates: time 0.003553/0.61, allocations: 1.167 MB / 0.8688 GB, free: 12.14 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe 2>&1)