Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_9_Buildings_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.008513/0.008513, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.00214/0.00214, allocations: 195.5 kB / 16.67 MB, free: 5.52 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.298/2.298, allocations: 390.3 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 67.89 kB / 0.9504 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7815/0.7828, allocations: 140.4 MB / 1.088 GB, free: 5.242 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001657/0.7845, allocations: 0.5712 MB / 1.088 GB, free: 4.895 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002332/0.7847, allocations: 55.12 kB / 1.088 GB, free: 4.863 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.531e-05/0.7848, allocations: 0 / 1.088 GB, free: 4.863 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.128e-05/0.7848, allocations: 4 kB / 1.088 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.901e-06/0.7848, allocations: 0 / 1.088 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002116/0.785, allocations: 16.73 kB / 1.088 GB, free: 4.852 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 3.73e-05/0.7851, allocations: 1.781 kB / 1.088 GB, free: 4.852 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.431e-05/0.7851, allocations: 2.188 kB / 1.088 GB, free: 4.852 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.292e-05/0.7851, allocations: 2.469 kB / 1.088 GB, free: 4.852 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 1.892e-05/0.7852, allocations: 0 / 1.088 GB, free: 4.852 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.816e-06/0.7852, allocations: 3.984 kB / 1.088 GB, free: 4.848 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.916e-05/0.7853, allocations: 20.92 kB / 1.088 GB, free: 4.844 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.407e-06/0.7853, allocations: 0 / 1.088 GB, free: 4.844 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.542e-05/0.7853, allocations: 9.812 kB / 1.088 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 8.017e-05/0.7854, allocations: 19.31 kB / 1.088 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.7854, allocations: 0 / 1.088 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.092e-06/0.7854, allocations: 0 / 1.088 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.08e-06/0.7854, allocations: 0 / 1.088 GB, free: 4.828 MB / 0.8575 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.000189/0.7856, allocations: 314.1 kB / 1.089 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.7857, allocations: 9.906 kB / 1.089 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.657e-05/0.7857, allocations: 34.75 kB / 1.089 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000262/0.786, allocations: 22.28 kB / 1.089 GB, free: 4.43 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.138e-05/0.786, allocations: 162.8 kB / 1.089 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.786, allocations: 384 / 1.089 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.518e-06/0.7861, allocations: 1.438 kB / 1.089 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.7862, allocations: 38.98 kB / 1.089 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.7862, allocations: 3.938 kB / 1.089 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-06/0.7862, allocations: 0 / 1.089 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.7862, allocations: 1.125 kB / 1.089 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.433e-05/0.7863, allocations: 12.83 kB / 1.089 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001047/0.7864, allocations: 149 kB / 1.089 GB, free: 4 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.615e-05/0.7865, allocations: 20.69 kB / 1.089 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.36e-05/0.7866, allocations: 11.02 kB / 1.089 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.7866, allocations: 0 / 1.089 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.558e-05/0.7866, allocations: 40.2 kB / 1.089 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.7866, allocations: 3.938 kB / 1.089 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0002341/0.7869, allocations: 51.77 kB / 1.089 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.001e-05/0.7869, allocations: 52.47 kB / 1.089 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.482e-05/0.7869, allocations: 90.56 kB / 1.089 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.592e-06/0.7869, allocations: 25.7 kB / 1.089 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.229e-05/0.787, allocations: 81.23 kB / 1.089 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.892e-05/0.787, allocations: 4.859 kB / 1.089 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/0.787, allocations: 17.05 kB / 1.089 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.263e-05/0.7871, allocations: 311.6 kB / 1.09 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.021e-05/0.7871, allocations: 5.328 kB / 1.09 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.231e-05/0.7872, allocations: 4.969 kB / 1.09 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.554e-05/0.7873, allocations: 23.03 kB / 1.09 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.7873, allocations: 4.062 kB / 1.09 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001211/0.7874, allocations: 40.38 kB / 1.09 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.7874, allocations: 5.031 kB / 1.09 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.7874, allocations: 5.062 kB / 1.09 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.7875, allocations: 0 / 1.09 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.043e-05/0.7875, allocations: 5.25 kB / 1.09 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.7875, allocations: 0 / 1.09 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.499e-05/0.7876, allocations: 3.594 kB / 1.09 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.7876, allocations: 0 / 1.09 GB, free: 3.215 MB / 0.8575 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.18e-05/0.7876, allocations: 111.5 kB / 1.09 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.007e-06/0.7877, allocations: 1.719 kB / 1.09 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.751e-05/0.7877, allocations: 7.672 kB / 1.09 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.7877, allocations: 1.031 kB / 1.09 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.7877, allocations: 3.938 kB / 1.09 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.7877, allocations: 1.672 kB / 1.09 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.872e-05/0.7878, allocations: 148.5 kB / 1.09 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.7878, allocations: 0 / 1.09 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.541e-05/0.7878, allocations: 13.11 kB / 1.09 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.7878, allocations: 0 / 1.09 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.7878, allocations: 5.891 kB / 1.09 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.7878, allocations: 0 / 1.09 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.7879, allocations: 1.125 kB / 1.09 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000142/0.788, allocations: 64.23 kB / 1.09 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.567e-05/0.788, allocations: 85.17 kB / 1.09 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.788, allocations: 8.531 kB / 1.09 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.393e-05/0.7881, allocations: 7.094 kB / 1.09 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.281e-05/0.7881, allocations: 0.8438 kB / 1.09 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.7881, allocations: 1 kB / 1.09 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.078e-05/0.7881, allocations: 75.28 kB / 1.09 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of sort global known variables: time 6.31e-07/0.7881, allocations: 1.094 kB / 1.09 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000189/0.7883, allocations: 5.031 kB / 1.09 GB, free: 2.629 MB / 0.8575 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.0002771/0.7886, allocations: 0.6073 MB / 1.091 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001445/0.7888, allocations: 12.28 kB / 1.091 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.7888, allocations: 0.9688 kB / 1.091 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.647e-05/0.7888, allocations: 10.39 kB / 1.091 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.789, allocations: 6.344 kB / 1.091 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002975/0.7893, allocations: 120.3 kB / 1.091 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.7895, allocations: 0.6712 MB / 1.092 GB, free: 17.18 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.936e-05/0.7896, allocations: 1.25 kB / 1.092 GB, free: 17.18 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.425e-05/0.7896, allocations: 13.23 kB / 1.092 GB, free: 17.17 MB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/0.7896, allocations: 0 / 1.092 GB, free: 17.17 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01811/0.8077, allocations: 0.9475 MB / 1.093 GB, free: 16.81 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.41/8.218, allocations: 5.859 kB / 1.093 GB, free: 16.81 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches