Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_9_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.006289/0.006289, allocations: 98.66 kB / 15.73 MB, free: 5.988 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.001217/0.001217, allocations: 191.9 kB / 16.67 MB, free: 5.918 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.355/2.355, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 68.48 kB / 0.9504 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2449, allocations: 140.4 MB / 1.088 GB, free: 1.934 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001751/0.2467, allocations: 0.5707 MB / 1.088 GB, free: 1.367 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002663/0.247, allocations: 51.73 kB / 1.088 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.774e-05/0.247, allocations: 0 / 1.088 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.3e-05/0.247, allocations: 0 / 1.088 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.583e-06/0.247, allocations: 0 / 1.088 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.2473, allocations: 27.91 kB / 1.088 GB, free: 1.289 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.726e-05/0.2473, allocations: 7.922 kB / 1.088 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.365e-05/0.2474, allocations: 0 / 1.088 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.522e-05/0.2474, allocations: 0 / 1.088 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.656e-05/0.2474, allocations: 4 kB / 1.088 GB, free: 1.277 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.866e-06/0.2475, allocations: 0 / 1.088 GB, free: 1.277 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.2476, allocations: 19.98 kB / 1.088 GB, free: 1.258 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.135e-05/0.2476, allocations: 0 / 1.088 GB, free: 1.258 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 1.63e-05/0.2476, allocations: 4 kB / 1.088 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.034e-05/0.2477, allocations: 15.95 kB / 1.088 GB, free: 1.238 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2477, allocations: 0 / 1.088 GB, free: 1.238 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.583e-06/0.2477, allocations: 4 kB / 1.088 GB, free: 1.234 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.177e-06/0.2477, allocations: 0 / 1.088 GB, free: 1.234 MB / 0.8419 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.0003036/0.2481, allocations: 319.8 kB / 1.089 GB, free: 0.8711 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.2481, allocations: 12.03 kB / 1.089 GB, free: 0.8594 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.57e-05/0.2481, allocations: 30.75 kB / 1.089 GB, free: 0.8203 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002555/0.2484, allocations: 16.91 kB / 1.089 GB, free: 0.8047 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.676e-05/0.2485, allocations: 164.4 kB / 1.089 GB, free: 0.6055 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.2485, allocations: 4.359 kB / 1.089 GB, free: 0.6016 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.596e-06/0.2485, allocations: 4.375 kB / 1.089 GB, free: 0.5977 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/0.2487, allocations: 38.19 kB / 1.089 GB, free: 0.5547 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.2487, allocations: 7.938 kB / 1.089 GB, free: 0.5469 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.2487, allocations: 4 kB / 1.089 GB, free: 0.543 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.2487, allocations: 0 / 1.089 GB, free: 0.543 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.676e-05/0.2488, allocations: 7.984 kB / 1.089 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001301/0.2489, allocations: 145.7 kB / 1.089 GB, free: 352 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.665e-05/0.249, allocations: 26.94 kB / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.212e-05/0.2491, allocations: 8.922 kB / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.2491, allocations: 3.984 kB / 1.089 GB, free: 300 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.2491, allocations: 38.5 kB / 1.089 GB, free: 252 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=1): time 1.342e-06/0.2491, allocations: 0 / 1.089 GB, free: 252 kB / 0.8419 GB Notification: Performance of matching and sorting (n=1): time 0.0002358/0.2494, allocations: 49.62 kB / 1.089 GB, free: 196 kB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.2494, allocations: 55.41 kB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.031e-05/0.2495, allocations: 89.86 kB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.2495, allocations: 25.7 kB / 1.089 GB, free: 16 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.582e-05/0.2495, allocations: 84.12 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.077e-05/0.2496, allocations: 0 / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-05/0.2496, allocations: 17.72 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.387e-05/0.2497, allocations: 311 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.828e-05/0.2498, allocations: 8 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.183e-05/0.2498, allocations: 7.984 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.511e-05/0.2499, allocations: 20.78 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2499, allocations: 0 / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001226/0.2501, allocations: 41.62 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.2501, allocations: 12.09 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.2501, allocations: 3.938 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.2501, allocations: 0 / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.946e-05/0.2502, allocations: 7.984 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.2502, allocations: 0 / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.434e-05/0.2502, allocations: 7.891 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.2503, allocations: 0 / 1.09 GB, free: 15.46 MB / 0.8575 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 6.547e-05/0.2503, allocations: 109.8 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.368e-06/0.2503, allocations: 4 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.121e-05/0.2504, allocations: 15.05 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.2504, allocations: 0 / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2504, allocations: 0 / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.2504, allocations: 3.938 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.878e-05/0.2505, allocations: 141.7 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2505, allocations: 4 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.417e-05/0.2505, allocations: 3.984 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2506, allocations: 0 / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.2506, allocations: 7.938 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.073e-06/0.2506, allocations: 0 / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2506, allocations: 4 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001354/0.2507, allocations: 61.12 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.024e-05/0.2508, allocations: 81.09 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.2508, allocations: 7.938 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.315e-05/0.2508, allocations: 4 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.058e-05/0.2508, allocations: 4.031 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-06/0.2508, allocations: 0 / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.099e-05/0.2509, allocations: 75.28 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2509, allocations: 0 / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001784/0.2511, allocations: 4 kB / 1.09 GB, free: 14.84 MB / 0.8575 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.0003668/0.2514, allocations: 0.6085 MB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001337/0.2516, allocations: 11.98 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.2516, allocations: 0 / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.634e-05/0.2516, allocations: 11.92 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001289/0.2518, allocations: 0 / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003205/0.2521, allocations: 122.8 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001902/0.2523, allocations: 0.669 MB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.228e-05/0.2523, allocations: 3.984 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.843e-05/0.2524, allocations: 11.38 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of SimCode: time 2.4e-07/0.2524, allocations: 0 / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01533/0.2677, allocations: 0.9436 MB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.509/7.777, allocations: 1.875 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches