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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8698/0.8698, allocations: 141.8 MB / 149.3 MB, free: 9.227 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 184.8 kB / 182.2 MB, free: 9.453 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.573/1.573, allocations: 221.5 MB / 436.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009474/0.0009475, allocations: 88.11 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001818/0.001818, allocations: 272.8 kB / 0.5889 GB, free: 54.69 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.366e-05/2.369e-05, allocations: 4 kB / 0.6766 GB, free: 12.76 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.538/0.5381, allocations: 82.77 MB / 0.7575 GB, free: 31.93 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1769/0.7151, allocations: 108.3 MB / 0.8632 GB, free: 3.461 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/0.7155, allocations: 72.98 kB / 0.8633 GB, free: 3.391 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.004083/0.7196, allocations: 1.119 MB / 0.8644 GB, free: 2.273 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.264e-06/0.7196, allocations: 0 / 0.8644 GB, free: 2.273 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.785e-06/0.7196, allocations: 0 / 0.8644 GB, free: 2.273 MB / 0.5261 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.0004415/0.7201, allocations: 346.5 kB / 0.8647 GB, free: 1.891 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.262e-05/0.7202, allocations: 8.031 kB / 0.8647 GB, free: 1.883 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.917e-05/0.7202, allocations: 4 kB / 0.8647 GB, free: 1.879 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.7204, allocations: 167 kB / 0.8649 GB, free: 1.676 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.7204, allocations: 3.953 kB / 0.8649 GB, free: 1.672 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.374e-05/0.7204, allocations: 0 / 0.8649 GB, free: 1.672 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.161e-05/0.7205, allocations: 12 kB / 0.8649 GB, free: 1.66 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.368e-05/0.7206, allocations: 33.69 kB / 0.865 GB, free: 1.621 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.006e-06/0.7206, allocations: 0 / 0.865 GB, free: 1.621 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.7206, allocations: 11.88 kB / 0.865 GB, free: 1.609 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.7207, allocations: 0 / 0.865 GB, free: 1.609 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000499/0.7212, allocations: 249.5 kB / 0.8652 GB, free: 1.328 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 6.363e-05/0.7212, allocations: 22.58 kB / 0.8652 GB, free: 1.297 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.39e-05/0.7213, allocations: 16.92 kB / 0.8652 GB, free: 1.277 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001532/0.7214, allocations: 85.09 kB / 0.8653 GB, free: 1.176 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.7215, allocations: 30.56 kB / 0.8654 GB, free: 1.137 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.7215, allocations: 0 / 0.8654 GB, free: 1.137 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.0003237/0.7218, allocations: 49.62 kB / 0.8654 GB, free: 1.082 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.7219, allocations: 51.41 kB / 0.8654 GB, free: 1.02 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.722, allocations: 101 kB / 0.8655 GB, free: 0.9141 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.722, allocations: 29.73 kB / 0.8656 GB, free: 0.8789 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 5.648e-05/0.7221, allocations: 80.14 kB / 0.8656 GB, free: 0.7969 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.436e-05/0.7221, allocations: 11.84 kB / 0.8657 GB, free: 0.7852 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-06/0.7221, allocations: 0 / 0.8657 GB, free: 0.7852 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.7223, allocations: 314.8 kB / 0.866 GB, free: 480 kB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.406e-05/0.7223, allocations: 3.938 kB / 0.866 GB, free: 476 kB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.402e-05/0.7223, allocations: 8 kB / 0.866 GB, free: 468 kB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.216e-05/0.7224, allocations: 15.98 kB / 0.866 GB, free: 452 kB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.7224, allocations: 0 / 0.866 GB, free: 452 kB / 0.5261 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001229/0.7226, allocations: 61.69 kB / 0.866 GB, free: 384 kB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.7226, allocations: 4 kB / 0.8661 GB, free: 380 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.7226, allocations: 0 / 0.8661 GB, free: 380 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.7226, allocations: 0 / 0.8661 GB, free: 380 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.867e-05/0.7227, allocations: 15.92 kB / 0.8661 GB, free: 364 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.7227, allocations: 0 / 0.8661 GB, free: 364 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.742e-05/0.7228, allocations: 11.91 kB / 0.8661 GB, free: 352 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-06/0.7228, allocations: 4.031 kB / 0.8661 GB, free: 348 kB / 0.5261 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 7.875e-05/0.7229, allocations: 101 kB / 0.8662 GB, free: 240 kB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001336/0.7231, allocations: 57.62 kB / 0.8662 GB, free: 176 kB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.7231, allocations: 0 / 0.8662 GB, free: 176 kB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001762/0.7233, allocations: 61.41 kB / 0.8663 GB, free: 112 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.7233, allocations: 3.938 kB / 0.8663 GB, free: 108 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.7233, allocations: 0 / 0.8663 GB, free: 108 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.7233, allocations: 0 / 0.8663 GB, free: 108 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001647/0.7235, allocations: 138.3 kB / 0.8664 GB, free: 15.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.7235, allocations: 3.953 kB / 0.8664 GB, free: 15.93 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.386e-05/0.7235, allocations: 11.98 kB / 0.8664 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.7236, allocations: 4 kB / 0.8664 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.7236, allocations: 0 / 0.8664 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.7236, allocations: 0 / 0.8664 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.7236, allocations: 0 / 0.8664 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001892/0.7238, allocations: 159.4 kB / 0.8666 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.477e-05/0.7238, allocations: 81.06 kB / 0.8667 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.7239, allocations: 0 / 0.8667 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.122e-05/0.7239, allocations: 12.23 kB / 0.8667 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.976e-05/0.724, allocations: 0 / 0.8667 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-06/0.724, allocations: 4 kB / 0.8667 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.762e-05/0.724, allocations: 83.28 kB / 0.8668 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.724, allocations: 0 / 0.8668 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002099/0.7243, allocations: 12.03 kB / 0.8668 GB, free: 15.54 MB / 0.5417 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.0005468/0.7248, allocations: 0.6812 MB / 0.8674 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.061e-05/0.7249, allocations: 15.94 kB / 0.8675 GB, free: 14.81 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.7249, allocations: 0 / 0.8675 GB, free: 14.81 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.479e-05/0.725, allocations: 16.09 kB / 0.8675 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.7252, allocations: 3.984 kB / 0.8675 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003595/0.7256, allocations: 99.48 kB / 0.8676 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.7259, allocations: 0.6807 MB / 0.8682 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.765e-05/0.726, allocations: 0 / 0.8682 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.586e-05/0.726, allocations: 7.438 kB / 0.8682 GB, free: 13.94 MB / 0.5417 GB Notification: Performance of SimCode: time 2.6e-07/0.726, allocations: 0 / 0.8682 GB, free: 13.94 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02722/0.7533, allocations: 0.8474 MB / 0.8691 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003054/0.7537, allocations: 142.1 kB / 0.8692 GB, free: 12.93 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/2.449, allocations: 0 / 0.8692 GB, free: 12.93 MB / 0.5417 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)