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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001212/0.001212, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.64/2.64, allocations: 469.4 MB / 0.742 GB, free: 7.738 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 65.12 kB / 0.9083 GB, free: 34.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3013, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.002302/0.3037, allocations: 0.5795 MB / 1.064 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002954/0.304, allocations: 55.61 kB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.56e-05/0.304, allocations: 0 / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.545e-05/0.3041, allocations: 0 / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.13e-06/0.3041, allocations: 0 / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.3043, allocations: 19.92 kB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.087e-05/0.3044, allocations: 4 kB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.925e-05/0.3045, allocations: 4 kB / 1.064 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.539e-05/0.3045, allocations: 0 / 1.064 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.607e-05/0.3045, allocations: 4 kB / 1.064 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.307e-06/0.3045, allocations: 0 / 1.064 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.3047, allocations: 19.97 kB / 1.064 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.273e-05/0.3047, allocations: 11.92 kB / 1.064 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.967e-05/0.3047, allocations: 4 kB / 1.064 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.121e-05/0.3048, allocations: 7.984 kB / 1.064 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3048, allocations: 0 / 1.064 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.834e-06/0.3048, allocations: 4 kB / 1.064 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.189e-06/0.3049, allocations: 0 / 1.064 GB, free: 13.8 MB / 0.8262 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.0003045/0.3052, allocations: 323.5 kB / 1.065 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.3052, allocations: 12.03 kB / 1.065 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.486e-05/0.3053, allocations: 30.75 kB / 1.065 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003043/0.3056, allocations: 16.91 kB / 1.065 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.3057, allocations: 164.3 kB / 1.065 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.3057, allocations: 384 / 1.065 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.556e-06/0.3057, allocations: 4.375 kB / 1.065 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000135/0.3059, allocations: 34.25 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.3059, allocations: 3.938 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.3059, allocations: 7.984 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.3059, allocations: 0 / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001019/0.306, allocations: 4 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000132/0.3062, allocations: 149.7 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.143e-05/0.3062, allocations: 26.55 kB / 1.065 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.594e-05/0.3063, allocations: 12.91 kB / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.3063, allocations: 0 / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.3064, allocations: 34.56 kB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.3064, allocations: 0 / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0002288/0.3066, allocations: 53.61 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.3066, allocations: 51.41 kB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.045e-05/0.3067, allocations: 93.86 kB / 1.065 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.3067, allocations: 25.7 kB / 1.065 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.699e-05/0.3067, allocations: 80.14 kB / 1.065 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.3068, allocations: 0 / 1.065 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.946e-05/0.3068, allocations: 13.66 kB / 1.065 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.3069, allocations: 318.8 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.985e-05/0.307, allocations: 8.125 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.033e-05/0.307, allocations: 7.984 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.993e-05/0.3071, allocations: 12.86 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3071, allocations: 0 / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001214/0.3073, allocations: 41.67 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.3073, allocations: 8.094 kB / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3073, allocations: 11.92 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.3073, allocations: 4 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.463e-05/0.3074, allocations: 0 / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.3074, allocations: 7.938 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.461e-05/0.3074, allocations: 11.86 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.3075, allocations: 0 / 1.066 GB, free: 12.02 MB / 0.8262 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 5.851e-05/0.3075, allocations: 107.6 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.691e-05/0.3075, allocations: 8 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.477e-05/0.3076, allocations: 11.06 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3076, allocations: 3.984 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3076, allocations: 0 / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.3076, allocations: 0 / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.216e-05/0.3077, allocations: 145.7 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3077, allocations: 0 / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.286e-05/0.3077, allocations: 4 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.3077, allocations: 0 / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.3077, allocations: 3.938 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3078, allocations: 0 / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3078, allocations: 8 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.3079, allocations: 69.02 kB / 1.066 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.372e-05/0.308, allocations: 77.39 kB / 1.066 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.308, allocations: 3.938 kB / 1.066 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.089e-05/0.308, allocations: 7.938 kB / 1.066 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.083e-05/0.308, allocations: 3.984 kB / 1.066 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.308, allocations: 4.031 kB / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.149e-05/0.3081, allocations: 75.28 kB / 1.066 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3081, allocations: 0 / 1.066 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001766/0.3083, allocations: 4 kB / 1.066 GB, free: 11.41 MB / 0.8262 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.0004103/0.3087, allocations: 0.6052 MB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001329/0.3088, allocations: 15.92 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.3088, allocations: 0 / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.386e-05/0.3089, allocations: 4 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.309, allocations: 5.484 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003687/0.3094, allocations: 122.7 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.3096, allocations: 0.6768 MB / 1.068 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.36e-05/0.3097, allocations: 0 / 1.068 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.58e-05/0.3097, allocations: 7.438 kB / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3097, allocations: 0 / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01588/0.3256, allocations: 0.934 MB / 1.069 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.27/7.595, allocations: 7.875 kB / 1.069 GB, free: 9.008 MB / 0.8262 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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) "" Variables in the reference:time,y Variables in the result:time,y