Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_9_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.006997/0.006997, allocations: 101 kB / 15.73 MB, free: 6.047 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.001674/0.001674, allocations: 188 kB / 16.67 MB, free: 5.977 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.32 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.486/2.486, allocations: 390.2 MB / 0.6648 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 68.83 kB / 0.9504 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2611, allocations: 140.4 MB / 1.088 GB, free: 2.074 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.002195/0.2634, allocations: 0.5863 MB / 1.088 GB, free: 1.492 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001762/0.2651, allocations: 1.104 MB / 1.089 GB, free: 380 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.542e-05/0.2652, allocations: 0 / 1.089 GB, free: 380 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.403e-05/0.2653, allocations: 0 / 1.089 GB, free: 380 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002679/0.2655, allocations: 27.91 kB / 1.089 GB, free: 352 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 3.838e-06/0.2655, allocations: 0 / 1.089 GB, free: 352 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.862e-05/0.2656, allocations: 8 kB / 1.089 GB, free: 344 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.942e-05/0.2657, allocations: 0 / 1.089 GB, free: 344 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.471e-05/0.2657, allocations: 0 / 1.089 GB, free: 344 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.759e-05/0.2657, allocations: 7.938 kB / 1.089 GB, free: 336 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.736e-06/0.2657, allocations: 0 / 1.089 GB, free: 336 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.2658, allocations: 19.92 kB / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.686e-06/0.2659, allocations: 3.984 kB / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 1.772e-05/0.2659, allocations: 7.938 kB / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.68e-05/0.266, allocations: 11.92 kB / 1.089 GB, free: 292 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.266, allocations: 4 kB / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.613e-06/0.266, allocations: 0 / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.02e-05/0.266, allocations: 4 kB / 1.089 GB, free: 284 kB / 0.8419 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.0003028/0.2663, allocations: 319.6 kB / 1.09 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.2664, allocations: 8.031 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.671e-05/0.2664, allocations: 38.69 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.534e-05/0.2664, allocations: 0.9375 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.337e-05/0.2665, allocations: 164.4 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.2666, allocations: 4.375 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.914e-05/0.2666, allocations: 384 / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.438e-05/0.2667, allocations: 37.83 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.2667, allocations: 11.98 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.615e-06/0.2667, allocations: 0 / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.2667, allocations: 0 / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.66e-05/0.2668, allocations: 4 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001468/0.2669, allocations: 149.7 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.2671, allocations: 34.52 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.345e-05/0.2672, allocations: 12.94 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001513/0.2673, allocations: 85.11 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.2673, allocations: 34.5 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.2674, allocations: 0 / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.004249/0.2716, allocations: 0.5742 MB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.2717, allocations: 51.41 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.767e-05/0.2717, allocations: 89.86 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.2717, allocations: 33.7 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.909e-05/0.2718, allocations: 85.55 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.065e-05/0.2718, allocations: 16.36 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.504e-05/0.2719, allocations: 17.72 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.272, allocations: 314.8 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006138/0.2726, allocations: 91.89 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005837/0.2732, allocations: 102.5 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/0.2744, allocations: 186.5 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.2744, allocations: 0 / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001245/0.2756, allocations: 217.5 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.2757, allocations: 11.94 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2757, allocations: 0 / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.2757, allocations: 0 / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003927/0.2761, allocations: 55.94 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.199e-06/0.2761, allocations: 0 / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003237/0.2764, allocations: 47.92 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.2765, allocations: 0 / 1.092 GB, free: 13.26 MB / 0.8575 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 9.131e-05/0.2765, allocations: 118 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.943e-05/0.2766, allocations: 3.938 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001268/0.2778, allocations: 245.5 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2779, allocations: 0 / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2779, allocations: 0 / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.2779, allocations: 0 / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001448/0.2793, allocations: 454.6 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.2794, allocations: 12.05 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003764/0.2797, allocations: 47.97 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.2797, allocations: 7.938 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.2798, allocations: 0 / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.2798, allocations: 0 / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2798, allocations: 0 / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.281, allocations: 303.4 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.288e-05/0.281, allocations: 77.11 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.2811, allocations: 4 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003478/0.2814, allocations: 43.97 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.747e-05/0.2815, allocations: 4 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.2815, allocations: 4 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.744e-05/0.2815, allocations: 75.28 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2815, allocations: 0 / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000244/0.2818, allocations: 8 kB / 1.093 GB, free: 11.78 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 (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.001541/0.2833, allocations: 0.8529 MB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001192/0.2845, allocations: 175.9 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2845, allocations: 0 / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0005819/0.2851, allocations: 96.06 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001929/0.2853, allocations: 0 / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.2865, allocations: 250.5 kB / 1.095 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000236/0.2868, allocations: 0.6768 MB / 1.095 GB, free: 9.641 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001573/0.287, allocations: 24 kB / 1.095 GB, free: 9.617 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.844e-05/0.287, allocations: 18.56 kB / 1.095 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of SimCode: time 3.11e-07/0.287, allocations: 0 / 1.095 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01617/0.3032, allocations: 1.638 MB / 1.097 GB, free: 8.098 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.413/7.717, allocations: 11.52 kB / 1.097 GB, free: 8.09 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches