Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.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.SmoothLimit,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit",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.7135/0.7135, allocations: 141.8 MB / 149.1 MB, free: 10.47 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.00104/0.00104, allocations: 185.4 kB / 182 MB, free: 7.363 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.221/1.221, allocations: 221.4 MB / 436 MB, free: 15.51 MB / 346.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009852/0.0009852, allocations: 100.7 kB / 0.507 GB, free: 17.66 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001758/0.001758, allocations: 269.5 kB / 0.5885 GB, free: 1.406 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3494/0.3512, allocations: 89.64 MB / 0.676 GB, free: 136.6 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.4941, allocations: 82.77 MB / 0.7568 GB, free: 79.99 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1155/0.6096, allocations: 108.6 MB / 0.8629 GB, free: 3.254 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/0.6098, allocations: 77.91 kB / 0.8629 GB, free: 3.18 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.004268/0.6141, allocations: 1.447 MB / 0.8644 GB, free: 1.688 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.6142, allocations: 8 kB / 0.8644 GB, free: 1.68 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.968e-05/0.6142, allocations: 3.906 kB / 0.8644 GB, free: 1.676 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.6143, allocations: 171.1 kB / 0.8645 GB, free: 1.469 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.6143, allocations: 3.906 kB / 0.8645 GB, free: 1.465 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.945e-06/0.6143, allocations: 0 / 0.8645 GB, free: 1.465 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.189e-05/0.6144, allocations: 12 kB / 0.8645 GB, free: 1.453 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.394e-05/0.6145, allocations: 41.62 kB / 0.8646 GB, free: 1.406 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.6145, allocations: 3.938 kB / 0.8646 GB, free: 1.402 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.804e-06/0.6145, allocations: 0 / 0.8646 GB, free: 1.402 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.6145, allocations: 4 kB / 0.8646 GB, free: 1.398 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002829/0.6148, allocations: 225.4 kB / 0.8648 GB, free: 1.141 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 4.984e-05/0.6149, allocations: 30.61 kB / 0.8648 GB, free: 1.102 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.464e-05/0.6149, allocations: 16.8 kB / 0.8649 GB, free: 1.082 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007028/0.6156, allocations: 473.5 kB / 0.8653 GB, free: 0.5273 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.6156, allocations: 30.56 kB / 0.8653 GB, free: 500 kB / 0.5419 GB Notification: Performance of pre-optimization done (n=2): time 1.413e-06/0.6157, allocations: 4 kB / 0.8653 GB, free: 496 kB / 0.5419 GB Notification: Performance of matching and sorting (n=2): time 0.0003564/0.616, allocations: 85.58 kB / 0.8654 GB, free: 404 kB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.6161, allocations: 59.31 kB / 0.8655 GB, free: 332 kB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.074e-05/0.6162, allocations: 105.2 kB / 0.8656 GB, free: 220 kB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.6162, allocations: 25.7 kB / 0.8656 GB, free: 188 kB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 4.58e-05/0.6162, allocations: 84.14 kB / 0.8657 GB, free: 100 kB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.6163, allocations: 11.83 kB / 0.8657 GB, free: 88 kB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-06/0.6163, allocations: 0 / 0.8657 GB, free: 88 kB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.6164, allocations: 314.8 kB / 0.866 GB, free: 15.77 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.711e-05/0.6164, allocations: 4 kB / 0.866 GB, free: 15.77 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.219e-05/0.6164, allocations: 4 kB / 0.866 GB, free: 15.76 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/0.6166, allocations: 48.02 kB / 0.866 GB, free: 15.71 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.6166, allocations: 0 / 0.866 GB, free: 15.71 MB / 0.5575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002674/0.6169, allocations: 89.64 kB / 0.8661 GB, free: 15.62 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.6169, allocations: 7.906 kB / 0.8661 GB, free: 15.61 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.6169, allocations: 0 / 0.8661 GB, free: 15.61 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.617, allocations: 0 / 0.8661 GB, free: 15.61 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.017e-05/0.617, allocations: 15.92 kB / 0.8662 GB, free: 15.6 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.6171, allocations: 4.062 kB / 0.8662 GB, free: 15.59 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.434e-05/0.6171, allocations: 4.031 kB / 0.8662 GB, free: 15.59 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.6171, allocations: 4 kB / 0.8662 GB, free: 15.59 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 (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 6.552e-05/0.6172, allocations: 101 kB / 0.8663 GB, free: 15.48 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.818e-05/0.6172, allocations: 3.906 kB / 0.8663 GB, free: 15.48 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003099/0.6175, allocations: 93.27 kB / 0.8664 GB, free: 15.38 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.6176, allocations: 0 / 0.8664 GB, free: 15.38 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.6176, allocations: 3.984 kB / 0.8664 GB, free: 15.37 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.6176, allocations: 0 / 0.8664 GB, free: 15.37 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001529/0.6177, allocations: 150.1 kB / 0.8665 GB, free: 15.19 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.6177, allocations: 4 kB / 0.8665 GB, free: 15.18 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.978e-05/0.6178, allocations: 7.984 kB / 0.8665 GB, free: 15.18 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.6178, allocations: 4.031 kB / 0.8665 GB, free: 15.17 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.195e-06/0.6178, allocations: 8 kB / 0.8665 GB, free: 15.16 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.6178, allocations: 0 / 0.8665 GB, free: 15.16 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.6178, allocations: 3.938 kB / 0.8665 GB, free: 15.16 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002839/0.6181, allocations: 183.4 kB / 0.8667 GB, free: 14.96 MB / 0.5575 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004061/0.6185, allocations: 0.5467 MB / 0.8672 GB, free: 14.4 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.753e-05/0.6186, allocations: 77.11 kB / 0.8673 GB, free: 14.3 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.6186, allocations: 4 kB / 0.8673 GB, free: 14.3 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.59e-05/0.6187, allocations: 0 / 0.8673 GB, free: 14.3 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.204e-05/0.6187, allocations: 15.83 kB / 0.8673 GB, free: 14.29 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.92e-06/0.6187, allocations: 4 kB / 0.8673 GB, free: 14.28 MB / 0.5575 GB Notification: Performance of sort global known variables: time 4.374e-05/0.6188, allocations: 83.31 kB / 0.8674 GB, free: 14.2 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0007898/0.6196, allocations: 20 kB / 0.8674 GB, free: 14.18 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 (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.0001734/0.6198, allocations: 123.1 kB / 0.8675 GB, free: 14.05 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 7.716e-05/0.6199, allocations: 12 kB / 0.8676 GB, free: 14.04 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 2.155e-06/0.6199, allocations: 0 / 0.8676 GB, free: 14.04 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 1.977e-05/0.6199, allocations: 4 kB / 0.8676 GB, free: 14.03 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.62, allocations: 480 / 0.8676 GB, free: 14.03 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002181/0.6203, allocations: 71.98 kB / 0.8676 GB, free: 13.94 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002744/0.6205, allocations: 0.6958 MB / 0.8683 GB, free: 13.21 MB / 0.5575 GB Notification: Performance of SimCode: time 2.61e-07/0.6205, allocations: 0 / 0.8683 GB, free: 13.21 MB / 0.5575 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)