Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_11_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.001712/0.001712, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001823/0.001823, allocations: 196.7 kB / 16.91 MB, free: 6.195 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.4/1.4, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.719/2.719, allocations: 469.8 MB / 0.7427 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 72.25 kB / 0.9087 GB, free: 14.27 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3185, allocations: 159.1 MB / 1.064 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002671/0.3212, allocations: 1.506 MB / 1.066 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007737/0.322, allocations: 463 kB / 1.066 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.791e-05/0.322, allocations: 4 kB / 1.066 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.956e-05/0.322, allocations: 3.938 kB / 1.066 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.135e-05/0.3221, allocations: 0 / 1.066 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001879/0.3223, allocations: 23.91 kB / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.754e-05/0.3224, allocations: 23.92 kB / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 7.996e-05/0.3225, allocations: 4 kB / 1.066 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 5.529e-05/0.3225, allocations: 11.94 kB / 1.066 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 3.881e-05/0.3226, allocations: 11.98 kB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.3226, allocations: 0 / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.654e-05/0.3226, allocations: 23.98 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.557e-05/0.3227, allocations: 15.91 kB / 1.066 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.153e-05/0.3227, allocations: 11.94 kB / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 7.347e-05/0.3228, allocations: 15.97 kB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3228, allocations: 4 kB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3228, allocations: 0 / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.3228, allocations: 4 kB / 1.066 GB, free: 13.02 MB / 0.8419 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.0004563/0.3233, allocations: 335.7 kB / 1.067 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.3233, allocations: 11.97 kB / 1.067 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.013e-05/0.3233, allocations: 12.94 kB / 1.067 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.3235, allocations: 160.4 kB / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.3235, allocations: 384 / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.945e-06/0.3235, allocations: 4.375 kB / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001712/0.3237, allocations: 53.98 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.3237, allocations: 0 / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.3237, allocations: 0 / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.3237, allocations: 0 / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.3239, allocations: 39.95 kB / 1.067 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003387/0.3243, allocations: 252.7 kB / 1.067 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001284/0.3244, allocations: 38.59 kB / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.122e-05/0.3245, allocations: 24.91 kB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001392/0.3246, allocations: 85.09 kB / 1.067 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.3247, allocations: 34.56 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.3247, allocations: 0 / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0003426/0.325, allocations: 89.56 kB / 1.067 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.3251, allocations: 51.41 kB / 1.067 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.711e-05/0.3252, allocations: 97.98 kB / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.3252, allocations: 29.7 kB / 1.067 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/0.3253, allocations: 92.11 kB / 1.068 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.3253, allocations: 7.906 kB / 1.068 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.474e-05/0.3253, allocations: 17.66 kB / 1.068 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3255, allocations: 310.8 kB / 1.068 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.309e-05/0.3256, allocations: 15.98 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.658e-05/0.3257, allocations: 23.97 kB / 1.068 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.3258, allocations: 44.7 kB / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3258, allocations: 0 / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000204/0.326, allocations: 69.59 kB / 1.068 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.3261, allocations: 6.031 kB / 1.068 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.3261, allocations: 4 kB / 1.068 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.3261, allocations: 4.094 kB / 1.068 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.093e-05/0.3262, allocations: 7.984 kB / 1.068 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.3262, allocations: 0 / 1.068 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.83e-05/0.3262, allocations: 7.938 kB / 1.068 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-06/0.3262, allocations: 0 / 1.068 GB, free: 10.88 MB / 0.8419 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.901e-05/0.3263, allocations: 117.8 kB / 1.068 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.662e-05/0.3264, allocations: 7.891 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002463/0.3266, allocations: 80.7 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3266, allocations: 0 / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.3266, allocations: 0 / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.3266, allocations: 0 / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/0.3268, allocations: 157.9 kB / 1.068 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.3268, allocations: 8 kB / 1.068 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.186e-05/0.3269, allocations: 7.984 kB / 1.068 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.3269, allocations: 0 / 1.068 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.3269, allocations: 4 kB / 1.068 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3269, allocations: 4.031 kB / 1.068 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3269, allocations: 4 kB / 1.068 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002511/0.3272, allocations: 159.5 kB / 1.069 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.115e-05/0.3273, allocations: 77.11 kB / 1.069 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.3273, allocations: 3.984 kB / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.778e-05/0.3274, allocations: 8.031 kB / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.416e-05/0.3274, allocations: 7.984 kB / 1.069 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.3274, allocations: 3.938 kB / 1.069 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.082e-05/0.3275, allocations: 79.28 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3275, allocations: 4 kB / 1.069 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002294/0.3277, allocations: 4 kB / 1.069 GB, free: 10.06 MB / 0.8419 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.3279, allocations: 107.2 kB / 1.069 GB, free: 9.941 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002162/0.3281, allocations: 39.95 kB / 1.069 GB, free: 9.902 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3281, allocations: 0 / 1.069 GB, free: 9.902 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.627e-05/0.3282, allocations: 15.98 kB / 1.069 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.3284, allocations: 11.94 kB / 1.069 GB, free: 9.875 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002853/0.3287, allocations: 147 kB / 1.069 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.3291, allocations: 0.6846 MB / 1.07 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.312e-05/0.3291, allocations: 11.44 kB / 1.07 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.3291, allocations: 0 / 1.07 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of Templates: time 0.002142/0.3313, allocations: 0.6397 MB / 1.07 GB, free: 8.344 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches