Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001285/0.001285, allocations: 97.88 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.001418/0.001418, allocations: 215.1 kB / 23.03 MB, free: 4.922 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.495/1.495, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.891/2.891, allocations: 476.8 MB / 0.7715 GB, free: 3.906 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_11_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.002021/0.002021, allocations: 67.47 kB / 1.118 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4325/0.4345, allocations: 169.9 MB / 1.284 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.002211/0.4367, allocations: 0.5866 MB / 1.285 GB, free: 2.75 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003466/0.4371, allocations: 52.14 kB / 1.285 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.137e-05/0.4371, allocations: 0 / 1.285 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.719e-05/0.4371, allocations: 0 / 1.285 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.524e-06/0.4371, allocations: 4 kB / 1.285 GB, free: 2.695 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003278/0.4375, allocations: 4 kB / 1.285 GB, free: 2.691 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.985e-05/0.4375, allocations: 7.969 kB / 1.285 GB, free: 2.684 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.29e-05/0.4376, allocations: 4 kB / 1.285 GB, free: 2.68 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.655e-05/0.4376, allocations: 11.94 kB / 1.285 GB, free: 2.668 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.839e-05/0.4376, allocations: 0 / 1.285 GB, free: 2.668 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.183e-05/0.4376, allocations: 0 / 1.285 GB, free: 2.668 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.4378, allocations: 19.98 kB / 1.285 GB, free: 2.648 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.543e-05/0.4378, allocations: 0 / 1.285 GB, free: 2.648 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2e-05/0.4378, allocations: 0 / 1.285 GB, free: 2.648 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.4379, allocations: 16.25 kB / 1.285 GB, free: 2.633 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.4379, allocations: 4 kB / 1.285 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of FrontEnd: time 4.469e-06/0.4379, allocations: 3.984 kB / 1.285 GB, free: 2.625 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.065e-05/0.4379, allocations: 0 / 1.285 GB, free: 2.625 MB / 0.9825 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.0003603/0.4383, allocations: 240.5 kB / 1.285 GB, free: 2.359 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.4384, allocations: 15.97 kB / 1.285 GB, free: 2.344 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.768e-05/0.4384, allocations: 192 / 1.285 GB, free: 2.344 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.308e-05/0.4384, allocations: 34.69 kB / 1.285 GB, free: 2.301 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003024/0.4387, allocations: 24.91 kB / 1.285 GB, free: 2.277 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.4388, allocations: 106.5 kB / 1.285 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.4388, allocations: 384 / 1.285 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/0.4389, allocations: 384 / 1.285 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/0.439, allocations: 42 kB / 1.285 GB, free: 2.102 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.439, allocations: 7.984 kB / 1.285 GB, free: 2.094 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.4391, allocations: 4 kB / 1.285 GB, free: 2.09 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.4391, allocations: 3.938 kB / 1.285 GB, free: 2.086 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.228e-05/0.4392, allocations: 7.984 kB / 1.285 GB, free: 2.078 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001924/0.4393, allocations: 120.8 kB / 1.285 GB, free: 1.918 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001041/0.4395, allocations: 22.59 kB / 1.285 GB, free: 1.887 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.489e-05/0.4395, allocations: 4.859 kB / 1.285 GB, free: 1.879 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.4395, allocations: 4.062 kB / 1.285 GB, free: 1.875 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.009e-05/0.4396, allocations: 34.5 kB / 1.285 GB, free: 1.832 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.252e-06/0.4396, allocations: 4 kB / 1.285 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0002878/0.4399, allocations: 53.61 kB / 1.286 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.199e-05/0.4399, allocations: 51.41 kB / 1.286 GB, free: 1.707 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.08e-05/0.44, allocations: 89.86 kB / 1.286 GB, free: 1.609 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.44, allocations: 25.7 kB / 1.286 GB, free: 1.578 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.455e-05/0.44, allocations: 80.14 kB / 1.286 GB, free: 1.496 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.498e-05/0.4401, allocations: 3.953 kB / 1.286 GB, free: 1.492 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.855e-05/0.4401, allocations: 13.72 kB / 1.286 GB, free: 1.473 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4403, allocations: 319 kB / 1.286 GB, free: 1.152 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.568e-05/0.4403, allocations: 4 kB / 1.286 GB, free: 1.148 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.065e-05/0.4404, allocations: 7.984 kB / 1.286 GB, free: 1.141 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.844e-05/0.4405, allocations: 24.78 kB / 1.286 GB, free: 1.113 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4405, allocations: 0 / 1.286 GB, free: 1.113 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001258/0.4406, allocations: 37.69 kB / 1.286 GB, free: 1.07 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.4406, allocations: 12.03 kB / 1.286 GB, free: 1.059 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.4406, allocations: 0 / 1.286 GB, free: 1.059 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.4406, allocations: 0 / 1.286 GB, free: 1.059 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.211e-05/0.4407, allocations: 4 kB / 1.286 GB, free: 1.055 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.4407, allocations: 0 / 1.286 GB, free: 1.055 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.633e-05/0.4408, allocations: 11.92 kB / 1.286 GB, free: 1.043 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.4408, allocations: 0 / 1.286 GB, free: 1.043 MB / 0.9825 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 0.0001106/0.4409, allocations: 105.8 kB / 1.286 GB, free: 0.9297 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.36e-05/0.4409, allocations: 3.938 kB / 1.286 GB, free: 0.9258 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.884e-05/0.4409, allocations: 7 kB / 1.286 GB, free: 0.9219 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.4409, allocations: 4 kB / 1.286 GB, free: 0.918 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4409, allocations: 0 / 1.286 GB, free: 0.918 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.441, allocations: 0 / 1.286 GB, free: 0.918 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.4411, allocations: 124.7 kB / 1.286 GB, free: 0.7539 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4411, allocations: 0 / 1.286 GB, free: 0.7539 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.527e-05/0.4411, allocations: 4 kB / 1.286 GB, free: 0.75 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.4411, allocations: 3.938 kB / 1.286 GB, free: 0.7461 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.4411, allocations: 0 / 1.286 GB, free: 0.7461 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.124e-05/0.4411, allocations: 7.938 kB / 1.286 GB, free: 0.7383 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4411, allocations: 0 / 1.286 GB, free: 0.7383 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001613/0.4413, allocations: 69.11 kB / 1.286 GB, free: 0.6523 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.139e-05/0.4413, allocations: 4 kB / 1.286 GB, free: 0.6484 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.4413, allocations: 3.938 kB / 1.287 GB, free: 0.6445 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.216e-05/0.4414, allocations: 4 kB / 1.287 GB, free: 0.6406 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.825e-05/0.4414, allocations: 0 / 1.287 GB, free: 0.6406 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.4414, allocations: 7.984 kB / 1.287 GB, free: 0.6328 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.005e-05/0.4414, allocations: 75.28 kB / 1.287 GB, free: 0.5586 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.4414, allocations: 0 / 1.287 GB, free: 0.5586 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001803/0.4416, allocations: 0 / 1.287 GB, free: 0.5586 MB / 0.9825 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.000569/0.4422, allocations: 0.6084 MB / 1.287 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001606/0.4423, allocations: 11.97 kB / 1.287 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.4423, allocations: 4 kB / 1.287 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 4.157e-05/0.4424, allocations: 4 kB / 1.287 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000145/0.4425, allocations: 0 / 1.287 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004824/0.443, allocations: 118.7 kB / 1.287 GB, free: 15.74 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.345e-05/0.4431, allocations: 63.28 kB / 1.287 GB, free: 15.66 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.337e-05/0.4431, allocations: 0 / 1.287 GB, free: 15.66 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.949e-05/0.4432, allocations: 11.42 kB / 1.287 GB, free: 15.65 MB / 0.9981 GB Notification: Performance of SimCode: time 6.21e-07/0.4432, allocations: 0 / 1.287 GB, free: 15.65 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0234/0.4666, allocations: 1.104 MB / 1.288 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.85, allocations: 21.77 kB / 1.288 GB, free: 14.67 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 18.67046855809167]