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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothMin,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothMin,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin",fmuType="me",version="2.0",platforms={"static"}) [: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.7138/0.7138, allocations: 141.8 MB / 149.1 MB, free: 13.09 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 179.6 kB / 181.9 MB, free: 9.766 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.235/1.235, allocations: 221.3 MB / 436 MB, free: 2.266 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.0009113/0.0009112, allocations: 102.7 kB / 0.507 GB, free: 10.97 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001785/0.001785, allocations: 286.1 kB / 0.5884 GB, free: 7.809 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1642/0.166, allocations: 89.65 MB / 0.676 GB, free: 14.07 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.5099, allocations: 82.76 MB / 0.7568 GB, free: 138.9 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1104/0.6203, allocations: 108 MB / 0.8623 GB, free: 30.77 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001964/0.6206, allocations: 75.89 kB / 0.8624 GB, free: 30.7 MB / 0.5575 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.003429/0.624, allocations: 1.203 MB / 0.8636 GB, free: 29.47 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.6241, allocations: 12.59 kB / 0.8636 GB, free: 29.46 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008322/0.6249, allocations: 169.5 kB / 0.8637 GB, free: 29.3 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.888e-05/0.625, allocations: 171 kB / 0.8639 GB, free: 29.1 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.6251, allocations: 0.875 kB / 0.8639 GB, free: 29.1 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.94e-05/0.6251, allocations: 4 kB / 0.8639 GB, free: 29.09 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002022/0.6253, allocations: 132.6 kB / 0.864 GB, free: 28.96 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001505/0.6254, allocations: 105.6 kB / 0.8641 GB, free: 28.86 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.6255, allocations: 0.5938 kB / 0.8641 GB, free: 28.86 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.6255, allocations: 0.9062 kB / 0.8641 GB, free: 28.86 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.6255, allocations: 0 / 0.8641 GB, free: 28.86 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000811/0.6263, allocations: 457.6 kB / 0.8646 GB, free: 28.38 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003535/0.6267, allocations: 165.7 kB / 0.8647 GB, free: 28.21 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.012e-05/0.6268, allocations: 49.55 kB / 0.8648 GB, free: 28.16 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.6268, allocations: 4.719 kB / 0.8648 GB, free: 28.16 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.425e-05/0.6268, allocations: 39.31 kB / 0.8648 GB, free: 28.11 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.6268, allocations: 0 / 0.8648 GB, free: 28.11 MB / 0.5575 GB Notification: Performance of matching and sorting (n=3): time 0.0002334/0.6271, allocations: 110.2 kB / 0.8649 GB, free: 28 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.931e-05/0.6271, allocations: 52.12 kB / 0.865 GB, free: 27.94 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.341e-05/0.6271, allocations: 101.5 kB / 0.8651 GB, free: 27.83 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 1.24e-05/0.6272, allocations: 29.64 kB / 0.8651 GB, free: 27.8 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 2.012e-05/0.6272, allocations: 84.64 kB / 0.8652 GB, free: 27.71 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/0.6272, allocations: 12.38 kB / 0.8652 GB, free: 27.7 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.256e-06/0.6272, allocations: 0.5312 kB / 0.8652 GB, free: 27.7 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 4.542e-05/0.6273, allocations: 315.9 kB / 0.8655 GB, free: 27.38 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.788e-05/0.6273, allocations: 43.97 kB / 0.8655 GB, free: 27.34 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.697e-05/0.6274, allocations: 44.53 kB / 0.8656 GB, free: 27.3 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.7e-05/0.6275, allocations: 39.92 kB / 0.8656 GB, free: 27.26 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.6275, allocations: 0.5 kB / 0.8656 GB, free: 27.26 MB / 0.5575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001485/0.6276, allocations: 113.6 kB / 0.8657 GB, free: 27.14 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 9.758e-06/0.6276, allocations: 4 kB / 0.8657 GB, free: 27.14 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.6276, allocations: 3.906 kB / 0.8657 GB, free: 27.13 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.6277, allocations: 0 / 0.8657 GB, free: 27.13 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002625/0.6279, allocations: 47.95 kB / 0.8658 GB, free: 27.09 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.6279, allocations: 2.5 kB / 0.8658 GB, free: 27.09 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.6281, allocations: 43.89 kB / 0.8658 GB, free: 27.04 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.6282, allocations: 7.938 kB / 0.8658 GB, free: 27.04 MB / 0.5575 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 4.615e-05/0.6282, allocations: 108.9 kB / 0.8659 GB, free: 26.92 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.064e-05/0.6283, allocations: 3.906 kB / 0.8659 GB, free: 26.92 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.736e-05/0.6283, allocations: 12 kB / 0.866 GB, free: 26.9 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.6283, allocations: 0 / 0.866 GB, free: 26.9 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.6283, allocations: 0 / 0.866 GB, free: 26.9 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.6283, allocations: 3.984 kB / 0.866 GB, free: 26.9 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001438/0.6285, allocations: 190.1 kB / 0.8661 GB, free: 26.68 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.6285, allocations: 0 / 0.8661 GB, free: 26.68 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000262/0.6288, allocations: 47.95 kB / 0.8662 GB, free: 26.63 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.6288, allocations: 0 / 0.8662 GB, free: 26.63 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.6288, allocations: 4.172 kB / 0.8662 GB, free: 26.62 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.6288, allocations: 0 / 0.8662 GB, free: 26.62 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.6288, allocations: 0 / 0.8662 GB, free: 26.62 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001668/0.629, allocations: 215.4 kB / 0.8664 GB, free: 26.4 MB / 0.5575 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001952/0.6292, allocations: 0.5779 MB / 0.867 GB, free: 25.8 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.745e-05/0.6292, allocations: 77.11 kB / 0.867 GB, free: 25.71 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.328e-05/0.6292, allocations: 0 / 0.867 GB, free: 25.71 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.6295, allocations: 43.86 kB / 0.8671 GB, free: 25.66 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.053e-05/0.6295, allocations: 8 kB / 0.8671 GB, free: 25.66 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-06/0.6295, allocations: 0 / 0.8671 GB, free: 25.66 MB / 0.5575 GB Notification: Performance of sort global known variables: time 2.284e-05/0.6296, allocations: 87.27 kB / 0.8672 GB, free: 25.57 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0007854/0.6303, allocations: 16 kB / 0.8672 GB, free: 25.55 MB / 0.5575 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 7.598e-05/0.6304, allocations: 93 kB / 0.8673 GB, free: 25.46 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.0001622/0.6306, allocations: 95.94 kB / 0.8674 GB, free: 25.36 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.6306, allocations: 3.938 kB / 0.8674 GB, free: 25.36 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 6.926e-05/0.6307, allocations: 55.89 kB / 0.8674 GB, free: 25.3 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.6308, allocations: 8 kB / 0.8674 GB, free: 25.3 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005977/0.6314, allocations: 187.5 kB / 0.8676 GB, free: 25.09 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.6316, allocations: 0.7071 MB / 0.8683 GB, free: 24.36 MB / 0.5575 GB Notification: Performance of SimCode: time 3.21e-07/0.6316, allocations: 0 / 0.8683 GB, free: 24.36 MB / 0.5575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe 2>&1)