Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008572/0.0008572, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008976/0.0008976, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8964/0.8964, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.773/1.773, allocations: 377.8 MB / 0.6221 GB, free: 8.648 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 3.938 kB / 0.981 GB, free: 2.52 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.251e-05/1.415e-05, allocations: 2.281 kB / 0.981 GB, free: 2.516 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001071/0.001085, allocations: 0.5916 MB / 0.9816 GB, free: 1.926 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0002027/0.001287, allocations: 43.86 kB / 0.9816 GB, free: 1.883 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.361e-05/0.001301, allocations: 0 / 0.9816 GB, free: 1.883 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 1.326e-05/0.001314, allocations: 0 / 0.9816 GB, free: 1.883 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 5.771e-06/0.00132, allocations: 7.938 kB / 0.9816 GB, free: 1.875 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002096/0.00153, allocations: 15.98 kB / 0.9817 GB, free: 1.859 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 3.953e-05/0.001569, allocations: 3.984 kB / 0.9817 GB, free: 1.855 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 3.583e-05/0.001605, allocations: 0 / 0.9817 GB, free: 1.855 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 2.191e-05/0.001627, allocations: 0 / 0.9817 GB, free: 1.855 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 2.111e-05/0.001648, allocations: 4 kB / 0.9817 GB, free: 1.852 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.033e-05/0.001658, allocations: 0 / 0.9817 GB, free: 1.852 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 8.779e-05/0.001746, allocations: 15.98 kB / 0.9817 GB, free: 1.836 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.121e-05/0.001757, allocations: 0 / 0.9817 GB, free: 1.836 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.369e-05/0.001771, allocations: 7.938 kB / 0.9817 GB, free: 1.828 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 7.478e-05/0.001846, allocations: 19.91 kB / 0.9817 GB, free: 1.809 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.001848, allocations: 4 kB / 0.9817 GB, free: 1.805 MB / 0.9323 GB Notification: Performance of FrontEnd: time 7.42e-07/0.001849, allocations: 0 / 0.9817 GB, free: 1.805 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.236e-06/0.001852, allocations: 4 kB / 0.9817 GB, free: 1.801 MB / 0.9323 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.0002015/0.002053, allocations: 246.4 kB / 0.9819 GB, free: 1.527 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.002088, allocations: 8.031 kB / 0.982 GB, free: 1.52 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.558e-05/0.002113, allocations: 30.75 kB / 0.982 GB, free: 1.48 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.002291, allocations: 20.91 kB / 0.982 GB, free: 1.461 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.238e-05/0.002344, allocations: 105.8 kB / 0.9821 GB, free: 1.332 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.666e-06/0.002352, allocations: 4.375 kB / 0.9821 GB, free: 1.328 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.994e-06/0.002359, allocations: 384 / 0.9821 GB, free: 1.328 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.699e-05/0.002456, allocations: 34.25 kB / 0.9821 GB, free: 1.289 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.002463, allocations: 192 / 0.9821 GB, free: 1.289 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.203e-06/0.00247, allocations: 384 / 0.9821 GB, free: 1.289 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.002476, allocations: 4.125 kB / 0.9821 GB, free: 1.285 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.735e-05/0.002523, allocations: 15.92 kB / 0.9822 GB, free: 1.27 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001039/0.002627, allocations: 120.8 kB / 0.9823 GB, free: 1.109 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 5.099e-05/0.002678, allocations: 22.55 kB / 0.9823 GB, free: 1.078 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.999e-05/0.002708, allocations: 20.89 kB / 0.9823 GB, free: 1.055 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.002726, allocations: 0 / 0.9823 GB, free: 1.055 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.002744, allocations: 34.56 kB / 0.9824 GB, free: 1.012 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=1): time 4.8e-07/0.002744, allocations: 0 / 0.9824 GB, free: 1.012 MB / 0.9323 GB Notification: Performance of matching and sorting (n=1): time 0.000154/0.002898, allocations: 41.69 kB / 0.9824 GB, free: 0.9648 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.108e-05/0.002929, allocations: 67.27 kB / 0.9825 GB, free: 0.8867 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.36e-05/0.002953, allocations: 89.86 kB / 0.9825 GB, free: 0.7891 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.002963, allocations: 25.83 kB / 0.9826 GB, free: 0.7578 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 1.838e-05/0.002982, allocations: 88.12 kB / 0.9826 GB, free: 0.668 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 2.621e-05/0.003008, allocations: 3.938 kB / 0.9827 GB, free: 0.6641 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.359e-05/0.003031, allocations: 13.72 kB / 0.9827 GB, free: 0.6445 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 7.2e-05/0.003103, allocations: 314.8 kB / 0.983 GB, free: 336 kB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.898e-05/0.003132, allocations: 7.984 kB / 0.983 GB, free: 328 kB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.17e-05/0.003154, allocations: 0 / 0.983 GB, free: 328 kB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.075e-05/0.003205, allocations: 20.78 kB / 0.983 GB, free: 304 kB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.003207, allocations: 4.062 kB / 0.983 GB, free: 300 kB / 0.9323 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.517e-05/0.003272, allocations: 45.62 kB / 0.983 GB, free: 248 kB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.003284, allocations: 4 kB / 0.983 GB, free: 244 kB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.003288, allocations: 0 / 0.983 GB, free: 244 kB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.003299, allocations: 0 / 0.983 GB, free: 244 kB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.909e-05/0.003348, allocations: 7.984 kB / 0.9831 GB, free: 236 kB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.003354, allocations: 3.938 kB / 0.9831 GB, free: 232 kB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.565e-05/0.00337, allocations: 0 / 0.9831 GB, free: 232 kB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.003377, allocations: 4 kB / 0.9831 GB, free: 228 kB / 0.9323 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 4.842e-05/0.003426, allocations: 113.9 kB / 0.9832 GB, free: 104 kB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.717e-06/0.003429, allocations: 0 / 0.9832 GB, free: 104 kB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.402e-05/0.003453, allocations: 6.984 kB / 0.9832 GB, free: 100 kB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.003455, allocations: 0 / 0.9832 GB, free: 100 kB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.003461, allocations: 3.938 kB / 0.9832 GB, free: 96 kB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-06/0.003463, allocations: 4 kB / 0.9832 GB, free: 92 kB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.421e-05/0.003527, allocations: 112.8 kB / 0.9833 GB, free: 15.94 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.003528, allocations: 0 / 0.9833 GB, free: 15.94 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.888e-05/0.003547, allocations: 7.984 kB / 0.9833 GB, free: 15.93 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.003548, allocations: 4 kB / 0.9833 GB, free: 15.93 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.751e-06/0.003554, allocations: 0 / 0.9833 GB, free: 15.93 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.82e-07/0.003554, allocations: 0 / 0.9833 GB, free: 15.93 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.003557, allocations: 7.938 kB / 0.9833 GB, free: 15.92 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.262e-05/0.00364, allocations: 69.06 kB / 0.9834 GB, free: 15.83 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.718e-06/0.003644, allocations: 4 kB / 0.9834 GB, free: 15.83 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.648e-06/0.003654, allocations: 7.922 kB / 0.9834 GB, free: 15.82 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.16e-05/0.003666, allocations: 4 kB / 0.9834 GB, free: 15.82 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.055e-05/0.003676, allocations: 3.938 kB / 0.9834 GB, free: 15.81 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.003678, allocations: 4.031 kB / 0.9834 GB, free: 15.81 MB / 0.948 GB Notification: Performance of sorting global known variables: time 1.898e-05/0.003697, allocations: 75.28 kB / 0.9835 GB, free: 15.73 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.003697, allocations: 0 / 0.9835 GB, free: 15.73 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001185/0.003815, allocations: 4 kB / 0.9835 GB, free: 15.73 MB / 0.948 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.0002263/0.004042, allocations: 0.593 MB / 0.9841 GB, free: 15.11 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 9.039e-05/0.004132, allocations: 15.92 kB / 0.9841 GB, free: 15.09 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.552e-06/0.004134, allocations: 96 / 0.9841 GB, free: 15.09 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 1.907e-05/0.004153, allocations: 11.98 kB / 0.9841 GB, free: 15.08 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.234e-05/0.004245, allocations: 15 kB / 0.9841 GB, free: 15.07 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000291/0.004536, allocations: 102.7 kB / 0.9842 GB, free: 14.93 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.21e-05/0.004568, allocations: 59.22 kB / 0.9842 GB, free: 14.85 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.378e-05/0.004592, allocations: 4.062 kB / 0.9843 GB, free: 14.85 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.483e-05/0.004617, allocations: 8.5 kB / 0.9843 GB, free: 14.84 MB / 0.948 GB Notification: Performance of SimCode: time 6.31e-07/0.004617, allocations: 0 / 0.9843 GB, free: 14.84 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01426/0.01888, allocations: 1.587 MB / 0.9858 GB, free: 13.38 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.935/6.954, allocations: 10.23 kB / 0.9858 GB, free: 13.37 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep_res.csv --start-time -1 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_12_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.08273795992136]