Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",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.001487/0.001488, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00151/0.00151, allocations: 193 kB / 16.25 MB, free: 6.637 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.37/1.37, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.541/2.541, allocations: 437 MB / 0.7101 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 67.89 kB / 0.8689 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6638/0.6652, allocations: 151.6 MB / 1.017 GB, free: 2.711 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001656/0.6669, allocations: 0.6451 MB / 1.018 GB, free: 2.062 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.6681, allocations: 1.104 MB / 1.019 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.04e-05/0.6681, allocations: 0 / 1.019 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.617e-05/0.6681, allocations: 4 kB / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0002109/0.6683, allocations: 7.984 kB / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 5.07e-06/0.6683, allocations: 4 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.469e-05/0.6684, allocations: 7.938 kB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.715e-05/0.6684, allocations: 7.984 kB / 1.019 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.265e-05/0.6685, allocations: 4 kB / 1.019 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.064e-05/0.6685, allocations: 7.938 kB / 1.019 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 7.664e-06/0.6685, allocations: 0 / 1.019 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.791e-05/0.6686, allocations: 19.92 kB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 9.467e-06/0.6686, allocations: 3.984 kB / 1.019 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.221e-05/0.6686, allocations: 0 / 1.019 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.177e-05/0.6687, allocations: 19.98 kB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.6687, allocations: 0 / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.835e-06/0.6687, allocations: 0 / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.059e-06/0.6687, allocations: 3.938 kB / 1.019 GB, free: 0.8516 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002755/0.669, allocations: 323.4 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.6691, allocations: 8.031 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.318e-05/0.6691, allocations: 38.75 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.37e-05/0.6691, allocations: 4.938 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.073e-05/0.6692, allocations: 160.4 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.277e-06/0.6692, allocations: 384 / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.812e-05/0.6692, allocations: 384 / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.537e-05/0.6693, allocations: 45.75 kB / 1.019 GB, free: 188 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.6694, allocations: 4 kB / 1.019 GB, free: 184 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.6694, allocations: 0 / 1.019 GB, free: 184 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.6694, allocations: 4 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.765e-05/0.6694, allocations: 7.984 kB / 1.019 GB, free: 172 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001335/0.6696, allocations: 145.7 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.6697, allocations: 30.61 kB / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.184e-05/0.6698, allocations: 12.86 kB / 1.019 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001346/0.6699, allocations: 89.12 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.6699, allocations: 38.5 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.67, allocations: 0 / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.004209/0.6742, allocations: 0.5698 MB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.6742, allocations: 55.41 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.062e-05/0.6743, allocations: 89.86 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.6743, allocations: 25.7 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.723e-05/0.6743, allocations: 80.14 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.73e-05/0.6744, allocations: 19.66 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-05/0.6744, allocations: 29.7 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.6745, allocations: 310.8 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005819/0.6751, allocations: 79.95 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005799/0.6757, allocations: 102.5 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/0.6769, allocations: 194.4 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.6769, allocations: 0 / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001198/0.6781, allocations: 213.5 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.6781, allocations: 4 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.6781, allocations: 4 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.6781, allocations: 0 / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003797/0.6785, allocations: 51.94 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.6785, allocations: 7.984 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003245/0.6789, allocations: 39.97 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/0.6789, allocations: 4 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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 8.084e-05/0.679, allocations: 117.8 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.97e-05/0.679, allocations: 7.938 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001334/0.6803, allocations: 229.1 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.6804, allocations: 432 / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.6804, allocations: 3.938 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.6804, allocations: 4 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001527/0.6819, allocations: 462.6 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.6819, allocations: 3.984 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003965/0.6823, allocations: 51.97 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.6823, allocations: 3.984 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.6824, allocations: 0 / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.6824, allocations: 4 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.6824, allocations: 0 / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.6837, allocations: 311.2 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.854e-05/0.6837, allocations: 77.11 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.6838, allocations: 4 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003728/0.6841, allocations: 35.98 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.617e-05/0.6842, allocations: 11.98 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.6842, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.254e-05/0.6842, allocations: 75.28 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6842, allocations: 0 / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002545/0.6845, allocations: 16 kB / 1.023 GB, free: 12.34 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 (5): * Single equations (assignments): 5 * 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.001614/0.6861, allocations: 0.8413 MB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001288/0.6874, allocations: 179.9 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.6874, allocations: 0 / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006282/0.688, allocations: 96.02 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002161/0.6883, allocations: 4.75 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.6896, allocations: 254.6 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.6899, allocations: 0.6729 MB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002465/0.6901, allocations: 28 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.801e-05/0.6902, allocations: 19.36 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.6902, allocations: 0 / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03309/0.7233, allocations: 1.527 MB / 1.026 GB, free: 8.805 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001789/0.7235, allocations: 222.4 kB / 1.027 GB, free: 8.551 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.725/2.449, allocations: 5.719 kB / 1.027 GB, free: 8.547 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y,der(y),der2_y Variables in the result:der(der_y),der(y),der2_y,der_y,time,y