Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.539/1.539, allocations: 251.9 MB / 266.9 MB, free: 11.09 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001178/0.001178, allocations: 174 kB / 326.5 MB, free: 2.266 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.862/1.862, allocations: 205.4 MB / 0.5775 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008604/0.0008604, allocations: 92.59 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.0003489, allocations: 9.969 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2102/0.2105, allocations: 106.3 MB / 0.9002 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1741/0.3847, allocations: 132.1 MB / 1.029 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/0.385, allocations: 71.97 kB / 1.029 GB, free: 11.45 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004289/0.3893, allocations: 1.101 MB / 1.03 GB, free: 10.34 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.465e-06/0.3893, allocations: 0 / 1.03 GB, free: 10.34 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.3894, allocations: 0 / 1.03 GB, free: 10.34 MB / 0.6823 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.0004953/0.3899, allocations: 351.2 kB / 1.031 GB, free: 9.953 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.3899, allocations: 8.031 kB / 1.031 GB, free: 9.945 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.035e-05/0.39, allocations: 34.56 kB / 1.031 GB, free: 9.902 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.833e-05/0.39, allocations: 4 kB / 1.031 GB, free: 9.898 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.3902, allocations: 166.9 kB / 1.031 GB, free: 9.695 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.3902, allocations: 0 / 1.031 GB, free: 9.695 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.3902, allocations: 4 kB / 1.031 GB, free: 9.691 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002314/0.3905, allocations: 53.67 kB / 1.031 GB, free: 9.633 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.3905, allocations: 0 / 1.031 GB, free: 9.633 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.3905, allocations: 4 kB / 1.031 GB, free: 9.629 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.3906, allocations: 0 / 1.031 GB, free: 9.629 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002403/0.3908, allocations: 47.89 kB / 1.031 GB, free: 9.582 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005344/0.3914, allocations: 272.9 kB / 1.031 GB, free: 9.266 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001662/0.3915, allocations: 42.56 kB / 1.031 GB, free: 9.215 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001464/0.3917, allocations: 85.16 kB / 1.031 GB, free: 9.113 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.3917, allocations: 34.56 kB / 1.031 GB, free: 9.07 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 3.286e-06/0.3918, allocations: 0 / 1.031 GB, free: 9.07 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.0005105/0.3923, allocations: 97.58 kB / 1.032 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.428e-05/0.3923, allocations: 59.53 kB / 1.032 GB, free: 8.898 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.755e-05/0.3924, allocations: 92.94 kB / 1.032 GB, free: 8.801 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.3925, allocations: 29.7 kB / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.332e-05/0.3926, allocations: 84.08 kB / 1.032 GB, free: 8.68 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.439e-05/0.3926, allocations: 7.906 kB / 1.032 GB, free: 8.672 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.389e-06/0.3926, allocations: 0 / 1.032 GB, free: 8.672 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001817/0.3928, allocations: 322.8 kB / 1.032 GB, free: 8.348 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.3929, allocations: 19.98 kB / 1.032 GB, free: 8.328 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.3931, allocations: 23.98 kB / 1.032 GB, free: 8.305 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.3932, allocations: 19.98 kB / 1.032 GB, free: 8.285 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3932, allocations: 4.062 kB / 1.032 GB, free: 8.281 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002904/0.3935, allocations: 77.59 kB / 1.032 GB, free: 8.199 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.3935, allocations: 4 kB / 1.032 GB, free: 8.195 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3935, allocations: 0 / 1.032 GB, free: 8.195 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.3936, allocations: 0 / 1.032 GB, free: 8.195 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.3937, allocations: 20.02 kB / 1.032 GB, free: 8.176 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.3937, allocations: 4 kB / 1.032 GB, free: 8.172 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.462e-05/0.3938, allocations: 11.89 kB / 1.032 GB, free: 8.16 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.3938, allocations: 3.938 kB / 1.032 GB, free: 8.156 MB / 0.6823 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 () * Number of clocked 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 0.0001133/0.3939, allocations: 113.8 kB / 1.032 GB, free: 8.035 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.394, allocations: 0 / 1.032 GB, free: 8.035 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003396/0.3943, allocations: 92.7 kB / 1.032 GB, free: 7.938 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.3944, allocations: 0 / 1.032 GB, free: 7.938 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.3944, allocations: 0 / 1.032 GB, free: 7.938 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.3944, allocations: 4.25 kB / 1.032 GB, free: 7.934 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002385/0.3946, allocations: 161.6 kB / 1.033 GB, free: 7.727 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.3947, allocations: 4 kB / 1.033 GB, free: 7.723 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.522e-05/0.3947, allocations: 16.02 kB / 1.033 GB, free: 7.707 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3948, allocations: 0 / 1.033 GB, free: 7.707 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.607e-06/0.3948, allocations: 0 / 1.033 GB, free: 7.707 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3948, allocations: 0 / 1.033 GB, free: 7.707 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.3948, allocations: 3.984 kB / 1.033 GB, free: 7.703 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003514/0.3952, allocations: 180.1 kB / 1.033 GB, free: 7.512 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.225e-05/0.3952, allocations: 81.02 kB / 1.033 GB, free: 7.414 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.3953, allocations: 3.938 kB / 1.033 GB, free: 7.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.3954, allocations: 11.98 kB / 1.033 GB, free: 7.398 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.213e-05/0.3954, allocations: 0 / 1.033 GB, free: 7.398 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.3955, allocations: 7.969 kB / 1.033 GB, free: 7.391 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.203e-05/0.3955, allocations: 83.28 kB / 1.033 GB, free: 7.309 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3955, allocations: 0 / 1.033 GB, free: 7.309 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003925/0.3959, allocations: 11.98 kB / 1.033 GB, free: 7.297 MB / 0.6823 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 () * Number of clocked 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.0008122/0.3968, allocations: 0.7085 MB / 1.034 GB, free: 6.562 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002917/0.3971, allocations: 51.94 kB / 1.034 GB, free: 6.512 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3971, allocations: 0 / 1.034 GB, free: 6.512 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.3972, allocations: 27.97 kB / 1.034 GB, free: 6.484 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003073/0.3975, allocations: 10.28 kB / 1.034 GB, free: 6.477 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006331/0.3982, allocations: 142.5 kB / 1.034 GB, free: 6.293 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.3985, allocations: 0.6809 MB / 1.035 GB, free: 5.586 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.411e-05/0.3986, allocations: 0 / 1.035 GB, free: 5.586 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.677e-05/0.3986, allocations: 11.44 kB / 1.035 GB, free: 5.574 MB / 0.6823 GB Notification: Performance of SimCode: time 2.71e-07/0.3986, allocations: 0 / 1.035 GB, free: 5.574 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0132/0.4119, allocations: 1.153 MB / 1.036 GB, free: 4.555 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003182/0.4122, allocations: 182.4 kB / 1.036 GB, free: 4.32 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.496/1.908, allocations: 0 / 1.036 GB, free: 4.32 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)