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.8338/0.8338, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 188.2 kB / 187.3 MB, free: 11.88 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.853/1.853, allocations: 221.3 MB / 441.4 MB, free: 4.582 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.001035/0.001035, allocations: 98.92 kB / 0.5124 GB, free: 24.24 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001999/0.001999, allocations: 272.6 kB / 0.5939 GB, free: 7.941 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.713e-05/4.714e-05, allocations: 4 kB / 0.6835 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5535/0.5536, allocations: 82.77 MB / 0.7644 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1401/0.6938, allocations: 109 MB / 0.8708 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003013/0.6942, allocations: 80.95 kB / 0.8709 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.003494/0.6977, allocations: 1.112 MB / 0.872 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.963e-06/0.6977, allocations: 0 / 0.872 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.406e-06/0.6977, allocations: 0 / 0.872 GB, free: 14.23 MB / 0.5417 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.0004123/0.6982, allocations: 345.8 kB / 0.8723 GB, free: 13.85 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.609e-05/0.6982, allocations: 8.031 kB / 0.8723 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.672e-05/0.6983, allocations: 30.56 kB / 0.8723 GB, free: 13.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.034e-05/0.6983, allocations: 4 kB / 0.8723 GB, free: 13.8 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.6985, allocations: 163 kB / 0.8725 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.6985, allocations: 3.953 kB / 0.8725 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.442e-05/0.6985, allocations: 8 kB / 0.8725 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001228/0.6986, allocations: 37.62 kB / 0.8725 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.6986, allocations: 0.9688 kB / 0.8725 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.6987, allocations: 4 kB / 0.8725 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.6987, allocations: 0 / 0.8725 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.415e-05/0.6988, allocations: 12 kB / 0.8726 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004453/0.6992, allocations: 272.9 kB / 0.8728 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 6.61e-05/0.6993, allocations: 26.58 kB / 0.8728 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.899e-05/0.6993, allocations: 12.86 kB / 0.8728 GB, free: 13.16 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000144/0.6995, allocations: 89.09 kB / 0.8729 GB, free: 13.06 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.6995, allocations: 34.56 kB / 0.873 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 1.193e-06/0.6995, allocations: 0 / 0.873 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.0001682/0.6997, allocations: 37.7 kB / 0.873 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.6997, allocations: 51.41 kB / 0.8731 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.216e-05/0.6998, allocations: 96.98 kB / 0.8731 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.6998, allocations: 29.7 kB / 0.8732 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.857e-05/0.6999, allocations: 84.17 kB / 0.8733 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.98e-05/0.6999, allocations: 11.84 kB / 0.8733 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-06/0.6999, allocations: 3.938 kB / 0.8733 GB, free: 12.67 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.7001, allocations: 318.8 kB / 0.8736 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.672e-05/0.7001, allocations: 4 kB / 0.8736 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.633e-05/0.7001, allocations: 11.94 kB / 0.8736 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.735e-05/0.7001, allocations: 3.938 kB / 0.8736 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.7001, allocations: 0 / 0.8736 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.81e-05/0.7002, allocations: 49.75 kB / 0.8736 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.7002, allocations: 4 kB / 0.8736 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.7002, allocations: 4 kB / 0.8736 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.7003, allocations: 0 / 0.8736 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.495e-05/0.7004, allocations: 11.98 kB / 0.8737 GB, free: 12.26 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.7004, allocations: 0 / 0.8737 GB, free: 12.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.72e-05/0.7004, allocations: 4 kB / 0.8737 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.85e-06/0.7004, allocations: 4 kB / 0.8737 GB, free: 12.25 MB / 0.5417 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.053e-05/0.7005, allocations: 113 kB / 0.8738 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.7005, allocations: 3.906 kB / 0.8738 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.7007, allocations: 60.03 kB / 0.8738 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.7007, allocations: 256 / 0.8738 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.7007, allocations: 0 / 0.8738 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.7007, allocations: 4 kB / 0.8738 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.7009, allocations: 157.6 kB / 0.874 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.7009, allocations: 0 / 0.874 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.321e-05/0.7009, allocations: 20.02 kB / 0.874 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.7009, allocations: 0 / 0.874 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.7009, allocations: 0 / 0.874 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.701, allocations: 0 / 0.874 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.701, allocations: 0 / 0.874 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001212/0.7011, allocations: 143.5 kB / 0.8741 GB, free: 11.69 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.985e-05/0.7011, allocations: 81.06 kB / 0.8742 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.292e-05/0.7012, allocations: 4.031 kB / 0.8742 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.953e-05/0.7012, allocations: 14 kB / 0.8742 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/0.7013, allocations: 0 / 0.8742 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.7013, allocations: 4 kB / 0.8742 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.439e-05/0.7013, allocations: 83.28 kB / 0.8743 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7013, allocations: 0 / 0.8743 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001905/0.7015, allocations: 4 kB / 0.8743 GB, free: 11.48 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.0004388/0.702, allocations: 0.6928 MB / 0.875 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 8.297e-05/0.7021, allocations: 15.94 kB / 0.875 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.7021, allocations: 0 / 0.875 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.235e-05/0.7021, allocations: 8 kB / 0.875 GB, free: 10.74 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001882/0.7023, allocations: 0 / 0.875 GB, free: 10.74 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003516/0.7027, allocations: 110.7 kB / 0.8751 GB, free: 10.59 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.703, allocations: 0.677 MB / 0.8758 GB, free: 9.891 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.504e-05/0.703, allocations: 3.938 kB / 0.8758 GB, free: 9.887 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.398e-05/0.703, allocations: 15.42 kB / 0.8758 GB, free: 9.871 MB / 0.5417 GB Notification: Performance of SimCode: time 3.51e-07/0.703, allocations: 0 / 0.8758 GB, free: 9.871 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01229/0.7153, allocations: 1.152 MB / 0.8769 GB, free: 8.859 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001851/0.7156, allocations: 155.1 kB / 0.8771 GB, free: 8.641 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.668/2.384, allocations: 3.938 kB / 0.8771 GB, free: 8.637 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)