Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.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.RegStep,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep",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.8606/0.8606, allocations: 143.4 MB / 158.3 MB, free: 5.789 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.001439/0.001439, allocations: 183.3 kB / 191.5 MB, free: 5.754 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.533/1.533, allocations: 223.2 MB / 447.7 MB, free: 4.82 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.0009186/0.0009186, allocations: 96.27 kB / 0.5187 GB, free: 1.176 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001782/0.001782, allocations: 277.9 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004147/0.0004149, allocations: 17.67 kB / 0.6929 GB, free: 59.69 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.1734, allocations: 82.79 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1957/0.3692, allocations: 107.9 MB / 0.8792 GB, free: 1.688 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003083/0.3696, allocations: 71.95 kB / 0.8793 GB, free: 1.617 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.001816/0.3714, allocations: 0.5359 MB / 0.8798 GB, free: 1.078 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.625e-06/0.3714, allocations: 0 / 0.8798 GB, free: 1.078 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.3714, allocations: 0 / 0.8798 GB, free: 1.078 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003047/0.3718, allocations: 311.4 kB / 0.8801 GB, free: 0.7266 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/0.3718, allocations: 12.09 kB / 0.8801 GB, free: 0.7148 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.751e-05/0.3719, allocations: 30.56 kB / 0.8801 GB, free: 0.6758 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002497/0.3721, allocations: 19.95 kB / 0.8801 GB, free: 0.6562 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.3723, allocations: 167 kB / 0.8803 GB, free: 464 kB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.3723, allocations: 3.953 kB / 0.8803 GB, free: 460 kB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.3723, allocations: 0 / 0.8803 GB, free: 460 kB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.3725, allocations: 41.69 kB / 0.8803 GB, free: 412 kB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.3725, allocations: 0 / 0.8803 GB, free: 412 kB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.3726, allocations: 0 / 0.8803 GB, free: 412 kB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.3726, allocations: 0 / 0.8803 GB, free: 412 kB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001149/0.3727, allocations: 11.98 kB / 0.8804 GB, free: 400 kB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001848/0.3729, allocations: 141.7 kB / 0.8805 GB, free: 208 kB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001038/0.373, allocations: 30.48 kB / 0.8805 GB, free: 168 kB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.3731, allocations: 4 kB / 0.8805 GB, free: 164 kB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.3731, allocations: 34.56 kB / 0.8806 GB, free: 120 kB / 0.5417 GB Notification: Performance of pre-optimization done (n=1): time 1.372e-06/0.3731, allocations: 4.062 kB / 0.8806 GB, free: 116 kB / 0.5417 GB Notification: Performance of matching and sorting (n=1): time 0.0002829/0.3734, allocations: 41.67 kB / 0.8806 GB, free: 68 kB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/0.3735, allocations: 51.41 kB / 0.8806 GB, free: 4 kB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4027/0.7762, allocations: 85 kB / 0.8807 GB, free: 109.4 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.7763, allocations: 27.58 kB / 0.8808 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 1.682e-05/0.7763, allocations: 80.77 kB / 0.8808 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.181e-05/0.7764, allocations: 3.938 kB / 0.8808 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-06/0.7764, allocations: 3.016 kB / 0.8808 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.076e-05/0.7765, allocations: 313.6 kB / 0.8811 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.149e-05/0.7766, allocations: 4.438 kB / 0.8811 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.576e-05/0.7766, allocations: 5.656 kB / 0.8811 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.539e-05/0.7767, allocations: 10.31 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.7767, allocations: 0 / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001543/0.7769, allocations: 42.44 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.7769, allocations: 8.703 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.7769, allocations: 1.469 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.7769, allocations: 0.6875 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.929e-05/0.777, allocations: 5.312 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.777, allocations: 0 / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.162e-05/0.7771, allocations: 3.609 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-06/0.7771, allocations: 1.766 kB / 0.8812 GB, free: 108.9 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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.563e-05/0.7772, allocations: 113.8 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.324e-05/0.7772, allocations: 6.406 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.574e-05/0.7772, allocations: 4.375 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.7772, allocations: 1.25 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.7773, allocations: 0 / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.7773, allocations: 0.6094 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.931e-05/0.7773, allocations: 151.7 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.7773, allocations: 0.5156 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.126e-05/0.7774, allocations: 8.547 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.7774, allocations: 6.016 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.7774, allocations: 6.516 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.7774, allocations: 0 / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.7774, allocations: 0 / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000147/0.7776, allocations: 73.33 kB / 0.8816 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 1.993e-05/0.7776, allocations: 81.72 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.7776, allocations: 1.719 kB / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.222e-05/0.7777, allocations: 6.688 kB / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.051e-05/0.7777, allocations: 1.594 kB / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.7777, allocations: 1.094 kB / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 1.376e-05/0.7777, allocations: 75.28 kB / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.71e-07/0.7777, allocations: 0 / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001938/0.7779, allocations: 7.312 kB / 0.8817 GB, free: 108.4 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.0003763/0.7783, allocations: 0.5975 MB / 0.8823 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001555/0.7785, allocations: 15.55 kB / 0.8823 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.7785, allocations: 1.344 kB / 0.8823 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.16e-05/0.7785, allocations: 6.359 kB / 0.8823 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.758e-05/0.7787, allocations: 7.016 kB / 0.8824 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003256/0.779, allocations: 112.8 kB / 0.8825 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.7791, allocations: 0.6729 MB / 0.8831 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.092e-05/0.7792, allocations: 7.891 kB / 0.8831 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.811e-05/0.7792, allocations: 9.094 kB / 0.8831 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of SimCode: time 3.2e-07/0.7792, allocations: 0 / 0.8831 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01216/0.7914, allocations: 0.7703 MB / 0.8839 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/0.7916, allocations: 192.6 kB / 0.8841 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.471/2.263, allocations: 0 / 0.8841 GB, free: 106.6 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)