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.001525/0.001525, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001917/0.001917, allocations: 219.4 kB / 23.04 MB, free: 5.078 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.51/1.51, allocations: 230.6 MB / 256.8 MB, free: 7.973 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.322/3.322, allocations: 0.5003 GB / 0.8061 GB, free: 26.72 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.002129/0.002129, allocations: 65.97 kB / 1.171 GB, free: 19.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4214/0.4235, allocations: 179 MB / 1.345 GB, free: 380 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.002072/0.4256, allocations: 0.5935 MB / 1.346 GB, free: 15.78 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0003086/0.4259, allocations: 52.14 kB / 1.346 GB, free: 15.73 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.981e-05/0.4259, allocations: 0 / 1.346 GB, free: 15.73 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.012e-05/0.426, allocations: 0 / 1.346 GB, free: 15.73 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.756e-06/0.426, allocations: 0 / 1.346 GB, free: 15.73 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.4263, allocations: 19.92 kB / 1.346 GB, free: 15.71 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 5.097e-05/0.4263, allocations: 4 kB / 1.346 GB, free: 15.7 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 5.602e-05/0.4264, allocations: 7.984 kB / 1.346 GB, free: 15.7 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 1.592e-05/0.4264, allocations: 0 / 1.346 GB, free: 15.7 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 2.962e-05/0.4264, allocations: 3.984 kB / 1.346 GB, free: 15.69 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.025e-05/0.4264, allocations: 0 / 1.346 GB, free: 15.69 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.4266, allocations: 27.97 kB / 1.346 GB, free: 15.66 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.072e-05/0.4266, allocations: 0 / 1.346 GB, free: 15.66 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 1.665e-05/0.4266, allocations: 0 / 1.346 GB, free: 15.66 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 8.794e-05/0.4267, allocations: 12.27 kB / 1.346 GB, free: 15.65 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.4267, allocations: 4 kB / 1.346 GB, free: 15.65 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.413e-06/0.4267, allocations: 0 / 1.346 GB, free: 15.65 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.991e-06/0.4267, allocations: 4 kB / 1.346 GB, free: 15.64 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.0003118/0.427, allocations: 246.3 kB / 1.346 GB, free: 15.37 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.427, allocations: 8.031 kB / 1.346 GB, free: 15.36 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.392e-05/0.427, allocations: 192 / 1.346 GB, free: 15.36 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.277e-05/0.4271, allocations: 30.75 kB / 1.346 GB, free: 15.32 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002558/0.4273, allocations: 20.91 kB / 1.346 GB, free: 15.3 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.03e-05/0.4274, allocations: 102.5 kB / 1.346 GB, free: 15.18 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.4274, allocations: 4.375 kB / 1.346 GB, free: 15.18 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.4275, allocations: 4.375 kB / 1.346 GB, free: 15.17 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001502/0.4276, allocations: 41.94 kB / 1.347 GB, free: 15.12 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.4276, allocations: 0 / 1.347 GB, free: 15.12 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.4276, allocations: 4 kB / 1.347 GB, free: 15.12 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.4276, allocations: 0 / 1.347 GB, free: 15.12 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.958e-05/0.4277, allocations: 7.984 kB / 1.347 GB, free: 15.11 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001493/0.4279, allocations: 124.8 kB / 1.347 GB, free: 14.95 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 7.942e-05/0.4279, allocations: 22.61 kB / 1.347 GB, free: 14.92 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.356e-05/0.428, allocations: 12.91 kB / 1.347 GB, free: 14.9 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.428, allocations: 0 / 1.347 GB, free: 14.9 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.428, allocations: 38.5 kB / 1.347 GB, free: 14.86 MB / 1.045 GB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.428, allocations: 3.938 kB / 1.347 GB, free: 14.85 MB / 1.045 GB Notification: Performance of matching and sorting (n=1): time 0.0002476/0.4283, allocations: 45.67 kB / 1.347 GB, free: 14.8 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.4283, allocations: 55.41 kB / 1.347 GB, free: 14.73 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.008e-05/0.4284, allocations: 89.86 kB / 1.347 GB, free: 14.64 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.4284, allocations: 29.64 kB / 1.347 GB, free: 14.6 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.221e-05/0.4284, allocations: 80.14 kB / 1.347 GB, free: 14.52 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.156e-05/0.4285, allocations: 7.953 kB / 1.347 GB, free: 14.51 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.141e-05/0.4285, allocations: 9.719 kB / 1.347 GB, free: 14.5 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001338/0.4286, allocations: 319 kB / 1.347 GB, free: 14.18 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.856e-05/0.4287, allocations: 3.984 kB / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.878e-05/0.4287, allocations: 4 kB / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.7e-05/0.4288, allocations: 20.78 kB / 1.347 GB, free: 14.14 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4288, allocations: 0 / 1.347 GB, free: 14.14 MB / 1.045 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001275/0.429, allocations: 49.73 kB / 1.347 GB, free: 14.09 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.429, allocations: 13.81 kB / 1.347 GB, free: 14.08 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.429, allocations: 0 / 1.347 GB, free: 14.08 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.429, allocations: 0 / 1.347 GB, free: 14.08 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.615e-05/0.4291, allocations: 3.938 kB / 1.347 GB, free: 14.07 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.4291, allocations: 4 kB / 1.347 GB, free: 14.07 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.07e-05/0.4291, allocations: 0 / 1.347 GB, free: 14.07 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.4291, allocations: 3.984 kB / 1.347 GB, free: 14.07 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.009e-05/0.4292, allocations: 105.8 kB / 1.348 GB, free: 13.95 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.074e-05/0.4292, allocations: 11.97 kB / 1.348 GB, free: 13.94 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.419e-05/0.4292, allocations: 3 kB / 1.348 GB, free: 13.93 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.4292, allocations: 0 / 1.348 GB, free: 13.93 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.4292, allocations: 0 / 1.348 GB, free: 13.93 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.4292, allocations: 0 / 1.348 GB, free: 13.93 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.4293, allocations: 120.7 kB / 1.348 GB, free: 13.77 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.4293, allocations: 4 kB / 1.348 GB, free: 13.77 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.248e-05/0.4294, allocations: 3.938 kB / 1.348 GB, free: 13.77 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.4294, allocations: 3.938 kB / 1.348 GB, free: 13.76 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.4294, allocations: 8 kB / 1.348 GB, free: 13.75 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.4294, allocations: 4 kB / 1.348 GB, free: 13.75 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.4294, allocations: 0 / 1.348 GB, free: 13.75 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001604/0.4296, allocations: 61.11 kB / 1.348 GB, free: 13.67 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.07e-05/0.4296, allocations: 7.938 kB / 1.348 GB, free: 13.66 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.4296, allocations: 3.938 kB / 1.348 GB, free: 13.66 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.001e-05/0.4296, allocations: 0 / 1.348 GB, free: 13.66 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.518e-06/0.4296, allocations: 4.031 kB / 1.348 GB, free: 13.66 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.4296, allocations: 8 kB / 1.348 GB, free: 13.65 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.846e-05/0.4297, allocations: 79.28 kB / 1.348 GB, free: 13.57 MB / 1.045 GB Notification: Performance of sort global known variables: time 5e-08/0.4297, allocations: 0 / 1.348 GB, free: 13.57 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0001766/0.4299, allocations: 0 / 1.348 GB, free: 13.57 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.000488/0.4303, allocations: 0.6046 MB / 1.348 GB, free: 12.93 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000148/0.4305, allocations: 15.92 kB / 1.348 GB, free: 12.92 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.4305, allocations: 0 / 1.348 GB, free: 12.92 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 4.941e-05/0.4305, allocations: 7.984 kB / 1.348 GB, free: 12.91 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001426/0.4307, allocations: 0 / 1.348 GB, free: 12.91 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004072/0.4311, allocations: 118.7 kB / 1.349 GB, free: 12.75 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.4314, allocations: 0.6729 MB / 1.349 GB, free: 12.05 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.234e-05/0.4314, allocations: 4 kB / 1.349 GB, free: 12.05 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.313e-05/0.4315, allocations: 11.42 kB / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of SimCode: time 3.3e-07/0.4315, allocations: 0 / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02085/0.4523, allocations: 1.077 MB / 1.35 GB, free: 11.11 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.44, allocations: 14.23 kB / 1.35 GB, free: 11.1 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: 18.628411508980207]