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.001428/0.001428, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001148/0.001148, allocations: 194.8 kB / 16.14 MB, free: 6.711 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.326/1.326, allocations: 222.9 MB / 239.8 MB, free: 4.551 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.531/2.531, allocations: 437 MB / 0.7099 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 63.91 kB / 0.8687 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6024/0.6037, allocations: 151.6 MB / 1.017 GB, free: 2.812 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001852/0.6055, allocations: 0.649 MB / 1.017 GB, free: 2.16 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002575/0.6058, allocations: 51.86 kB / 1.017 GB, free: 2.109 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.318e-06/0.6058, allocations: 0 / 1.017 GB, free: 2.109 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.748e-05/0.6059, allocations: 0 / 1.017 GB, free: 2.109 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.558e-06/0.6059, allocations: 7.875 kB / 1.017 GB, free: 2.102 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001841/0.6061, allocations: 15.98 kB / 1.017 GB, free: 2.086 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.335e-05/0.6061, allocations: 0 / 1.017 GB, free: 2.086 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.53e-05/0.6062, allocations: 0 / 1.017 GB, free: 2.086 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.286e-05/0.6062, allocations: 0 / 1.017 GB, free: 2.086 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.966e-05/0.6062, allocations: 4 kB / 1.017 GB, free: 2.082 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 8.656e-06/0.6062, allocations: 0 / 1.017 GB, free: 2.082 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.718e-05/0.6063, allocations: 27.95 kB / 1.017 GB, free: 2.055 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 9.648e-06/0.6064, allocations: 0 / 1.017 GB, free: 2.055 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.71e-05/0.6064, allocations: 4 kB / 1.017 GB, free: 2.051 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.705e-05/0.6065, allocations: 11.92 kB / 1.017 GB, free: 2.039 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.6065, allocations: 0 / 1.017 GB, free: 2.039 MB / 0.7637 GB Notification: Performance of FrontEnd: time 8.91e-07/0.6065, allocations: 4 kB / 1.017 GB, free: 2.035 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.276e-06/0.6065, allocations: 0 / 1.017 GB, free: 2.035 MB / 0.7637 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.0002436/0.6067, allocations: 319.5 kB / 1.018 GB, free: 1.672 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.6068, allocations: 12.03 kB / 1.018 GB, free: 1.66 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.486e-05/0.6068, allocations: 30.75 kB / 1.018 GB, free: 1.621 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002456/0.6071, allocations: 16.91 kB / 1.018 GB, free: 1.605 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.803e-05/0.6072, allocations: 160.4 kB / 1.018 GB, free: 1.41 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.817e-06/0.6072, allocations: 4.375 kB / 1.018 GB, free: 1.406 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.6072, allocations: 4.312 kB / 1.018 GB, free: 1.402 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001256/0.6073, allocations: 34.25 kB / 1.018 GB, free: 1.363 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.6073, allocations: 3.938 kB / 1.018 GB, free: 1.359 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-06/0.6074, allocations: 4 kB / 1.018 GB, free: 1.355 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.6074, allocations: 0 / 1.018 GB, free: 1.355 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.395e-05/0.6075, allocations: 7.984 kB / 1.018 GB, free: 1.348 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001243/0.6076, allocations: 153.7 kB / 1.018 GB, free: 1.148 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 7.675e-05/0.6077, allocations: 18.61 kB / 1.018 GB, free: 1.121 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.27e-05/0.6077, allocations: 16.84 kB / 1.018 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.6078, allocations: 0 / 1.018 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.6078, allocations: 38.56 kB / 1.018 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.6078, allocations: 0 / 1.018 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of matching and sorting (n=1): time 0.0002211/0.608, allocations: 49.61 kB / 1.018 GB, free: 1 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.076e-05/0.608, allocations: 55.41 kB / 1.018 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.032e-05/0.6081, allocations: 89.86 kB / 1.018 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/0.6081, allocations: 25.7 kB / 1.018 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 2.109e-05/0.6081, allocations: 80.14 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.6082, allocations: 0 / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.787e-05/0.6082, allocations: 9.719 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 8.69e-05/0.6083, allocations: 323 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.808e-05/0.6083, allocations: 7.922 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.87e-05/0.6084, allocations: 8 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.239e-05/0.6085, allocations: 20.78 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.6085, allocations: 0 / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001174/0.6086, allocations: 37.75 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.6086, allocations: 19.95 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.6086, allocations: 3.938 kB / 1.019 GB, free: 284 kB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.6086, allocations: 3.984 kB / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.637e-05/0.6087, allocations: 0 / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.6087, allocations: 4 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.247e-05/0.6088, allocations: 0 / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.6088, allocations: 0 / 1.019 GB, free: 276 kB / 0.7637 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.905e-05/0.6089, allocations: 118.3 kB / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.877e-06/0.6089, allocations: 8 kB / 1.019 GB, free: 140 kB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.634e-05/0.6089, allocations: 7.062 kB / 1.019 GB, free: 132 kB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.6089, allocations: 0 / 1.019 GB, free: 132 kB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.6089, allocations: 0 / 1.019 GB, free: 132 kB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.6089, allocations: 0 / 1.019 GB, free: 132 kB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.862e-05/0.609, allocations: 145.7 kB / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.609, allocations: 0 / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.331e-05/0.6091, allocations: 4 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.6091, allocations: 0 / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.6091, allocations: 3.938 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.6091, allocations: 8 kB / 1.019 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.6091, allocations: 0 / 1.019 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001317/0.6092, allocations: 65.11 kB / 1.019 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.742e-05/0.6093, allocations: 79.36 kB / 1.019 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.6093, allocations: 7.938 kB / 1.019 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.078e-05/0.6093, allocations: 0 / 1.019 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.208e-05/0.6094, allocations: 4.031 kB / 1.019 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.6094, allocations: 3.938 kB / 1.019 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.298e-05/0.6094, allocations: 75.28 kB / 1.019 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6094, allocations: 0 / 1.019 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001851/0.6096, allocations: 4 kB / 1.019 GB, free: 15.65 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.0003515/0.6099, allocations: 0.6068 MB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001177/0.6101, allocations: 11.98 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.6101, allocations: 0 / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.641e-05/0.6101, allocations: 15.92 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.6103, allocations: 0 / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003026/0.6106, allocations: 112.4 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001824/0.6108, allocations: 0.6731 MB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.374e-05/0.6108, allocations: 3.938 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.447e-05/0.6108, allocations: 11.42 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.6109, allocations: 0 / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009337/0.6202, allocations: 0.8194 MB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/0.6204, allocations: 203.5 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.551/2.171, allocations: 3.938 kB / 1.022 GB, free: 13.14 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