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.0008879/0.0008881, allocations: 97.72 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.006452/0.006452, allocations: 170 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.408/1.408, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.778/2.778, allocations: 462.7 MB / 0.7364 GB, free: 276 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003371/0.000337, allocations: 12.88 kB / 0.9028 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3122, allocations: 159.6 MB / 1.059 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.001485/0.3138, allocations: 1.171 MB / 1.06 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007065/0.3145, allocations: 470.8 kB / 1.06 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.055e-05/0.3145, allocations: 0 / 1.06 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.322e-05/0.3145, allocations: 0 / 1.06 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.184e-05/0.3146, allocations: 11.91 kB / 1.06 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001527/0.3148, allocations: 12 kB / 1.06 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.497e-05/0.3148, allocations: 23.92 kB / 1.06 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.617e-05/0.3149, allocations: 8 kB / 1.06 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.302e-05/0.315, allocations: 11.92 kB / 1.06 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.047e-05/0.315, allocations: 11.98 kB / 1.06 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.3151, allocations: 0 / 1.06 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.904e-05/0.3151, allocations: 27.84 kB / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.481e-05/0.3152, allocations: 11.94 kB / 1.06 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.994e-05/0.3152, allocations: 29.64 kB / 1.06 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.183e-05/0.3153, allocations: 27.95 kB / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3153, allocations: 0 / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.353e-06/0.3153, allocations: 4 kB / 1.06 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.077e-06/0.3153, allocations: 4 kB / 1.06 GB, free: 3.66 MB / 0.8106 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.000411/0.3157, allocations: 339.8 kB / 1.061 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.3158, allocations: 11.97 kB / 1.061 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.193e-05/0.3158, allocations: 8.844 kB / 1.061 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.3159, allocations: 164.4 kB / 1.061 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.3159, allocations: 384 / 1.061 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.316, allocations: 4.375 kB / 1.061 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001809/0.3162, allocations: 65.92 kB / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.3162, allocations: 0 / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.924e-06/0.3162, allocations: 0 / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.3162, allocations: 0 / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001803/0.3164, allocations: 47.95 kB / 1.061 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002998/0.3167, allocations: 252.9 kB / 1.061 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001462/0.3168, allocations: 46.5 kB / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.78e-05/0.317, allocations: 24.91 kB / 1.061 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001192/0.3171, allocations: 85.09 kB / 1.061 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.3171, allocations: 34.56 kB / 1.061 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.3171, allocations: 4 kB / 1.061 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003889/0.3175, allocations: 101.5 kB / 1.062 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.3176, allocations: 51.41 kB / 1.062 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.71e-05/0.3176, allocations: 101.9 kB / 1.062 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.3177, allocations: 25.83 kB / 1.062 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.306e-05/0.3177, allocations: 96.06 kB / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.825e-05/0.3177, allocations: 3.906 kB / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.3178, allocations: 13.72 kB / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.3179, allocations: 314.8 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.062e-05/0.318, allocations: 15.98 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.917e-05/0.3181, allocations: 31.97 kB / 1.062 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.3183, allocations: 48.77 kB / 1.062 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3183, allocations: 0 / 1.062 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002109/0.3185, allocations: 81.72 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.3185, allocations: 4 kB / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.3185, allocations: 0 / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.3186, allocations: 0 / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.251e-05/0.3187, allocations: 19.95 kB / 1.062 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.3187, allocations: 0 / 1.062 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.59e-05/0.3187, allocations: 15.88 kB / 1.062 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-06/0.3187, allocations: 3.938 kB / 1.062 GB, free: 1.441 MB / 0.8106 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 8.673e-05/0.3188, allocations: 119.3 kB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.464e-05/0.3189, allocations: 3.984 kB / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000256/0.3191, allocations: 84.77 kB / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.3191, allocations: 0 / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3191, allocations: 0 / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.3192, allocations: 256 / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.3193, allocations: 161.6 kB / 1.063 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3193, allocations: 8 kB / 1.063 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.638e-05/0.3194, allocations: 16.02 kB / 1.063 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3194, allocations: 0 / 1.063 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.3194, allocations: 0 / 1.063 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3194, allocations: 3.938 kB / 1.063 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3195, allocations: 0 / 1.063 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002749/0.3197, allocations: 179.4 kB / 1.063 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.161e-05/0.3198, allocations: 81.11 kB / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.538e-05/0.3198, allocations: 3.984 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.083e-05/0.3199, allocations: 8 kB / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.491e-05/0.32, allocations: 3.984 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.32, allocations: 0 / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.76e-05/0.32, allocations: 83.31 kB / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.32, allocations: 0 / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002353/0.3203, allocations: 12 kB / 1.063 GB, free: 0.5938 MB / 0.8106 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.0001501/0.3204, allocations: 98.75 kB / 1.063 GB, free: 500 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002486/0.3207, allocations: 55.89 kB / 1.063 GB, free: 444 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3207, allocations: 0 / 1.063 GB, free: 444 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.444e-05/0.3208, allocations: 19.98 kB / 1.063 GB, free: 424 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.3211, allocations: 11.94 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002594/0.3213, allocations: 116.8 kB / 1.063 GB, free: 268 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002538/0.3216, allocations: 0.677 MB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.498e-05/0.3216, allocations: 4 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.875e-05/0.3217, allocations: 7.438 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3217, allocations: 0 / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of Templates: time 0.002613/0.3243, allocations: 493.4 kB / 1.065 GB, free: 15.07 MB / 0.8262 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