Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001341/0.001341, allocations: 117.1 kB / 17.16 MB, free: 5.895 MB / 14.72 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.001412/0.001412, allocations: 215 kB / 20.13 MB, free: 2.949 MB / 14.72 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 1.649/1.649, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.123/3.123, allocations: 0.5003 GB / 0.8026 GB, free: 6.684 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 71.89 kB / 1.165 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.168/1.17, allocations: 178.9 MB / 1.34 GB, free: 13.79 MB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001968/1.172, allocations: 0.5855 MB / 1.341 GB, free: 13.34 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0003127/1.172, allocations: 52.31 kB / 1.341 GB, free: 13.3 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.171e-05/1.172, allocations: 1.125 kB / 1.341 GB, free: 13.3 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.639e-05/1.172, allocations: 0 / 1.341 GB, free: 13.3 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.875e-06/1.172, allocations: 0 / 1.341 GB, free: 13.3 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002713/1.173, allocations: 9.422 kB / 1.341 GB, free: 13.3 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 5.143e-05/1.173, allocations: 9.062 kB / 1.341 GB, free: 13.29 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 5.506e-05/1.173, allocations: 5.047 kB / 1.341 GB, free: 13.29 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 1.655e-05/1.173, allocations: 5.078 kB / 1.341 GB, free: 13.28 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 2.645e-05/1.173, allocations: 1.094 kB / 1.341 GB, free: 13.28 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.026e-05/1.173, allocations: 4 kB / 1.341 GB, free: 13.28 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/1.173, allocations: 21.73 kB / 1.341 GB, free: 13.27 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.067e-05/1.173, allocations: 1.094 kB / 1.341 GB, free: 13.27 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 1.54e-05/1.173, allocations: 0 / 1.341 GB, free: 13.27 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001081/1.173, allocations: 22.66 kB / 1.341 GB, free: 13.25 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/1.173, allocations: 0 / 1.341 GB, free: 13.25 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.084e-06/1.173, allocations: 1.531 kB / 1.341 GB, free: 13.25 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.891e-06/1.173, allocations: 0 / 1.341 GB, free: 13.25 MB / 1.029 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.0003855/1.173, allocations: 312.2 kB / 1.341 GB, free: 12.9 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/1.173, allocations: 10.41 kB / 1.341 GB, free: 12.9 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.921e-05/1.173, allocations: 4.188 kB / 1.341 GB, free: 12.89 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.546e-05/1.174, allocations: 30.75 kB / 1.341 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002864/1.174, allocations: 18.31 kB / 1.341 GB, free: 12.85 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/1.174, allocations: 168.4 kB / 1.341 GB, free: 12.64 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.377e-05/1.174, allocations: 1.562 kB / 1.341 GB, free: 12.64 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.046e-06/1.174, allocations: 384 / 1.341 GB, free: 12.64 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001542/1.174, allocations: 42.19 kB / 1.341 GB, free: 12.6 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/1.174, allocations: 3.938 kB / 1.341 GB, free: 12.6 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/1.174, allocations: 1.094 kB / 1.341 GB, free: 12.6 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/1.174, allocations: 0 / 1.341 GB, free: 12.6 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.218e-05/1.174, allocations: 10.2 kB / 1.341 GB, free: 12.59 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001742/1.174, allocations: 143 kB / 1.342 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.533e-05/1.174, allocations: 25.53 kB / 1.342 GB, free: 12.38 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.373e-05/1.175, allocations: 12.33 kB / 1.342 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/1.175, allocations: 1.25 kB / 1.342 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/1.175, allocations: 38.48 kB / 1.342 GB, free: 12.32 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/1.175, allocations: 1.406 kB / 1.342 GB, free: 12.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0002605/1.175, allocations: 43.69 kB / 1.342 GB, free: 12.28 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/1.175, allocations: 52.69 kB / 1.342 GB, free: 12.21 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.437e-05/1.175, allocations: 93.98 kB / 1.342 GB, free: 12.11 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/1.175, allocations: 25.7 kB / 1.342 GB, free: 12.08 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 3.975e-05/1.175, allocations: 84.14 kB / 1.342 GB, free: 12 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.644e-05/1.175, allocations: 13.3 kB / 1.342 GB, free: 11.98 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.083e-05/1.175, allocations: 14.94 kB / 1.342 GB, free: 11.96 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001608/1.175, allocations: 311.9 kB / 1.342 GB, free: 11.65 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.757e-05/1.175, allocations: 3.281 kB / 1.342 GB, free: 11.65 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.765e-05/1.175, allocations: 15.8 kB / 1.342 GB, free: 11.64 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001021/1.175, allocations: 23.12 kB / 1.342 GB, free: 11.62 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/1.175, allocations: 0 / 1.342 GB, free: 11.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001322/1.176, allocations: 43.06 kB / 1.342 GB, free: 11.58 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/1.176, allocations: 8.875 kB / 1.342 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/1.176, allocations: 0 / 1.342 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/1.176, allocations: 1.344 kB / 1.342 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.963e-05/1.176, allocations: 10.92 kB / 1.342 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/1.176, allocations: 0 / 1.342 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.186e-05/1.176, allocations: 1.281 kB / 1.342 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-06/1.176, allocations: 1.344 kB / 1.342 GB, free: 11.57 MB / 1.029 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 8.423e-05/1.176, allocations: 107.4 kB / 1.342 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.491e-05/1.176, allocations: 3.938 kB / 1.342 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.119e-05/1.176, allocations: 3.125 kB / 1.342 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/1.176, allocations: 5.359 kB / 1.342 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/1.176, allocations: 4 kB / 1.343 GB, free: 11.44 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/1.176, allocations: 0 / 1.343 GB, free: 11.44 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001153/1.176, allocations: 142.8 kB / 1.343 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/1.176, allocations: 1.125 kB / 1.343 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.801e-05/1.176, allocations: 14.52 kB / 1.343 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/1.176, allocations: 3.938 kB / 1.343 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/1.176, allocations: 1.5 kB / 1.343 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/1.176, allocations: 0 / 1.343 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/1.176, allocations: 0 / 1.343 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001626/1.176, allocations: 63.5 kB / 1.343 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.414e-05/1.176, allocations: 82.31 kB / 1.343 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/1.176, allocations: 3.938 kB / 1.343 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.272e-05/1.176, allocations: 2.406 kB / 1.343 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.708e-06/1.176, allocations: 0 / 1.343 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-06/1.176, allocations: 5.328 kB / 1.343 GB, free: 11.06 MB / 1.029 GB Notification: Performance of sorting global known variables: time 3.668e-05/1.176, allocations: 79.28 kB / 1.343 GB, free: 10.98 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/1.176, allocations: 4.031 kB / 1.343 GB, free: 10.98 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001736/1.177, allocations: 1.375 kB / 1.343 GB, free: 10.98 MB / 1.029 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.0005095/1.177, allocations: 0.6035 MB / 1.343 GB, free: 10.37 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001643/1.177, allocations: 16.36 kB / 1.343 GB, free: 10.36 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/1.177, allocations: 0 / 1.343 GB, free: 10.36 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 4.841e-05/1.177, allocations: 8.172 kB / 1.344 GB, free: 10.36 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000146/1.177, allocations: 8.875 kB / 1.344 GB, free: 10.35 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003973/1.178, allocations: 126.3 kB / 1.344 GB, free: 10.2 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/1.178, allocations: 0.6702 MB / 1.344 GB, free: 9.508 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.698e-05/1.178, allocations: 6.344 kB / 1.344 GB, free: 9.504 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.476e-05/1.178, allocations: 7.438 kB / 1.344 GB, free: 9.5 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/1.178, allocations: 0 / 1.344 GB, free: 9.5 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01732/1.196, allocations: 0.9995 MB / 1.345 GB, free: 8.918 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.178/9.374, allocations: 20.38 kB / 1.345 GB, free: 8.902 MB / 1.029 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 16.429090293997433]