Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",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.7914/0.7914, allocations: 141.7 MB / 154.3 MB, free: 15.49 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.001546/0.001546, allocations: 179.4 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 2.186/2.186, allocations: 221.3 MB / 441.4 MB, free: 4.605 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.009013/0.009013, allocations: 94.25 kB / 0.5124 GB, free: 24.17 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0077/0.0077, allocations: 279.2 kB / 0.5939 GB, free: 7.957 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000341/0.0003412, allocations: 8 kB / 0.6835 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5203/0.5207, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1399/0.6607, allocations: 108.5 MB / 0.8703 GB, free: 64 kB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003734/0.6612, allocations: 76.95 kB / 0.8704 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.004086/0.6653, allocations: 0.8835 MB / 0.8712 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.815e-06/0.6653, allocations: 0 / 0.8712 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000233/0.6655, allocations: 0 / 0.8712 GB, free: 15.11 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.001764/0.6673, allocations: 318.6 kB / 0.8715 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/0.6674, allocations: 8.031 kB / 0.8715 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.631e-05/0.6674, allocations: 30.56 kB / 0.8716 GB, free: 14.71 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.6675, allocations: 1.75 kB / 0.8716 GB, free: 14.71 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008787/0.6684, allocations: 167 kB / 0.8717 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003333/0.6687, allocations: 3.953 kB / 0.8717 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.008e-05/0.6687, allocations: 0 / 0.8717 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007352/0.6695, allocations: 44.34 kB / 0.8718 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.893e-05/0.6695, allocations: 0 / 0.8718 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.6695, allocations: 0 / 0.8718 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.6695, allocations: 4 kB / 0.8718 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.242e-05/0.6696, allocations: 4 kB / 0.8718 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002121/0.6698, allocations: 149.7 kB / 0.8719 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006543/0.6705, allocations: 39.28 kB / 0.872 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.634e-05/0.6706, allocations: 9.734 kB / 0.872 GB, free: 14.19 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007838/0.6714, allocations: 85.23 kB / 0.8721 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.6714, allocations: 33.19 kB / 0.8721 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.423e-06/0.6714, allocations: 0 / 0.8721 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of matching and sorting (n=5): time 0.002576/0.674, allocations: 361.3 kB / 0.8724 GB, free: 13.69 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.674, allocations: 51.41 kB / 0.8725 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.294e-05/0.6741, allocations: 85 kB / 0.8726 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.6741, allocations: 25.7 kB / 0.8726 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.451e-05/0.6742, allocations: 84.08 kB / 0.8727 GB, free: 13.42 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.452e-05/0.6742, allocations: 15.81 kB / 0.8727 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.297e-06/0.6742, allocations: 0 / 0.8727 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.6744, allocations: 310.8 kB / 0.873 GB, free: 13.09 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.572e-05/0.6745, allocations: 12 kB / 0.873 GB, free: 13.08 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.362e-05/0.6745, allocations: 30.56 kB / 0.873 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.359e-05/0.6746, allocations: 4 kB / 0.873 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.6746, allocations: 0 / 0.873 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001913/0.6748, allocations: 69.58 kB / 0.8731 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.6748, allocations: 8.094 kB / 0.8731 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.6748, allocations: 3.984 kB / 0.8731 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003727/0.6752, allocations: 8.219 kB / 0.8731 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003962/0.6756, allocations: 47.97 kB / 0.8732 GB, free: 12.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.6756, allocations: 4 kB / 0.8732 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.676, allocations: 35.98 kB / 0.8732 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.676, allocations: 7.938 kB / 0.8732 GB, free: 12.85 MB / 0.5417 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 (5): * Single equations (assignments): 5 * 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 9.984e-05/0.6761, allocations: 104.9 kB / 0.8733 GB, free: 12.74 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.6761, allocations: 15.94 kB / 0.8733 GB, free: 12.73 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002919/0.6764, allocations: 85.12 kB / 0.8734 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.6764, allocations: 4 kB / 0.8734 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.6765, allocations: 256 / 0.8734 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.6765, allocations: 4 kB / 0.8734 GB, free: 12.63 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005042/0.677, allocations: 306.5 kB / 0.8737 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.677, allocations: 0 / 0.8737 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003787/0.6774, allocations: 55.91 kB / 0.8738 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.6774, allocations: 0 / 0.8738 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.6774, allocations: 4 kB / 0.8738 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.6774, allocations: 0 / 0.8738 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.6774, allocations: 0 / 0.8738 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002237/0.6777, allocations: 151.5 kB / 0.8739 GB, free: 12.05 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.813e-05/0.6777, allocations: 89.09 kB / 0.874 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.297e-05/0.6778, allocations: 0 / 0.874 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003675/0.6781, allocations: 35.98 kB / 0.874 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000475/0.6786, allocations: 4 kB / 0.874 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.6786, allocations: 3.984 kB / 0.874 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.525e-05/0.6787, allocations: 75.28 kB / 0.8741 GB, free: 11.83 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6787, allocations: 3.938 kB / 0.8741 GB, free: 11.83 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002327/0.6789, allocations: 20 kB / 0.8741 GB, free: 11.81 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 (5): * Single equations (assignments): 5 * 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.0006617/0.6796, allocations: 0.7026 MB / 0.8748 GB, free: 11.08 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0007168/0.6803, allocations: 23.94 kB / 0.8748 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.6803, allocations: 4 kB / 0.8748 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.543e-05/0.6804, allocations: 15.98 kB / 0.8749 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001508/0.6806, allocations: 4 kB / 0.8749 GB, free: 11.03 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001029/0.6816, allocations: 131.1 kB / 0.875 GB, free: 10.87 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/0.682, allocations: 0.6809 MB / 0.8756 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.000229/0.6823, allocations: 36 kB / 0.8757 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.016e-05/0.6824, allocations: 11.42 kB / 0.8757 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of SimCode: time 6.92e-07/0.6824, allocations: 0 / 0.8757 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2073/0.8897, allocations: 1.449 MB / 0.8771 GB, free: 8.844 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003535/0.8901, allocations: 192 kB / 0.8773 GB, free: 8.617 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.999/2.889, allocations: 0 / 0.8773 GB, free: 8.617 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)