Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.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.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside",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.7309/0.7309, allocations: 141.8 MB / 149.1 MB, free: 1.18 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.001005/0.001005, allocations: 165.3 kB / 182 MB, free: 0.5586 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.314/1.314, allocations: 221.4 MB / 436 MB, free: 5.301 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.0009693/0.0009693, allocations: 100 kB / 0.5071 GB, free: 1.953 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001723/0.001723, allocations: 276.4 kB / 0.5885 GB, free: 47.06 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.345/0.3467, allocations: 89.63 MB / 0.676 GB, free: 59.5 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.4861, allocations: 82.78 MB / 0.7568 GB, free: 428 kB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.622, allocations: 108.3 MB / 0.8625 GB, free: 4.008 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.6222, allocations: 73.98 kB / 0.8626 GB, free: 3.938 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.003429/0.6257, allocations: 1.15 MB / 0.8637 GB, free: 2.742 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.6257, allocations: 8 kB / 0.8637 GB, free: 2.734 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.184e-05/0.6258, allocations: 3.906 kB / 0.8637 GB, free: 2.73 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.6259, allocations: 167 kB / 0.8639 GB, free: 2.527 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.6259, allocations: 0 / 0.8639 GB, free: 2.527 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.958e-06/0.6259, allocations: 0 / 0.8639 GB, free: 2.527 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.693e-05/0.626, allocations: 12 kB / 0.8639 GB, free: 2.516 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.998e-05/0.6261, allocations: 45.59 kB / 0.864 GB, free: 2.465 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.6261, allocations: 3.938 kB / 0.864 GB, free: 2.461 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.6261, allocations: 0 / 0.864 GB, free: 2.461 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.6261, allocations: 0 / 0.864 GB, free: 2.461 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003686/0.6265, allocations: 245.5 kB / 0.8642 GB, free: 2.184 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.902e-05/0.6266, allocations: 34.52 kB / 0.8642 GB, free: 2.141 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.709e-05/0.6266, allocations: 12.92 kB / 0.8642 GB, free: 2.125 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001335/0.6267, allocations: 81.11 kB / 0.8643 GB, free: 2.027 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.6268, allocations: 30.56 kB / 0.8644 GB, free: 1.988 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.6268, allocations: 0 / 0.8644 GB, free: 1.988 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2): time 0.0002422/0.627, allocations: 57.61 kB / 0.8644 GB, free: 1.926 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/0.6271, allocations: 51.41 kB / 0.8645 GB, free: 1.863 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.255e-05/0.6271, allocations: 97 kB / 0.8645 GB, free: 1.762 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.6272, allocations: 25.7 kB / 0.8646 GB, free: 1.73 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 4.253e-05/0.6272, allocations: 84.12 kB / 0.8647 GB, free: 1.645 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.528e-05/0.6272, allocations: 3.906 kB / 0.8647 GB, free: 1.641 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.466e-06/0.6272, allocations: 3.938 kB / 0.8647 GB, free: 1.637 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.6274, allocations: 314.8 kB / 0.865 GB, free: 1.32 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.553e-05/0.6274, allocations: 8.031 kB / 0.865 GB, free: 1.312 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.293e-05/0.6274, allocations: 4 kB / 0.865 GB, free: 1.309 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.662e-05/0.6275, allocations: 19.97 kB / 0.865 GB, free: 1.289 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.6275, allocations: 3.906 kB / 0.865 GB, free: 1.285 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000133/0.6276, allocations: 49.69 kB / 0.865 GB, free: 1.23 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 9.438e-06/0.6277, allocations: 4 kB / 0.865 GB, free: 1.227 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.838e-06/0.6277, allocations: 0 / 0.865 GB, free: 1.227 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.766e-06/0.6277, allocations: 0 / 0.865 GB, free: 1.227 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.892e-05/0.6278, allocations: 20.02 kB / 0.8651 GB, free: 1.207 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.838e-06/0.6278, allocations: 0 / 0.8651 GB, free: 1.207 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.699e-05/0.6279, allocations: 11.98 kB / 0.8651 GB, free: 1.195 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-06/0.6279, allocations: 0 / 0.8651 GB, free: 1.195 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 (2): * Single equations (assignments): 2 * 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 8.053e-05/0.6279, allocations: 108.9 kB / 0.8652 GB, free: 1.082 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.628, allocations: 8.188 kB / 0.8652 GB, free: 1.074 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000168/0.6282, allocations: 56.98 kB / 0.8652 GB, free: 1.016 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.6282, allocations: 4 kB / 0.8652 GB, free: 1.012 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.6282, allocations: 4 kB / 0.8653 GB, free: 1.008 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.6282, allocations: 3.906 kB / 0.8653 GB, free: 1.004 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001314/0.6283, allocations: 138.2 kB / 0.8654 GB, free: 0.832 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.6283, allocations: 0 / 0.8654 GB, free: 0.832 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.118e-05/0.6284, allocations: 16.02 kB / 0.8654 GB, free: 0.8164 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.6284, allocations: 0 / 0.8654 GB, free: 0.8164 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.6284, allocations: 0 / 0.8654 GB, free: 0.8164 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.6284, allocations: 4 kB / 0.8654 GB, free: 0.8125 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.6284, allocations: 3.938 kB / 0.8654 GB, free: 0.8086 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000173/0.6286, allocations: 147.4 kB / 0.8656 GB, free: 0.6484 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002729/0.6289, allocations: 0.5194 MB / 0.8661 GB, free: 112 kB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.399e-05/0.6289, allocations: 81.05 kB / 0.8661 GB, free: 12 kB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.629, allocations: 0 / 0.8661 GB, free: 12 kB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.189e-05/0.6291, allocations: 11.98 kB / 0.8661 GB, free: 0 / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.1983/0.8274, allocations: 3.297 kB / 0.8661 GB, free: 168.8 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.8275, allocations: 2.781 kB / 0.8662 GB, free: 168.8 MB / 0.5419 GB Notification: Performance of sort global known variables: time 4.495e-05/0.8275, allocations: 82 kB / 0.8662 GB, free: 168.7 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008205/0.8283, allocations: 8.875 kB / 0.8662 GB, free: 168.7 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 (2): * Single equations (assignments): 2 * 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.0001356/0.8285, allocations: 110.4 kB / 0.8663 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 7.514e-05/0.8286, allocations: 12.88 kB / 0.8664 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.8286, allocations: 3.688 kB / 0.8664 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 1.926e-05/0.8286, allocations: 7.312 kB / 0.8664 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001941/0.8288, allocations: 9.656 kB / 0.8664 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002288/0.829, allocations: 61.91 kB / 0.8664 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.8292, allocations: 0.6901 MB / 0.8671 GB, free: 167.8 MB / 0.5419 GB Notification: Performance of SimCode: time 2.8e-07/0.8292, allocations: 0 / 0.8671 GB, free: 167.8 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)