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.8395/0.8395, allocations: 141.8 MB / 149.3 MB, free: 9.219 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.00126/0.00126, allocations: 179.9 kB / 182.2 MB, free: 9.426 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.645/1.645, allocations: 221.5 MB / 436.4 MB, free: 13.33 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.0008786/0.0008786, allocations: 84.11 kB / 0.5074 GB, free: 10.15 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001842/0.001842, allocations: 274.4 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.801e-05/2.804e-05, allocations: 12 kB / 0.6766 GB, free: 12.7 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.504/0.5041, allocations: 82.77 MB / 0.7575 GB, free: 31.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1474/0.6515, allocations: 107.2 MB / 0.8621 GB, free: 4.57 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.6518, allocations: 75.94 kB / 0.8622 GB, free: 4.496 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001461/0.6533, allocations: 0.5409 MB / 0.8627 GB, free: 3.961 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.483e-06/0.6534, allocations: 3.938 kB / 0.8628 GB, free: 3.957 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.6534, allocations: 0 / 0.8628 GB, free: 3.957 MB / 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.0002792/0.6537, allocations: 314.4 kB / 0.863 GB, free: 3.605 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.6537, allocations: 12.09 kB / 0.8631 GB, free: 3.594 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/0.6539, allocations: 17.16 kB / 0.8631 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.6541, allocations: 159.1 kB / 0.8632 GB, free: 3.383 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.6541, allocations: 7.953 kB / 0.8632 GB, free: 3.375 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.5e-05/0.6541, allocations: 0 / 0.8632 GB, free: 3.375 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.675e-05/0.6542, allocations: 3.984 kB / 0.8632 GB, free: 3.371 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.592e-05/0.6542, allocations: 29.7 kB / 0.8633 GB, free: 3.336 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.6543, allocations: 0 / 0.8633 GB, free: 3.336 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.6543, allocations: 0 / 0.8633 GB, free: 3.336 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.6543, allocations: 0 / 0.8633 GB, free: 3.336 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001499/0.6544, allocations: 126.2 kB / 0.8634 GB, free: 3.176 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 4.245e-05/0.6545, allocations: 26.55 kB / 0.8634 GB, free: 3.141 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.263e-05/0.6545, allocations: 8.859 kB / 0.8634 GB, free: 3.129 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.6545, allocations: 3.984 kB / 0.8634 GB, free: 3.125 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.6546, allocations: 38.58 kB / 0.8635 GB, free: 3.078 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.6546, allocations: 0 / 0.8635 GB, free: 3.078 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1): time 0.0001494/0.6547, allocations: 37.62 kB / 0.8635 GB, free: 3.035 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.511e-05/0.6548, allocations: 51.41 kB / 0.8635 GB, free: 2.973 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.314e-05/0.6548, allocations: 85 kB / 0.8636 GB, free: 2.883 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.6549, allocations: 29.73 kB / 0.8637 GB, free: 2.848 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.872e-05/0.6549, allocations: 80.14 kB / 0.8637 GB, free: 2.766 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.993e-05/0.655, allocations: 0 / 0.8637 GB, free: 2.766 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-06/0.655, allocations: 0 / 0.8637 GB, free: 2.766 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.6551, allocations: 314.8 kB / 0.864 GB, free: 2.449 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.049e-05/0.6551, allocations: 0 / 0.864 GB, free: 2.449 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.987e-06/0.6551, allocations: 3.938 kB / 0.864 GB, free: 2.445 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.931e-05/0.6552, allocations: 4 kB / 0.864 GB, free: 2.441 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.6552, allocations: 8.062 kB / 0.8641 GB, free: 2.434 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.266e-05/0.6552, allocations: 33.69 kB / 0.8641 GB, free: 2.395 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.6553, allocations: 4 kB / 0.8641 GB, free: 2.391 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.6553, allocations: 0 / 0.8641 GB, free: 2.391 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.6553, allocations: 3.953 kB / 0.8641 GB, free: 2.387 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.568e-05/0.6554, allocations: 4 kB / 0.8641 GB, free: 2.383 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.6554, allocations: 3.938 kB / 0.8641 GB, free: 2.379 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.524e-05/0.6554, allocations: 7.984 kB / 0.8641 GB, free: 2.371 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-06/0.6554, allocations: 0 / 0.8641 GB, free: 2.371 MB / 0.5261 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 8.536e-05/0.6555, allocations: 105.5 kB / 0.8642 GB, free: 2.262 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 5.21e-05/0.6556, allocations: 33.64 kB / 0.8642 GB, free: 2.223 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.358e-06/0.6556, allocations: 7.859 kB / 0.8642 GB, free: 2.215 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.307e-05/0.6556, allocations: 11.73 kB / 0.8643 GB, free: 2.203 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.6556, allocations: 0 / 0.8643 GB, free: 2.203 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.279e-06/0.6557, allocations: 0 / 0.8643 GB, free: 2.203 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.6557, allocations: 0 / 0.8643 GB, free: 2.203 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.127e-05/0.6558, allocations: 122.2 kB / 0.8644 GB, free: 2.047 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.6558, allocations: 0 / 0.8644 GB, free: 2.047 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.582e-05/0.6558, allocations: 16.02 kB / 0.8644 GB, free: 2.031 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.6558, allocations: 0 / 0.8644 GB, free: 2.031 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.034e-06/0.6558, allocations: 0 / 0.8644 GB, free: 2.031 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.6558, allocations: 3.953 kB / 0.8644 GB, free: 2.027 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.6559, allocations: 0 / 0.8644 GB, free: 2.027 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.787e-05/0.6559, allocations: 57.14 kB / 0.8644 GB, free: 1.953 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.345e-05/0.656, allocations: 81.09 kB / 0.8645 GB, free: 1.855 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.656, allocations: 0 / 0.8645 GB, free: 1.855 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.44e-05/0.6561, allocations: 8.031 kB / 0.8645 GB, free: 1.848 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.343e-05/0.6561, allocations: 3.953 kB / 0.8645 GB, free: 1.844 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.6561, allocations: 0 / 0.8645 GB, free: 1.844 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.359e-05/0.6561, allocations: 79.22 kB / 0.8646 GB, free: 1.766 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6561, allocations: 0 / 0.8646 GB, free: 1.766 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002016/0.6563, allocations: 7.938 kB / 0.8646 GB, free: 1.758 MB / 0.5261 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.0003928/0.6567, allocations: 0.5891 MB / 0.8652 GB, free: 1.141 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 6.695e-05/0.6568, allocations: 4 kB / 0.8652 GB, free: 1.137 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.6568, allocations: 0 / 0.8652 GB, free: 1.137 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 1.187e-05/0.6568, allocations: 7.984 kB / 0.8652 GB, free: 1.129 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.683e-05/0.6569, allocations: 3.953 kB / 0.8652 GB, free: 1.125 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002843/0.6572, allocations: 81.7 kB / 0.8653 GB, free: 1.008 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.6575, allocations: 0.6807 MB / 0.866 GB, free: 308 kB / 0.5261 GB Notification: Performance of simCode: alias equations: time 3.722e-05/0.6575, allocations: 0 / 0.866 GB, free: 308 kB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.665e-05/0.6576, allocations: 11.44 kB / 0.866 GB, free: 296 kB / 0.5261 GB Notification: Performance of SimCode: time 2.5e-07/0.6576, allocations: 0 / 0.866 GB, free: 296 kB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02013/0.6777, allocations: 471.7 kB / 0.8664 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002232/0.678, allocations: 151.4 kB / 0.8666 GB, free: 15.65 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.564/2.242, allocations: 9.188 kB / 0.8666 GB, free: 15.64 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)