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 1.212/1.212, allocations: 141.7 MB / 154.3 MB, free: 15.5 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.001163/0.001163, allocations: 186.6 kB / 187.3 MB, free: 11.89 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.769/1.769, allocations: 221.3 MB / 441.4 MB, free: 4.617 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.000986/0.0009866, allocations: 103 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.00201/0.00201, allocations: 273.1 kB / 0.5939 GB, free: 7.984 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.289e-05/5.291e-05, allocations: 4 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6145/0.6146, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1465/0.7612, allocations: 107.8 MB / 0.8697 GB, free: 0.7188 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.7615, allocations: 80.5 kB / 0.8698 GB, free: 0.6406 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001266/0.7628, allocations: 0.5448 MB / 0.8703 GB, free: 104 kB / 0.5261 GB Notification: Performance of FrontEnd: time 1.923e-06/0.7628, allocations: 0 / 0.8703 GB, free: 104 kB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.7628, allocations: 0 / 0.8703 GB, free: 104 kB / 0.5261 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.0002762/0.7631, allocations: 310.5 kB / 0.8706 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.7632, allocations: 8.031 kB / 0.8706 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.07e-05/0.7632, allocations: 31.38 kB / 0.8706 GB, free: 15.71 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.7634, allocations: 19.41 kB / 0.8706 GB, free: 15.69 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.738e-05/0.7635, allocations: 159.1 kB / 0.8708 GB, free: 15.5 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.7635, allocations: 3.953 kB / 0.8708 GB, free: 15.49 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.359e-05/0.7635, allocations: 0 / 0.8708 GB, free: 15.49 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.7637, allocations: 37.69 kB / 0.8708 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.7637, allocations: 0 / 0.8708 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.7637, allocations: 0 / 0.8708 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.7637, allocations: 0 / 0.8708 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.895e-05/0.7637, allocations: 11.16 kB / 0.8709 GB, free: 15.44 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001509/0.7639, allocations: 145.7 kB / 0.871 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 4.705e-05/0.764, allocations: 22.56 kB / 0.871 GB, free: 15.22 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.96e-05/0.764, allocations: 4.859 kB / 0.871 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.764, allocations: 4 kB / 0.871 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.764, allocations: 42.48 kB / 0.8711 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.764, allocations: 0 / 0.8711 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1): time 0.0001362/0.7642, allocations: 37.69 kB / 0.8711 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.7642, allocations: 55.41 kB / 0.8711 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.97e-05/0.7643, allocations: 85 kB / 0.8712 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.7643, allocations: 25.7 kB / 0.8713 GB, free: 14.93 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.106e-05/0.7644, allocations: 80.14 kB / 0.8713 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.902e-05/0.7644, allocations: 0 / 0.8713 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-06/0.7644, allocations: 4.031 kB / 0.8713 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.7645, allocations: 310.8 kB / 0.8716 GB, free: 14.53 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.511e-05/0.7645, allocations: 8 kB / 0.8716 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.873e-06/0.7646, allocations: 0 / 0.8716 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.782e-05/0.7646, allocations: 0 / 0.8716 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.7646, allocations: 0 / 0.8716 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.875e-05/0.7646, allocations: 41.62 kB / 0.8717 GB, free: 14.47 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.7647, allocations: 7.953 kB / 0.8717 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.7647, allocations: 8.031 kB / 0.8717 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.7647, allocations: 0 / 0.8717 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.195e-05/0.7648, allocations: 4 kB / 0.8717 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.7648, allocations: 2.266 kB / 0.8717 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.346e-05/0.7648, allocations: 7.984 kB / 0.8717 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.7648, allocations: 0 / 0.8717 GB, free: 14.45 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 (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.769e-05/0.7649, allocations: 101 kB / 0.8718 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.052e-06/0.7649, allocations: 0 / 0.8718 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.052e-05/0.765, allocations: 11.08 kB / 0.8718 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.765, allocations: 0 / 0.8718 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.765, allocations: 4 kB / 0.8718 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.765, allocations: 0 / 0.8718 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.7651, allocations: 157.7 kB / 0.872 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.7651, allocations: 0 / 0.872 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.809e-05/0.7651, allocations: 4 kB / 0.872 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.7651, allocations: 0 / 0.872 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.7652, allocations: 0 / 0.872 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/0.7652, allocations: 7.938 kB / 0.872 GB, free: 14.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.7652, allocations: 0 / 0.872 GB, free: 14.11 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.273e-05/0.7653, allocations: 61.08 kB / 0.872 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.773e-05/0.7653, allocations: 81.02 kB / 0.8721 GB, free: 13.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.7653, allocations: 3.984 kB / 0.8721 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.287e-05/0.7654, allocations: 4 kB / 0.8721 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.876e-05/0.7654, allocations: 3.953 kB / 0.8721 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-06/0.7654, allocations: 4 kB / 0.8721 GB, free: 13.92 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.478e-05/0.7654, allocations: 79.31 kB / 0.8722 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7655, allocations: 3.938 kB / 0.8722 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001573/0.7656, allocations: 0 / 0.8722 GB, free: 13.84 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 (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.000349/0.766, allocations: 0.5891 MB / 0.8728 GB, free: 13.22 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 6.656e-05/0.766, allocations: 7.938 kB / 0.8728 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.7661, allocations: 4.094 kB / 0.8728 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 9.157e-06/0.7661, allocations: 4 kB / 0.8728 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.476e-05/0.7662, allocations: 3.953 kB / 0.8728 GB, free: 13.2 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002798/0.7665, allocations: 82.83 kB / 0.8729 GB, free: 13.09 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002487/0.7667, allocations: 0.6731 MB / 0.8735 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.677e-05/0.7668, allocations: 8.062 kB / 0.8735 GB, free: 12.38 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.916e-05/0.7668, allocations: 11.38 kB / 0.8736 GB, free: 12.37 MB / 0.5417 GB Notification: Performance of SimCode: time 3.11e-07/0.7668, allocations: 0 / 0.8736 GB, free: 12.37 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01203/0.7788, allocations: 0.7565 MB / 0.8743 GB, free: 11.76 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001981/0.7791, allocations: 161.5 kB / 0.8745 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.748/2.527, allocations: 0 / 0.8745 GB, free: 11.54 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)