Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.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.SmoothBlocks,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks",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.7642/0.7642, allocations: 141.8 MB / 149.1 MB, free: 1.227 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.001497/0.001497, allocations: 177.3 kB / 181.9 MB, free: 0.543 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.375/1.375, allocations: 221.3 MB / 436 MB, free: 5.297 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.000878/0.000878, allocations: 96.56 kB / 0.507 GB, free: 1.969 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001729/0.001729, allocations: 268.3 kB / 0.5884 GB, free: 47.09 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3275/0.3293, allocations: 89.63 MB / 0.676 GB, free: 59.46 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.4615, allocations: 82.79 MB / 0.7568 GB, free: 460 kB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1327/0.5942, allocations: 109.7 MB / 0.8639 GB, free: 2.637 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.5945, allocations: 77.98 kB / 0.864 GB, free: 2.562 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.2548/0.8493, allocations: 5.138 MB / 0.869 GB, free: 109.8 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.8493, allocations: 9.188 kB / 0.869 GB, free: 109.8 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008068/0.8502, allocations: 138.5 kB / 0.8691 GB, free: 109.8 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.8503, allocations: 178.1 kB / 0.8693 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.99e-05/0.8504, allocations: 62.88 kB / 0.8694 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.47e-05/0.8504, allocations: 4.844 kB / 0.8694 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000172/0.8506, allocations: 74.58 kB / 0.8694 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.8508, allocations: 106.5 kB / 0.8695 GB, free: 109.4 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.8508, allocations: 1.156 kB / 0.8695 GB, free: 109.4 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.8508, allocations: 0 / 0.8695 GB, free: 109.4 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.8508, allocations: 2.156 kB / 0.8695 GB, free: 109.4 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.8519, allocations: 491.7 kB / 0.87 GB, free: 109.2 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.852, allocations: 93.48 kB / 0.8701 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.588e-05/0.8521, allocations: 35.23 kB / 0.8701 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.8522, allocations: 5.391 kB / 0.8701 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.431e-05/0.8522, allocations: 35.38 kB / 0.8702 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=6): time 1.552e-06/0.8522, allocations: 0 / 0.8702 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of matching and sorting (n=6): time 0.0002479/0.8524, allocations: 105.2 kB / 0.8703 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.49e-05/0.8525, allocations: 52.2 kB / 0.8703 GB, free: 109 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.195e-05/0.8525, allocations: 124.4 kB / 0.8704 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.8526, allocations: 30.86 kB / 0.8705 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 3.658e-05/0.8526, allocations: 106 kB / 0.8706 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.8526, allocations: 18.84 kB / 0.8706 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.997e-06/0.8527, allocations: 0 / 0.8706 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 4.328e-05/0.8527, allocations: 319.9 kB / 0.8709 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.463e-05/0.8528, allocations: 35.98 kB / 0.8709 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.222e-05/0.8529, allocations: 53.14 kB / 0.871 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.181e-05/0.8529, allocations: 35.83 kB / 0.871 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.8529, allocations: 0 / 0.871 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002046/0.8531, allocations: 113.7 kB / 0.8711 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.8532, allocations: 6.688 kB / 0.8711 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.8532, allocations: 1 kB / 0.8711 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.8532, allocations: 4.875 kB / 0.8711 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003044/0.8535, allocations: 49.72 kB / 0.8712 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.8535, allocations: 1.969 kB / 0.8712 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.8537, allocations: 44.19 kB / 0.8712 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/0.8538, allocations: 4.141 kB / 0.8712 GB, free: 108.4 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 5.955e-05/0.8538, allocations: 102.5 kB / 0.8713 GB, free: 108.2 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.504e-05/0.8539, allocations: 16.41 kB / 0.8713 GB, free: 108.2 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002655/0.8542, allocations: 119.7 kB / 0.8715 GB, free: 108.2 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.8542, allocations: 1.344 kB / 0.8715 GB, free: 108.2 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.8542, allocations: 0 / 0.8715 GB, free: 108.2 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.8542, allocations: 1.594 kB / 0.8715 GB, free: 108.2 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.8544, allocations: 210 kB / 0.8717 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.8544, allocations: 0 / 0.8717 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002654/0.8547, allocations: 45.84 kB / 0.8717 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.8547, allocations: 0.6094 kB / 0.8717 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.8547, allocations: 5.625 kB / 0.8717 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.8547, allocations: 0.9688 kB / 0.8717 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.8547, allocations: 4.922 kB / 0.8717 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002062/0.8549, allocations: 206 kB / 0.8719 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002312/0.8552, allocations: 0.5708 MB / 0.8725 GB, free: 107.4 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 2.501e-05/0.8552, allocations: 83.88 kB / 0.8725 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.94e-05/0.8552, allocations: 2.188 kB / 0.8725 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003578/0.8556, allocations: 47.09 kB / 0.8726 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.019e-05/0.8557, allocations: 11.86 kB / 0.8726 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.597e-05/0.8557, allocations: 7.641 kB / 0.8726 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of sort global known variables: time 4.669e-05/0.8557, allocations: 106.7 kB / 0.8727 GB, free: 107.2 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008375/0.8566, allocations: 24.08 kB / 0.8727 GB, free: 107.2 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 (6): * Single equations (assignments): 6 * 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.0001109/0.8567, allocations: 95.77 kB / 0.8728 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001949/0.8569, allocations: 79.36 kB / 0.8729 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.8569, allocations: 0 / 0.8729 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 7.798e-05/0.857, allocations: 45.33 kB / 0.8729 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002278/0.8572, allocations: 7.219 kB / 0.8729 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003981/0.8576, allocations: 144.8 kB / 0.8731 GB, free: 107 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.8579, allocations: 0.7256 MB / 0.8738 GB, free: 106.3 MB / 0.5419 GB Notification: Performance of SimCode: time 2.5e-07/0.8579, allocations: 0 / 0.8738 GB, free: 106.3 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)