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.001211/0.001211, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.349/1.349, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.346/2.346, allocations: 390.3 MB / 0.6647 GB, free: 480 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 63.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6019/0.6033, allocations: 140.4 MB / 0.9497 GB, free: 9.254 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001549/0.6049, allocations: 0.5822 MB / 0.9503 GB, free: 8.805 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009246/0.6058, allocations: 1.101 MB / 0.9514 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.1e-05/0.6059, allocations: 0 / 0.9514 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.219e-05/0.6059, allocations: 4 kB / 0.9514 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001943/0.6061, allocations: 22.73 kB / 0.9514 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.137e-06/0.6061, allocations: 0 / 0.9514 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.903e-05/0.6061, allocations: 2.875 kB / 0.9514 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.033e-05/0.6062, allocations: 5.312 kB / 0.9514 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.331e-05/0.6062, allocations: 3.984 kB / 0.9514 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.055e-05/0.6062, allocations: 1.469 kB / 0.9514 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.155e-06/0.6062, allocations: 1.469 kB / 0.9514 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.135e-05/0.6063, allocations: 23.08 kB / 0.9514 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.612e-06/0.6063, allocations: 0.9062 kB / 0.9514 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.236e-05/0.6064, allocations: 5.344 kB / 0.9514 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.545e-05/0.6064, allocations: 23.75 kB / 0.9515 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.6064, allocations: 1.281 kB / 0.9515 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.012e-06/0.6065, allocations: 0 / 0.9515 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.6065, allocations: 0 / 0.9515 GB, free: 7.848 MB / 0.7169 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.0001705/0.6066, allocations: 316.7 kB / 0.9518 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.6067, allocations: 9.094 kB / 0.9518 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.297e-05/0.6067, allocations: 32 kB / 0.9518 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.366e-05/0.6067, allocations: 6.188 kB / 0.9518 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.295e-05/0.6068, allocations: 160.4 kB / 0.952 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.6068, allocations: 9.641 kB / 0.952 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.6068, allocations: 1.562 kB / 0.952 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.128e-05/0.6069, allocations: 45.66 kB / 0.952 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.6069, allocations: 0 / 0.952 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-06/0.6069, allocations: 1.25 kB / 0.952 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.6069, allocations: 0 / 0.952 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.747e-05/0.607, allocations: 7.828 kB / 0.952 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.589e-05/0.6071, allocations: 148.2 kB / 0.9522 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000165/0.6072, allocations: 42.83 kB / 0.9522 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.982e-05/0.6073, allocations: 8.141 kB / 0.9522 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001224/0.6074, allocations: 83.69 kB / 0.9523 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.257e-05/0.6074, allocations: 35.72 kB / 0.9523 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.6074, allocations: 3.938 kB / 0.9523 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.004292/0.6117, allocations: 0.567 MB / 0.9529 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.305e-05/0.6118, allocations: 51.41 kB / 0.9529 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.758e-05/0.6118, allocations: 98.95 kB / 0.953 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.6118, allocations: 25.7 kB / 0.9531 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.145e-06/0.6118, allocations: 80.14 kB / 0.9531 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.554e-05/0.6119, allocations: 22.83 kB / 0.9532 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.733e-05/0.6119, allocations: 17.19 kB / 0.9532 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.362e-05/0.6119, allocations: 312 kB / 0.9535 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006175/0.6126, allocations: 86.92 kB / 0.9536 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006014/0.6132, allocations: 103.7 kB / 0.9537 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001189/0.6144, allocations: 190.6 kB / 0.9538 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.6144, allocations: 1.156 kB / 0.9538 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001248/0.6156, allocations: 218.1 kB / 0.954 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.6157, allocations: 4.312 kB / 0.9541 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.6157, allocations: 1.5 kB / 0.9541 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.6157, allocations: 1.531 kB / 0.9541 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003979/0.6161, allocations: 49.78 kB / 0.9541 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.6161, allocations: 5.266 kB / 0.9541 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003598/0.6165, allocations: 42.8 kB / 0.9541 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.6165, allocations: 2.281 kB / 0.9542 GB, free: 5.754 MB / 0.7169 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 5.364e-05/0.6166, allocations: 115.2 kB / 0.9543 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.983e-05/0.6166, allocations: 9.438 kB / 0.9543 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001368/0.618, allocations: 238.6 kB / 0.9545 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.618, allocations: 3.469 kB / 0.9545 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.618, allocations: 0 / 0.9545 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.618, allocations: 0 / 0.9545 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001435/0.6194, allocations: 457.5 kB / 0.9549 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.6194, allocations: 0 / 0.9549 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003925/0.6198, allocations: 48.81 kB / 0.955 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.6198, allocations: 0 / 0.955 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.6199, allocations: 1.312 kB / 0.955 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.6199, allocations: 5.344 kB / 0.955 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.6199, allocations: 0 / 0.955 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.6212, allocations: 313.9 kB / 0.9553 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.401e-05/0.6212, allocations: 78.39 kB / 0.9554 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.6212, allocations: 3.938 kB / 0.9554 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000381/0.6216, allocations: 42.75 kB / 0.9554 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.35e-05/0.6216, allocations: 6.203 kB / 0.9554 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.057e-05/0.6216, allocations: 1.156 kB / 0.9554 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.144e-05/0.6217, allocations: 79.28 kB / 0.9555 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6217, allocations: 1.031 kB / 0.9555 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002472/0.6219, allocations: 13.28 kB / 0.9555 GB, free: 4.746 MB / 0.7169 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.001503/0.6234, allocations: 0.8474 MB / 0.9563 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001294/0.6247, allocations: 177.9 kB / 0.9565 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.6247, allocations: 0 / 0.9565 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0006133/0.6254, allocations: 95.98 kB / 0.9566 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/0.6256, allocations: 3.562 kB / 0.9566 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.6268, allocations: 244.6 kB / 0.9568 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.276e-05/0.6269, allocations: 0.6768 MB / 0.9575 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002124/0.6271, allocations: 32.11 kB / 0.9575 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.763e-05/0.6272, allocations: 10.19 kB / 0.9575 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.6272, allocations: 0 / 0.9575 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01586/0.6431, allocations: 1.595 MB / 0.9591 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.217/7.86, allocations: 16.44 kB / 0.9591 GB, free: 2.16 MB / 0.7169 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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) "" Variables in the reference:time,y,der(y),der2_y Variables in the result:time,der(der_y),der(y),der2_y,der_y,y