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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008666/0.0008666, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005363/0.005363, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.22/1.22, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.133/2.133, allocations: 390.9 MB / 0.6664 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002884/0.0002884, allocations: 12 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5627/0.563, allocations: 142.4 MB / 0.9552 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.0005667/0.5636, allocations: 325.8 kB / 0.9555 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009353/0.5646, allocations: 1.093 MB / 0.9566 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.678e-06/0.5646, allocations: 0 / 0.9566 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.708e-06/0.5646, allocations: 0 / 0.9566 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001654/0.5648, allocations: 15.03 kB / 0.9566 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 2.796e-06/0.5648, allocations: 0 / 0.9566 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 2.796e-05/0.5648, allocations: 10.28 kB / 0.9566 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.176e-05/0.5649, allocations: 5.281 kB / 0.9566 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.227e-05/0.5649, allocations: 5.094 kB / 0.9566 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 1.815e-05/0.5649, allocations: 1.219 kB / 0.9566 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.081e-06/0.5649, allocations: 0 / 0.9566 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.375e-05/0.565, allocations: 24.56 kB / 0.9566 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.36e-06/0.565, allocations: 0 / 0.9566 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.995e-05/0.565, allocations: 34.83 kB / 0.9567 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.703e-05/0.5651, allocations: 8.953 kB / 0.9567 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.5651, allocations: 0 / 0.9567 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.333e-06/0.5651, allocations: 0 / 0.9567 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.557e-06/0.5651, allocations: 4 kB / 0.9567 GB, free: 6.605 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.0001599/0.5653, allocations: 319.2 kB / 0.957 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.5653, allocations: 9.812 kB / 0.957 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.019e-05/0.5654, allocations: 30.75 kB / 0.957 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.735e-05/0.5654, allocations: 6.438 kB / 0.957 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.508e-05/0.5654, allocations: 160.4 kB / 0.9572 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.5654, allocations: 5.328 kB / 0.9572 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.5655, allocations: 1.594 kB / 0.9572 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.242e-05/0.5655, allocations: 41.75 kB / 0.9572 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.5656, allocations: 4 kB / 0.9572 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.272e-06/0.5656, allocations: 1.5 kB / 0.9572 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-06/0.5656, allocations: 3.938 kB / 0.9572 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.937e-05/0.5656, allocations: 7.828 kB / 0.9572 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.439e-05/0.5657, allocations: 153.6 kB / 0.9574 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001375/0.5658, allocations: 33.58 kB / 0.9574 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.52e-05/0.5659, allocations: 7.203 kB / 0.9574 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001022/0.566, allocations: 89.59 kB / 0.9575 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.219e-05/0.566, allocations: 34.5 kB / 0.9575 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.566, allocations: 4.812 kB / 0.9575 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.003906/0.5699, allocations: 0.5661 MB / 0.9581 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.115e-05/0.5699, allocations: 56.72 kB / 0.9581 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.478e-05/0.57, allocations: 89.86 kB / 0.9582 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.57, allocations: 29.7 kB / 0.9583 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.927e-06/0.57, allocations: 80.14 kB / 0.9583 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.385e-05/0.57, allocations: 22.41 kB / 0.9584 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.829e-05/0.5701, allocations: 23.02 kB / 0.9584 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.896e-05/0.5701, allocations: 312.2 kB / 0.9587 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005515/0.5707, allocations: 82.17 kB / 0.9588 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005559/0.5712, allocations: 99.75 kB / 0.9588 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.5723, allocations: 191.1 kB / 0.959 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-07/0.5724, allocations: 0 / 0.959 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001175/0.5735, allocations: 217.8 kB / 0.9592 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.5736, allocations: 4.969 kB / 0.9592 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.5736, allocations: 5.094 kB / 0.9592 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.5736, allocations: 1.062 kB / 0.9592 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003719/0.574, allocations: 50.66 kB / 0.9593 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.574, allocations: 5.375 kB / 0.9593 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003283/0.5743, allocations: 38.23 kB / 0.9593 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.5743, allocations: 6.734 kB / 0.9593 GB, free: 4.504 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 6.007e-05/0.5744, allocations: 111.2 kB / 0.9595 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.537e-05/0.5744, allocations: 5.312 kB / 0.9595 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001266/0.5757, allocations: 234.4 kB / 0.9597 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.5757, allocations: 1.375 kB / 0.9597 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.5757, allocations: 4 kB / 0.9597 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.5757, allocations: 1.375 kB / 0.9597 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001395/0.5771, allocations: 454.3 kB / 0.9601 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.5771, allocations: 0 / 0.9601 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003694/0.5775, allocations: 49.23 kB / 0.9602 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.5775, allocations: 1.312 kB / 0.9602 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.5775, allocations: 7.984 kB / 0.9602 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.5776, allocations: 0.9062 kB / 0.9602 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.5776, allocations: 0 / 0.9602 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.5788, allocations: 307 kB / 0.9605 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.386e-05/0.5788, allocations: 85.08 kB / 0.9606 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.5789, allocations: 1.094 kB / 0.9606 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003547/0.5792, allocations: 38.11 kB / 0.9606 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.229e-05/0.5792, allocations: 9.812 kB / 0.9606 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.5793, allocations: 9.922 kB / 0.9606 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.152e-05/0.5793, allocations: 75.28 kB / 0.9607 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8e-08/0.5793, allocations: 0 / 0.9607 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000238/0.5795, allocations: 10.19 kB / 0.9607 GB, free: 3.508 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.001422/0.581, allocations: 0.8459 MB / 0.9615 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001198/0.5822, allocations: 180.4 kB / 0.9617 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.5822, allocations: 4.188 kB / 0.9617 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0005518/0.5827, allocations: 84.17 kB / 0.9618 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000204/0.5829, allocations: 10.03 kB / 0.9618 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.5841, allocations: 240.8 kB / 0.962 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.463e-05/0.5842, allocations: 0.6816 MB / 0.9627 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002003/0.5844, allocations: 27.28 kB / 0.9627 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.687e-05/0.5845, allocations: 19.3 kB / 0.9627 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of SimCode: time 3.11e-07/0.5845, allocations: 0 / 0.9627 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01509/0.5996, allocations: 1.425 MB / 0.9641 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001501/0.5998, allocations: 227.4 kB / 0.9643 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.479/2.079, allocations: 4 kB / 0.9643 GB, free: 0.8711 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 & /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) "" 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