Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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: translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007677/0.007677, allocations: 99.8 kB / 15.73 MB, free: 6.496 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.001884/0.001884, allocations: 199 kB / 16.68 MB, free: 6.375 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.372/1.372, 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 11.0.1-master/package.mo): time 2.721/2.721, allocations: 461.9 MB / 0.7348 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 63.91 kB / 1.054 GB, free: 7.109 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.3656, allocations: 157.4 MB / 1.208 GB, free: 9.598 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003444/0.3691, allocations: 1.434 MB / 1.209 GB, free: 8.152 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001004/0.3702, allocations: 466.8 kB / 1.21 GB, free: 7.691 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.467e-05/0.3702, allocations: 4 kB / 1.21 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.316e-05/0.3703, allocations: 3.938 kB / 1.21 GB, free: 7.684 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.104e-05/0.3704, allocations: 3.938 kB / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002727/0.3707, allocations: 19.97 kB / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.76e-05/0.3708, allocations: 23.92 kB / 1.21 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.3709, allocations: 4 kB / 1.21 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.438e-05/0.371, allocations: 19.86 kB / 1.21 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.919e-05/0.3711, allocations: 15.98 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.461e-05/0.3711, allocations: 0 / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.215e-05/0.3712, allocations: 23.97 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.83e-05/0.3712, allocations: 3.938 kB / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.008e-05/0.3712, allocations: 7.938 kB / 1.21 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001377/0.3714, allocations: 35.95 kB / 1.21 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.3714, allocations: 0 / 1.21 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.362e-06/0.3714, allocations: 3.938 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.3714, allocations: 0 / 1.21 GB, free: 7.523 MB / 0.9669 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.0005039/0.3719, allocations: 347.4 kB / 1.21 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.372, allocations: 8.625 kB / 1.21 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.674e-05/0.372, allocations: 4.875 kB / 1.21 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.3722, allocations: 168.3 kB / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.3722, allocations: 8.312 kB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.3722, allocations: 4.359 kB / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001906/0.3724, allocations: 53.98 kB / 1.21 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.3724, allocations: 0 / 1.21 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.3724, allocations: 0 / 1.21 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3725, allocations: 4 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001575/0.3726, allocations: 35.95 kB / 1.21 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000385/0.373, allocations: 256.9 kB / 1.211 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001264/0.3732, allocations: 38.5 kB / 1.211 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.998e-05/0.3733, allocations: 24.91 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001496/0.3734, allocations: 85.09 kB / 1.211 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.3734, allocations: 34.56 kB / 1.211 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.001e-06/0.3735, allocations: 0 / 1.211 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.000421/0.3739, allocations: 77.64 kB / 1.211 GB, free: 6.211 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.3739, allocations: 59.47 kB / 1.211 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.839e-05/0.374, allocations: 101.9 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.3741, allocations: 25.7 kB / 1.211 GB, free: 6 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.584e-05/0.3741, allocations: 88.12 kB / 1.211 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/0.3741, allocations: 3.906 kB / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.065e-05/0.3742, allocations: 13.72 kB / 1.211 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.3743, allocations: 314.8 kB / 1.211 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.044e-05/0.3744, allocations: 15.98 kB / 1.211 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.514e-05/0.3745, allocations: 24.47 kB / 1.211 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001453/0.3746, allocations: 40.77 kB / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3747, allocations: 0 / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002118/0.3749, allocations: 65.66 kB / 1.212 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.3749, allocations: 12.03 kB / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3749, allocations: 0 / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.375, allocations: 0 / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.3751, allocations: 11.98 kB / 1.212 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.3751, allocations: 0 / 1.212 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.176e-05/0.3751, allocations: 15.84 kB / 1.212 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.3751, allocations: 0 / 1.212 GB, free: 5.379 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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.223e-05/0.3752, allocations: 117.7 kB / 1.212 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.934e-05/0.3753, allocations: 8 kB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002285/0.3755, allocations: 68.78 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3755, allocations: 3.938 kB / 1.212 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3755, allocations: 4 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.3755, allocations: 0 / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001706/0.3757, allocations: 161.6 kB / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.3757, allocations: 0 / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.561e-05/0.3758, allocations: 7.938 kB / 1.212 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.3758, allocations: 8.031 kB / 1.212 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.3758, allocations: 256 / 1.212 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.3758, allocations: 4 kB / 1.212 GB, free: 4.941 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3758, allocations: 3.984 kB / 1.212 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002352/0.3761, allocations: 159.5 kB / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.562e-05/0.3761, allocations: 85 kB / 1.212 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.3762, allocations: 4.031 kB / 1.212 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.239e-05/0.3762, allocations: 4 kB / 1.212 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.308e-05/0.3763, allocations: 7.984 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.3763, allocations: 0 / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.908e-05/0.3764, allocations: 83.28 kB / 1.212 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3764, allocations: 0 / 1.212 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002253/0.3766, allocations: 4 kB / 1.212 GB, free: 4.562 MB / 0.9669 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 (2): * Single equations (assignments): 2 * 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.0001907/0.3768, allocations: 103.2 kB / 1.212 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002337/0.377, allocations: 39.91 kB / 1.212 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3771, allocations: 0 / 1.212 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.908e-05/0.3771, allocations: 19.98 kB / 1.212 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.3775, allocations: 11.92 kB / 1.212 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003043/0.3778, allocations: 105.6 kB / 1.213 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.3781, allocations: 0.6768 MB / 1.213 GB, free: 3.543 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.869e-05/0.3781, allocations: 7.953 kB / 1.213 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.09e-05/0.3782, allocations: 7.438 kB / 1.213 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of SimCode: time 4.81e-07/0.3782, allocations: 0 / 1.213 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of Templates: time 0.003382/0.3815, allocations: 0.5693 MB / 1.214 GB, free: 2.961 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches