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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005616/0.005616, allocations: 101.2 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 193 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002169/0.00217, allocations: 286.8 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.917/0.917, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 95.98 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1546, allocations: 86.98 MB / 0.766 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.001686/0.1563, allocations: 0.5761 MB / 0.7665 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002498/0.1566, allocations: 47.78 kB / 0.7666 GB, free: 8.254 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.532e-05/0.1566, allocations: 0 / 0.7666 GB, free: 8.254 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.594e-05/0.1566, allocations: 0 / 0.7666 GB, free: 8.254 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.251e-06/0.1567, allocations: 4 kB / 0.7666 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002292/0.1569, allocations: 15.92 kB / 0.7666 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.288e-05/0.157, allocations: 7.984 kB / 0.7666 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.091e-05/0.157, allocations: 3.938 kB / 0.7666 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.449e-05/0.1571, allocations: 4 kB / 0.7666 GB, free: 8.219 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.035e-05/0.1571, allocations: 3.938 kB / 0.7666 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.297e-06/0.1571, allocations: 0 / 0.7666 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.881e-05/0.1572, allocations: 19.98 kB / 0.7666 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.017e-06/0.1572, allocations: 0 / 0.7666 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.6e-05/0.1572, allocations: 0 / 0.7666 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 8.677e-05/0.1573, allocations: 23.95 kB / 0.7666 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1573, allocations: 0 / 0.7666 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.966e-06/0.1573, allocations: 4 kB / 0.7666 GB, free: 8.168 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.1574, allocations: 4 kB / 0.7667 GB, free: 8.164 MB / 0.5606 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.0003151/0.1577, allocations: 303.6 kB / 0.7669 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.1577, allocations: 12.06 kB / 0.767 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.845e-05/0.1578, allocations: 34.73 kB / 0.767 GB, free: 7.762 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002635/0.158, allocations: 20.91 kB / 0.767 GB, free: 7.742 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.1582, allocations: 160.7 kB / 0.7672 GB, free: 7.547 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.1582, allocations: 4.359 kB / 0.7672 GB, free: 7.543 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.193e-05/0.1582, allocations: 8.375 kB / 0.7672 GB, free: 7.535 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001455/0.1583, allocations: 38.19 kB / 0.7672 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1584, allocations: 3.938 kB / 0.7672 GB, free: 7.488 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.1584, allocations: 0 / 0.7672 GB, free: 7.488 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1584, allocations: 3.938 kB / 0.7672 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.245e-05/0.1585, allocations: 7.984 kB / 0.7672 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001511/0.1586, allocations: 149.7 kB / 0.7674 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 8.347e-05/0.1587, allocations: 26.61 kB / 0.7674 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.915e-05/0.1588, allocations: 8.844 kB / 0.7674 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.1588, allocations: 4.062 kB / 0.7674 GB, free: 7.23 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.1588, allocations: 34.5 kB / 0.7674 GB, free: 7.188 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.001e-06/0.1588, allocations: 0 / 0.7674 GB, free: 7.188 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0002488/0.1591, allocations: 49.72 kB / 0.7675 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.1591, allocations: 55.39 kB / 0.7675 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.908e-05/0.1592, allocations: 89.86 kB / 0.7676 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.1592, allocations: 29.7 kB / 0.7676 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.391e-05/0.1592, allocations: 80.14 kB / 0.7677 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/0.1593, allocations: 7.844 kB / 0.7677 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-05/0.1593, allocations: 13.72 kB / 0.7677 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1594, allocations: 310.8 kB / 0.768 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.569e-05/0.1595, allocations: 12.02 kB / 0.7681 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.262e-05/0.1595, allocations: 0 / 0.7681 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.661e-05/0.1596, allocations: 20.78 kB / 0.7681 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1596, allocations: 0 / 0.7681 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001139/0.1597, allocations: 41.69 kB / 0.7681 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1598, allocations: 8.094 kB / 0.7681 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1598, allocations: 7.938 kB / 0.7681 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.1598, allocations: 3.938 kB / 0.7681 GB, free: 6.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.471e-05/0.1599, allocations: 7.984 kB / 0.7681 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.1599, allocations: 0 / 0.7681 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.2e-05/0.1599, allocations: 0 / 0.7681 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.1599, allocations: 4 kB / 0.7681 GB, free: 6.398 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.851e-05/0.16, allocations: 110.5 kB / 0.7682 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.171e-05/0.16, allocations: 3.984 kB / 0.7683 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.945e-05/0.1601, allocations: 11.06 kB / 0.7683 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1601, allocations: 0 / 0.7683 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.1601, allocations: 0 / 0.7683 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.1601, allocations: 3.938 kB / 0.7683 GB, free: 6.266 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.534e-05/0.1602, allocations: 149.7 kB / 0.7684 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.1602, allocations: 0 / 0.7684 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.33e-05/0.1603, allocations: 7.922 kB / 0.7684 GB, free: 6.062 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.1603, allocations: 4 kB / 0.7684 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.1603, allocations: 3.938 kB / 0.7684 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1603, allocations: 0 / 0.7684 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1603, allocations: 4 kB / 0.7684 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001326/0.1604, allocations: 61.11 kB / 0.7685 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.458e-05/0.1605, allocations: 81.11 kB / 0.7686 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.1605, allocations: 3.938 kB / 0.7686 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.922e-05/0.1605, allocations: 0 / 0.7686 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.463e-05/0.1605, allocations: 4 kB / 0.7686 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.1606, allocations: 4.031 kB / 0.7686 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.673e-05/0.1606, allocations: 79.28 kB / 0.7687 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1606, allocations: 0 / 0.7687 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001713/0.1608, allocations: 0 / 0.7687 GB, free: 5.785 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000415/0.1612, allocations: 0.6085 MB / 0.7692 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001307/0.1613, allocations: 11.98 kB / 0.7693 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1613, allocations: 0 / 0.7693 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 4.428e-05/0.1614, allocations: 11.92 kB / 0.7693 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.1615, allocations: 2.188 kB / 0.7693 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003402/0.1619, allocations: 118.8 kB / 0.7694 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001966/0.1621, allocations: 0.669 MB / 0.77 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.911e-05/0.1621, allocations: 3.984 kB / 0.77 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.415e-05/0.1621, allocations: 7.438 kB / 0.77 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of SimCode: time 2.81e-07/0.1622, allocations: 4 kB / 0.7701 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01551/0.1777, allocations: 0.9575 MB / 0.771 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.021/7.198, allocations: 7.922 kB / 0.771 GB, free: 3.395 MB / 0.5606 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/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)