Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_10_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.00815/0.00815, allocations: 100.2 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.001932/0.001931, allocations: 198.7 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.59/2.59, allocations: 437 MB / 0.7105 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 67.91 kB / 1.019 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3198, allocations: 151.6 MB / 1.167 GB, free: 6.801 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002475/0.3223, allocations: 1.445 MB / 1.168 GB, free: 5.34 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0007972/0.3232, allocations: 471.8 kB / 1.168 GB, free: 4.871 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.234e-05/0.3232, allocations: 0 / 1.168 GB, free: 4.871 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.717e-05/0.3232, allocations: 0 / 1.168 GB, free: 4.871 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.232e-05/0.3233, allocations: 7.922 kB / 1.168 GB, free: 4.863 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002194/0.3235, allocations: 27.92 kB / 1.169 GB, free: 4.836 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.839e-05/0.3236, allocations: 27.81 kB / 1.169 GB, free: 4.809 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.281e-05/0.3237, allocations: 15.97 kB / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.551e-05/0.3238, allocations: 8 kB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.568e-05/0.3238, allocations: 15.92 kB / 1.169 GB, free: 4.77 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.3239, allocations: 0 / 1.169 GB, free: 4.77 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.852e-05/0.3239, allocations: 23.92 kB / 1.169 GB, free: 4.746 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.371e-05/0.324, allocations: 3.984 kB / 1.169 GB, free: 4.742 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.758e-05/0.324, allocations: 11.94 kB / 1.169 GB, free: 4.73 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.3241, allocations: 35.83 kB / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3241, allocations: 0 / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3241, allocations: 0 / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.3241, allocations: 4 kB / 1.169 GB, free: 4.691 MB / 0.92 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.0004316/0.3246, allocations: 343.4 kB / 1.169 GB, free: 4.309 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.3246, allocations: 8.031 kB / 1.169 GB, free: 4.301 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.628e-05/0.3247, allocations: 8.891 kB / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.3248, allocations: 164.4 kB / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.385e-06/0.3248, allocations: 384 / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.3248, allocations: 4.375 kB / 1.169 GB, free: 4.09 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001769/0.325, allocations: 57.92 kB / 1.169 GB, free: 4.027 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.325, allocations: 4 kB / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.148e-06/0.3251, allocations: 0 / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.3251, allocations: 0 / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001587/0.3252, allocations: 27.97 kB / 1.169 GB, free: 3.996 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003236/0.3256, allocations: 256.9 kB / 1.169 GB, free: 3.695 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.3257, allocations: 38.56 kB / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.591e-05/0.3258, allocations: 24.83 kB / 1.17 GB, free: 3.621 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001168/0.3259, allocations: 81.11 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.326, allocations: 34.56 kB / 1.17 GB, free: 3.48 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 3.367e-06/0.326, allocations: 0 / 1.17 GB, free: 3.48 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0003492/0.3263, allocations: 89.53 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.3264, allocations: 51.41 kB / 1.17 GB, free: 3.324 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.014e-05/0.3265, allocations: 105.8 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.3265, allocations: 25.7 kB / 1.17 GB, free: 3.18 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.024e-05/0.3265, allocations: 84.14 kB / 1.17 GB, free: 3.094 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.525e-05/0.3265, allocations: 7.953 kB / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-05/0.3266, allocations: 9.719 kB / 1.17 GB, free: 3.07 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.3267, allocations: 327 kB / 1.17 GB, free: 2.742 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.154e-05/0.3268, allocations: 15.92 kB / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.177e-05/0.3269, allocations: 15.98 kB / 1.17 GB, free: 2.711 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001476/0.327, allocations: 40.77 kB / 1.17 GB, free: 2.668 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.327, allocations: 0 / 1.17 GB, free: 2.668 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001848/0.3272, allocations: 69.97 kB / 1.17 GB, free: 2.594 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.3272, allocations: 7.938 kB / 1.17 GB, free: 2.586 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.3273, allocations: 0 / 1.17 GB, free: 2.586 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.3273, allocations: 4 kB / 1.17 GB, free: 2.582 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.419e-05/0.3274, allocations: 11.98 kB / 1.17 GB, free: 2.57 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.3274, allocations: 0 / 1.17 GB, free: 2.57 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.917e-05/0.3274, allocations: 11.92 kB / 1.17 GB, free: 2.559 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-06/0.3275, allocations: 3.969 kB / 1.17 GB, free: 2.555 MB / 0.92 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 7.377e-05/0.3275, allocations: 121.8 kB / 1.171 GB, free: 2.426 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.3276, allocations: 0 / 1.171 GB, free: 2.426 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000225/0.3278, allocations: 72.78 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3278, allocations: 0 / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.3278, allocations: 3.984 kB / 1.171 GB, free: 2.344 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.3278, allocations: 0 / 1.171 GB, free: 2.344 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.328, allocations: 169.6 kB / 1.171 GB, free: 2.129 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.328, allocations: 0 / 1.171 GB, free: 2.129 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.718e-05/0.3281, allocations: 11.98 kB / 1.171 GB, free: 2.117 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.3281, allocations: 0 / 1.171 GB, free: 2.117 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.573e-06/0.3281, allocations: 0 / 1.171 GB, free: 2.117 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3281, allocations: 0 / 1.171 GB, free: 2.117 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3281, allocations: 0 / 1.171 GB, free: 2.117 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002411/0.3283, allocations: 171.4 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.573e-05/0.3284, allocations: 81.11 kB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.3284, allocations: 3.938 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.486e-05/0.3285, allocations: 7.984 kB / 1.171 GB, free: 1.824 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.508e-05/0.3285, allocations: 0 / 1.171 GB, free: 1.824 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.3285, allocations: 0 / 1.171 GB, free: 1.824 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.916e-05/0.3286, allocations: 83.28 kB / 1.171 GB, free: 1.742 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3286, allocations: 0 / 1.171 GB, free: 1.742 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002343/0.3288, allocations: 8 kB / 1.171 GB, free: 1.734 MB / 0.92 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.0001707/0.329, allocations: 107.2 kB / 1.171 GB, free: 1.617 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002234/0.3292, allocations: 39.91 kB / 1.171 GB, free: 1.578 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3292, allocations: 0 / 1.171 GB, free: 1.578 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 8.587e-05/0.3293, allocations: 23.97 kB / 1.171 GB, free: 1.555 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.3296, allocations: 12.06 kB / 1.171 GB, free: 1.543 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002523/0.3299, allocations: 105.4 kB / 1.171 GB, free: 1.414 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.3301, allocations: 0.6768 MB / 1.172 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 2.486e-05/0.3301, allocations: 0 / 1.172 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.079e-05/0.3302, allocations: 11.44 kB / 1.172 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of SimCode: time 2.61e-07/0.3302, allocations: 3.938 kB / 1.172 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of Templates: time 0.00271/0.3329, allocations: 0.5609 MB / 1.173 GB, free: 148 kB / 0.92 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches