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.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_latest_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.00422/0.004221, allocations: 100.8 kB / 15.73 MB, free: 6.445 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.0012/0.0012, allocations: 191.6 kB / 16.67 MB, free: 6.348 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.689/2.689, allocations: 482.6 MB / 0.755 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 63.89 kB / 1.083 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3014, allocations: 162.3 MB / 1.242 GB, free: 9.742 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001686/0.3031, allocations: 0.5759 MB / 1.242 GB, free: 9.168 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002659/0.3034, allocations: 59.66 kB / 1.243 GB, free: 9.109 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.657e-05/0.3034, allocations: 4 kB / 1.243 GB, free: 9.105 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.11e-05/0.3034, allocations: 0 / 1.243 GB, free: 9.105 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.111e-06/0.3034, allocations: 0 / 1.243 GB, free: 9.105 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002386/0.3037, allocations: 19.91 kB / 1.243 GB, free: 9.086 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 3.735e-05/0.3037, allocations: 0 / 1.243 GB, free: 9.086 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.665e-05/0.3038, allocations: 4 kB / 1.243 GB, free: 9.082 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.124e-05/0.3038, allocations: 0 / 1.243 GB, free: 9.082 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 1.98e-05/0.3038, allocations: 0 / 1.243 GB, free: 9.082 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.027e-06/0.3038, allocations: 0 / 1.243 GB, free: 9.082 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.3039, allocations: 27.97 kB / 1.243 GB, free: 9.055 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.608e-06/0.304, allocations: 0 / 1.243 GB, free: 9.055 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 1.417e-05/0.304, allocations: 0 / 1.243 GB, free: 9.055 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 8.332e-05/0.3041, allocations: 11.97 kB / 1.243 GB, free: 9.043 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.3041, allocations: 4 kB / 1.243 GB, free: 9.039 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3041, allocations: 0 / 1.243 GB, free: 9.039 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.3041, allocations: 4 kB / 1.243 GB, free: 9.035 MB / 0.9981 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.0003102/0.3044, allocations: 319.5 kB / 1.243 GB, free: 8.672 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.3044, allocations: 8.031 kB / 1.243 GB, free: 8.664 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.158e-05/0.3045, allocations: 34.69 kB / 1.243 GB, free: 8.621 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002171/0.3047, allocations: 16.91 kB / 1.243 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.3048, allocations: 160.4 kB / 1.243 GB, free: 8.41 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.3048, allocations: 4.375 kB / 1.243 GB, free: 8.406 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.03e-05/0.3049, allocations: 4.375 kB / 1.243 GB, free: 8.402 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001375/0.305, allocations: 38.23 kB / 1.243 GB, free: 8.359 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.305, allocations: 7.875 kB / 1.243 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.804e-06/0.305, allocations: 0 / 1.243 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.305, allocations: 0 / 1.243 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.501e-05/0.3051, allocations: 11.98 kB / 1.243 GB, free: 8.34 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001461/0.3053, allocations: 145.7 kB / 1.243 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.459e-05/0.3054, allocations: 26.59 kB / 1.243 GB, free: 8.113 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.803e-05/0.3054, allocations: 8.922 kB / 1.243 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.44e-05/0.3054, allocations: 0 / 1.243 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.3055, allocations: 34.56 kB / 1.243 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 2.735e-06/0.3055, allocations: 0 / 1.243 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.000229/0.3057, allocations: 57.64 kB / 1.243 GB, free: 7.996 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.3058, allocations: 51.41 kB / 1.243 GB, free: 7.934 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.094e-05/0.3058, allocations: 89.86 kB / 1.244 GB, free: 7.836 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.3058, allocations: 25.7 kB / 1.244 GB, free: 7.805 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.575e-05/0.3059, allocations: 80.14 kB / 1.244 GB, free: 7.723 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.597e-05/0.3059, allocations: 3.953 kB / 1.244 GB, free: 7.719 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.911e-05/0.3059, allocations: 17.66 kB / 1.244 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.3061, allocations: 318.8 kB / 1.244 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.082e-05/0.3061, allocations: 8.031 kB / 1.244 GB, free: 7.367 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.964e-05/0.3062, allocations: 7.984 kB / 1.244 GB, free: 7.359 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.757e-05/0.3063, allocations: 16.78 kB / 1.244 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3063, allocations: 0 / 1.244 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001179/0.3064, allocations: 41.69 kB / 1.244 GB, free: 7.293 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.3064, allocations: 4.094 kB / 1.244 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.3064, allocations: 7.938 kB / 1.244 GB, free: 7.281 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.3064, allocations: 0 / 1.244 GB, free: 7.281 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.413e-05/0.3065, allocations: 4 kB / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.3065, allocations: 0 / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.33e-05/0.3066, allocations: 7.984 kB / 1.244 GB, free: 7.27 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.3066, allocations: 4 kB / 1.244 GB, free: 7.266 MB / 0.9981 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 7.821e-05/0.3066, allocations: 113.8 kB / 1.244 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.163e-06/0.3067, allocations: 0 / 1.244 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.139e-05/0.3067, allocations: 11.06 kB / 1.244 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.3067, allocations: 0 / 1.244 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.257e-06/0.3067, allocations: 0 / 1.244 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.3067, allocations: 3.984 kB / 1.244 GB, free: 7.129 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.3068, allocations: 149.7 kB / 1.244 GB, free: 6.934 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3068, allocations: 0 / 1.244 GB, free: 6.934 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.211e-05/0.3069, allocations: 7.938 kB / 1.244 GB, free: 6.926 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3069, allocations: 0 / 1.244 GB, free: 6.926 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.3069, allocations: 3.938 kB / 1.244 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3069, allocations: 3.984 kB / 1.244 GB, free: 6.918 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3069, allocations: 4 kB / 1.244 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.3071, allocations: 65.12 kB / 1.244 GB, free: 6.832 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.791e-05/0.3071, allocations: 77.11 kB / 1.245 GB, free: 6.738 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.169e-05/0.3071, allocations: 3.938 kB / 1.245 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.353e-05/0.3072, allocations: 3.984 kB / 1.245 GB, free: 6.73 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.116e-05/0.3072, allocations: 0 / 1.245 GB, free: 6.73 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-06/0.3072, allocations: 8.031 kB / 1.245 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 2.852e-05/0.3072, allocations: 75.28 kB / 1.245 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3072, allocations: 0 / 1.245 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001623/0.3074, allocations: 0 / 1.245 GB, free: 6.648 MB / 0.9981 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.0004321/0.3078, allocations: 0.609 MB / 1.245 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001323/0.308, allocations: 11.98 kB / 1.245 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.308, allocations: 0 / 1.245 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 4.432e-05/0.308, allocations: 8 kB / 1.245 GB, free: 5.988 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001191/0.3081, allocations: 8.172 kB / 1.245 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003254/0.3085, allocations: 121.3 kB / 1.245 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.3088, allocations: 0.6729 MB / 1.246 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.835e-05/0.3088, allocations: 0 / 1.246 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.165e-05/0.3088, allocations: 11.44 kB / 1.246 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of SimCode: time 3.11e-07/0.3088, allocations: 0 / 1.246 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2478/0.5567, allocations: 0.9512 MB / 1.247 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.708/8.265, allocations: 5.875 kB / 1.247 GB, free: 4.25 MB / 0.9981 GB (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 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) 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) Reference file matches