Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_10_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.001085/0.001086, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.005561/0.005562, allocations: 173.8 kB / 16.27 MB, free: 6.613 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.397/1.397, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.508/2.508, allocations: 437.8 MB / 0.7121 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003031/0.0003031, allocations: 8 kB / 0.873 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6042/0.6045, allocations: 153.8 MB / 1.023 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.0007615/0.6054, allocations: 317.6 kB / 1.023 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0002921/0.6057, allocations: 51.84 kB / 1.023 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.093e-05/0.6057, allocations: 3.938 kB / 1.024 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.471e-05/0.6057, allocations: 3.938 kB / 1.024 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.829e-06/0.6057, allocations: 4 kB / 1.024 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001981/0.6059, allocations: 8 kB / 1.024 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 4.066e-05/0.606, allocations: 8 kB / 1.024 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.771e-05/0.6061, allocations: 3.984 kB / 1.024 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 1.434e-05/0.6061, allocations: 0 / 1.024 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 3.218e-05/0.6061, allocations: 0 / 1.024 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.718e-06/0.6061, allocations: 0 / 1.024 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.79e-05/0.6062, allocations: 19.98 kB / 1.024 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.281e-05/0.6063, allocations: 3.984 kB / 1.024 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.999e-05/0.6063, allocations: 25.7 kB / 1.024 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.7e-05/0.6064, allocations: 19.98 kB / 1.024 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.6064, allocations: 0 / 1.024 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.253e-06/0.6064, allocations: 0 / 1.024 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.868e-06/0.6064, allocations: 0 / 1.024 GB, free: 15.34 MB / 0.7794 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.0002983/0.6067, allocations: 311.6 kB / 1.024 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.6068, allocations: 8.031 kB / 1.024 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.676e-05/0.6068, allocations: 30.75 kB / 1.024 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002568/0.6071, allocations: 16.91 kB / 1.024 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.15e-05/0.6072, allocations: 172.3 kB / 1.024 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.6072, allocations: 4.359 kB / 1.024 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.074e-05/0.6072, allocations: 8.312 kB / 1.024 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000145/0.6074, allocations: 38.25 kB / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.6074, allocations: 3.938 kB / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.6074, allocations: 0 / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.6074, allocations: 0 / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.12e-05/0.6075, allocations: 7.984 kB / 1.024 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001402/0.6077, allocations: 149.7 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.586e-05/0.6078, allocations: 22.59 kB / 1.024 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.245e-05/0.6078, allocations: 12.8 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.6078, allocations: 4.062 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.6079, allocations: 30.56 kB / 1.024 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 2.374e-06/0.6079, allocations: 3.984 kB / 1.024 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0002297/0.6081, allocations: 57.52 kB / 1.024 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.6082, allocations: 51.41 kB / 1.024 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.297e-05/0.6082, allocations: 89.86 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.6082, allocations: 25.7 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.708e-05/0.6083, allocations: 80.14 kB / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.377e-05/0.6083, allocations: 0 / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.451e-05/0.6083, allocations: 13.72 kB / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.6084, allocations: 323 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.565e-05/0.6085, allocations: 3.938 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.22e-05/0.6085, allocations: 7.984 kB / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.101e-05/0.6086, allocations: 12.86 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.6086, allocations: 0 / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001289/0.6088, allocations: 45.73 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.6088, allocations: 4 kB / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.6088, allocations: 7.938 kB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.6088, allocations: 0 / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.933e-05/0.6089, allocations: 4 kB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.858e-06/0.6089, allocations: 0 / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.428e-05/0.609, allocations: 7.984 kB / 1.025 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.609, allocations: 0 / 1.025 GB, free: 13.58 MB / 0.7794 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.945e-05/0.6091, allocations: 113.8 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.688e-06/0.6091, allocations: 4 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.733e-05/0.6091, allocations: 15 kB / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.6091, allocations: 0 / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.6091, allocations: 0 / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.6091, allocations: 0 / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.6093, allocations: 145.7 kB / 1.025 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.6093, allocations: 0 / 1.025 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.164e-05/0.6093, allocations: 7.938 kB / 1.025 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.6094, allocations: 0 / 1.025 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/0.6094, allocations: 7.938 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.6094, allocations: 0 / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.6094, allocations: 4 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001435/0.6095, allocations: 65.11 kB / 1.025 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.417e-05/0.6096, allocations: 79.36 kB / 1.026 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.235e-05/0.6096, allocations: 3.938 kB / 1.026 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.267e-05/0.6096, allocations: 4 kB / 1.026 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.291e-05/0.6097, allocations: 11.95 kB / 1.026 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-06/0.6097, allocations: 0 / 1.026 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.762e-05/0.6097, allocations: 75.28 kB / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6097, allocations: 0 / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001775/0.6099, allocations: 4 kB / 1.026 GB, free: 12.96 MB / 0.7794 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.000467/0.6104, allocations: 0.6046 MB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001374/0.6105, allocations: 11.97 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.6106, allocations: 4 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.583e-05/0.6106, allocations: 11.94 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.6107, allocations: 2.031 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003168/0.6111, allocations: 112.3 kB / 1.026 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002318/0.6113, allocations: 0.677 MB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.497e-05/0.6113, allocations: 4 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.38e-05/0.6114, allocations: 7.438 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.6114, allocations: 0 / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01035/0.6217, allocations: 0.7682 MB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000225/0.622, allocations: 200 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.678/2.3, allocations: 0 / 1.028 GB, free: 10.54 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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