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.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.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.00126/0.00126, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001799/0.001799, allocations: 194.7 kB / 16.14 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.312/1.312, allocations: 222.9 MB / 239.8 MB, free: 4.566 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.438/2.438, allocations: 437 MB / 0.7099 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 71.91 kB / 0.8687 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5338/0.5351, allocations: 151.6 MB / 1.017 GB, free: 2.762 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001596/0.5367, allocations: 0.6557 MB / 1.017 GB, free: 2.105 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001092/0.5378, allocations: 1.104 MB / 1.018 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.969e-06/0.5378, allocations: 0 / 1.018 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.19e-05/0.5379, allocations: 0 / 1.018 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.538, allocations: 11.98 kB / 1.018 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 2.195e-06/0.5381, allocations: 0 / 1.018 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 2.938e-05/0.5381, allocations: 3.938 kB / 1.018 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.493e-05/0.5381, allocations: 15.92 kB / 1.018 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.028e-05/0.5381, allocations: 0 / 1.018 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 1.895e-05/0.5382, allocations: 3.938 kB / 1.018 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 5.981e-06/0.5382, allocations: 4 kB / 1.018 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.642e-05/0.5383, allocations: 19.97 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 6.743e-06/0.5383, allocations: 3.938 kB / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.201e-05/0.5383, allocations: 8 kB / 1.019 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 6.114e-05/0.5384, allocations: 11.98 kB / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.5384, allocations: 3.938 kB / 1.019 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of FrontEnd: time 9.12e-07/0.5384, allocations: 0 / 1.019 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.5384, allocations: 0 / 1.019 GB, free: 0.8984 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.000234/0.5386, allocations: 315.6 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.5387, allocations: 12.03 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.225e-05/0.5387, allocations: 38.75 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.812e-05/0.5387, allocations: 0.9375 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.122e-05/0.5388, allocations: 168.4 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.764e-06/0.5388, allocations: 384 / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.5388, allocations: 4.375 kB / 1.019 GB, free: 284 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.94e-05/0.5389, allocations: 41.75 kB / 1.019 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.5389, allocations: 0 / 1.019 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.081e-06/0.539, allocations: 0 / 1.019 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.539, allocations: 0 / 1.019 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.327e-05/0.539, allocations: 15.97 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001209/0.5391, allocations: 149.7 kB / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001633/0.5393, allocations: 34.66 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.12e-05/0.5393, allocations: 12.86 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001225/0.5395, allocations: 81.14 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.5395, allocations: 42.44 kB / 1.019 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.5395, allocations: 0 / 1.019 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.004122/0.5436, allocations: 0.5737 MB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.828e-05/0.5437, allocations: 51.41 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.127e-05/0.5437, allocations: 89.86 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.5437, allocations: 25.7 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.718e-05/0.5437, allocations: 80.14 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.757e-05/0.5438, allocations: 19.75 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.028e-05/0.5438, allocations: 17.7 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.139e-05/0.5439, allocations: 314.8 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005815/0.5445, allocations: 83.95 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005639/0.5451, allocations: 106.5 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.5462, allocations: 186.4 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.5462, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001212/0.5475, allocations: 221.5 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.5475, allocations: 7.938 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.5475, allocations: 3.938 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.918e-06/0.5475, allocations: 0 / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003825/0.5479, allocations: 52 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.5479, allocations: 0 / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003338/0.5482, allocations: 43.97 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/0.5483, allocations: 0 / 1.021 GB, free: 13.89 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 7.918e-05/0.5483, allocations: 113.8 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.835e-05/0.5484, allocations: 7.938 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00133/0.5497, allocations: 237 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.5497, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.207e-06/0.5497, allocations: 256 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.5497, allocations: 3.984 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001425/0.5512, allocations: 466.3 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.5512, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003617/0.5515, allocations: 47.97 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.5516, allocations: 4 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.5516, allocations: 4 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.5516, allocations: 0 / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.5516, allocations: 0 / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.5528, allocations: 303.4 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.813e-05/0.5529, allocations: 81.05 kB / 1.022 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.5529, allocations: 4 kB / 1.022 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003585/0.5532, allocations: 35.98 kB / 1.022 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.502e-05/0.5533, allocations: 7.984 kB / 1.022 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.5533, allocations: 4 kB / 1.022 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.346e-05/0.5533, allocations: 75.28 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5533, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002368/0.5536, allocations: 12 kB / 1.023 GB, free: 12.4 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.001496/0.5551, allocations: 0.8374 MB / 1.023 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001184/0.5563, allocations: 187.9 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.5563, allocations: 0 / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005754/0.5569, allocations: 88.08 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002073/0.5571, allocations: 6.281 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.5583, allocations: 248.2 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.5586, allocations: 0.6809 MB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002293/0.5588, allocations: 28 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.45e-05/0.5589, allocations: 15.42 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.5589, allocations: 0 / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01094/0.5698, allocations: 1.507 MB / 1.026 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002314/0.5701, allocations: 221.7 kB / 1.026 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.721/2.291, allocations: 0 / 1.026 GB, free: 8.621 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