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.00176/0.00176, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.002096/0.002096, allocations: 213.4 kB / 23.03 MB, free: 4.926 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.588/1.588, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.505/3.505, allocations: 0.5003 GB / 0.8062 GB, free: 28.28 MB / 0.6231 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.002048/0.002048, allocations: 66.64 kB / 1.171 GB, free: 19.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4311/0.4332, allocations: 179 MB / 1.345 GB, free: 15.9 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001968/0.4352, allocations: 0.5865 MB / 1.346 GB, free: 15.31 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0002838/0.4354, allocations: 44.22 kB / 1.346 GB, free: 15.27 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.726e-05/0.4355, allocations: 0 / 1.346 GB, free: 15.27 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.728e-05/0.4355, allocations: 4 kB / 1.346 GB, free: 15.27 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.213e-06/0.4355, allocations: 7.938 kB / 1.346 GB, free: 15.26 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002545/0.4357, allocations: 19.92 kB / 1.346 GB, free: 15.24 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 4.66e-05/0.4358, allocations: 3.984 kB / 1.346 GB, free: 15.23 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.864e-05/0.4358, allocations: 3.938 kB / 1.346 GB, free: 15.23 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 1.242e-05/0.4359, allocations: 4 kB / 1.346 GB, free: 15.23 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 1.966e-05/0.4359, allocations: 0 / 1.346 GB, free: 15.23 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 9.819e-06/0.4359, allocations: 0 / 1.346 GB, free: 15.23 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.436, allocations: 23.97 kB / 1.346 GB, free: 15.2 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.424e-05/0.436, allocations: 0 / 1.346 GB, free: 15.2 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 1.512e-05/0.436, allocations: 4 kB / 1.346 GB, free: 15.2 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 9.304e-05/0.4361, allocations: 12.27 kB / 1.346 GB, free: 15.19 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.4361, allocations: 4 kB / 1.346 GB, free: 15.18 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.565e-06/0.4361, allocations: 0 / 1.346 GB, free: 15.18 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.4361, allocations: 0 / 1.346 GB, free: 15.18 MB / 1.045 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.0003946/0.4365, allocations: 246.4 kB / 1.346 GB, free: 14.91 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.4366, allocations: 8.031 kB / 1.346 GB, free: 14.9 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.637e-05/0.4366, allocations: 192 / 1.346 GB, free: 14.9 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.665e-05/0.4366, allocations: 34.75 kB / 1.346 GB, free: 14.86 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003017/0.4369, allocations: 24.91 kB / 1.346 GB, free: 14.84 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.437, allocations: 110.5 kB / 1.346 GB, free: 14.7 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.083e-06/0.437, allocations: 384 / 1.346 GB, free: 14.7 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.404e-05/0.4371, allocations: 4.312 kB / 1.346 GB, free: 14.7 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001561/0.4372, allocations: 38 kB / 1.346 GB, free: 14.66 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.4372, allocations: 4 kB / 1.346 GB, free: 14.65 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.749e-06/0.4372, allocations: 0 / 1.346 GB, free: 14.65 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.4372, allocations: 0 / 1.346 GB, free: 14.65 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.883e-05/0.4373, allocations: 7.984 kB / 1.346 GB, free: 14.64 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001823/0.4375, allocations: 124.8 kB / 1.347 GB, free: 14.48 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.4376, allocations: 26.53 kB / 1.347 GB, free: 14.45 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.024e-05/0.4377, allocations: 4.859 kB / 1.347 GB, free: 14.44 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.4377, allocations: 4.062 kB / 1.347 GB, free: 14.43 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.4377, allocations: 38.5 kB / 1.347 GB, free: 14.39 MB / 1.045 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.4377, allocations: 0 / 1.347 GB, free: 14.39 MB / 1.045 GB Notification: Performance of matching and sorting (n=1): time 0.0002786/0.438, allocations: 49.62 kB / 1.347 GB, free: 14.33 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/0.4381, allocations: 55.53 kB / 1.347 GB, free: 14.27 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.922e-05/0.4381, allocations: 89.86 kB / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.4381, allocations: 25.7 kB / 1.347 GB, free: 14.14 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.657e-05/0.4382, allocations: 80.14 kB / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.273e-05/0.4382, allocations: 3.938 kB / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.783e-05/0.4383, allocations: 13.72 kB / 1.347 GB, free: 14.03 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.4384, allocations: 318.8 kB / 1.347 GB, free: 13.71 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.712e-05/0.4384, allocations: 4 kB / 1.347 GB, free: 13.71 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.983e-05/0.4385, allocations: 7.984 kB / 1.347 GB, free: 13.7 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001001/0.4386, allocations: 16.92 kB / 1.347 GB, free: 13.68 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.4386, allocations: 3.984 kB / 1.347 GB, free: 13.68 MB / 1.045 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.00012/0.4387, allocations: 41.62 kB / 1.347 GB, free: 13.63 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.4387, allocations: 10.12 kB / 1.347 GB, free: 13.62 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.4387, allocations: 0 / 1.347 GB, free: 13.62 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.4388, allocations: 4 kB / 1.347 GB, free: 13.62 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.004e-05/0.4388, allocations: 0 / 1.347 GB, free: 13.62 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.4388, allocations: 3.938 kB / 1.347 GB, free: 13.61 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.093e-05/0.4389, allocations: 12.02 kB / 1.347 GB, free: 13.6 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.4389, allocations: 0 / 1.347 GB, free: 13.6 MB / 1.045 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.159e-05/0.439, allocations: 109.8 kB / 1.347 GB, free: 13.48 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.538e-06/0.439, allocations: 3.938 kB / 1.347 GB, free: 13.48 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.245e-05/0.439, allocations: 7 kB / 1.347 GB, free: 13.47 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.439, allocations: 0 / 1.347 GB, free: 13.47 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.439, allocations: 3.938 kB / 1.347 GB, free: 13.46 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.439, allocations: 0 / 1.347 GB, free: 13.46 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.864e-05/0.4391, allocations: 120.7 kB / 1.348 GB, free: 13.3 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.4391, allocations: 4 kB / 1.348 GB, free: 13.3 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.363e-05/0.4392, allocations: 4 kB / 1.348 GB, free: 13.3 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.4392, allocations: 3.938 kB / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.4392, allocations: 0 / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.4392, allocations: 8 kB / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4392, allocations: 0 / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001488/0.4393, allocations: 65.11 kB / 1.348 GB, free: 13.2 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 8.656e-06/0.4393, allocations: 7.938 kB / 1.348 GB, free: 13.2 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.309e-05/0.4393, allocations: 7.875 kB / 1.348 GB, free: 13.19 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.129e-05/0.4394, allocations: 4.031 kB / 1.348 GB, free: 13.18 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.517e-05/0.4394, allocations: 0 / 1.348 GB, free: 13.18 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.4394, allocations: 7.984 kB / 1.348 GB, free: 13.18 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.356e-05/0.4394, allocations: 75.28 kB / 1.348 GB, free: 13.1 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4394, allocations: 0 / 1.348 GB, free: 13.1 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0001736/0.4396, allocations: 0 / 1.348 GB, free: 13.1 MB / 1.045 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.0004639/0.4401, allocations: 0.5929 MB / 1.348 GB, free: 12.48 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001562/0.4402, allocations: 23.95 kB / 1.348 GB, free: 12.45 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4402, allocations: 0 / 1.348 GB, free: 12.45 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 4.341e-05/0.4403, allocations: 7.984 kB / 1.348 GB, free: 12.45 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001438/0.4404, allocations: 4 kB / 1.348 GB, free: 12.44 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003819/0.4408, allocations: 106.6 kB / 1.348 GB, free: 12.3 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.814e-05/0.4408, allocations: 55.34 kB / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.803e-05/0.4409, allocations: 12.12 kB / 1.349 GB, free: 12.21 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.881e-05/0.4409, allocations: 7.438 kB / 1.349 GB, free: 12.2 MB / 1.045 GB Notification: Performance of SimCode: time 3e-07/0.4409, allocations: 3.938 kB / 1.349 GB, free: 12.2 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02117/0.4621, allocations: 1.113 MB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.64, allocations: 64 / 1.35 GB, free: 11.23 MB / 1.045 GB " [Timeout remaining time 288] (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: 19.063375937985256]