Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.502/1.502, allocations: 251.5 MB / 267.4 MB, free: 11.06 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009936/0.0009934, allocations: 177.1 kB / 326.5 MB, free: 2.703 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.036/2.036, allocations: 205 MB / 0.5766 GB, free: 21.03 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009291/0.000929, allocations: 84.48 kB / 0.6804 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003638/0.0003638, allocations: 8.125 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2925, allocations: 105.4 MB / 0.8967 GB, free: 68.2 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.001737/0.2943, allocations: 1.192 MB / 0.8979 GB, free: 67 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000982/0.2953, allocations: 0.6148 MB / 0.8985 GB, free: 66.38 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.94e-05/0.2953, allocations: 0 / 0.8985 GB, free: 66.38 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.856e-05/0.2954, allocations: 7.922 kB / 0.8985 GB, free: 66.37 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.699e-05/0.2954, allocations: 3.938 kB / 0.8985 GB, free: 66.36 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.2957, allocations: 35.97 kB / 0.8985 GB, free: 66.33 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.576e-05/0.2957, allocations: 31.8 kB / 0.8986 GB, free: 66.3 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.862e-05/0.2958, allocations: 15.88 kB / 0.8986 GB, free: 66.28 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.962e-05/0.2959, allocations: 15.97 kB / 0.8986 GB, free: 66.27 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.683e-05/0.296, allocations: 7.938 kB / 0.8986 GB, free: 66.26 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.398e-05/0.296, allocations: 0 / 0.8986 GB, free: 66.26 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001107/0.2961, allocations: 59.95 kB / 0.8987 GB, free: 66.2 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.475e-05/0.2962, allocations: 7.922 kB / 0.8987 GB, free: 66.19 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.616e-05/0.2962, allocations: 11.92 kB / 0.8987 GB, free: 66.18 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001058/0.2963, allocations: 35.95 kB / 0.8987 GB, free: 66.14 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2963, allocations: 0 / 0.8987 GB, free: 66.14 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.504e-06/0.2963, allocations: 4 kB / 0.8987 GB, free: 66.14 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.2963, allocations: 0 / 0.8987 GB, free: 66.14 MB / 0.6042 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.0003991/0.2967, allocations: 343.4 kB / 0.8991 GB, free: 65.76 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.2968, allocations: 8.031 kB / 0.8991 GB, free: 65.75 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.2968, allocations: 4.938 kB / 0.8991 GB, free: 65.75 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.815e-05/0.2969, allocations: 180.2 kB / 0.8992 GB, free: 65.53 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.297, allocations: 4.375 kB / 0.8992 GB, free: 65.53 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.907e-06/0.297, allocations: 384 / 0.8992 GB, free: 65.53 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001343/0.2971, allocations: 57.92 kB / 0.8993 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.2971, allocations: 4 kB / 0.8993 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.2971, allocations: 0 / 0.8993 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.2972, allocations: 0 / 0.8993 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.108e-05/0.2972, allocations: 23.98 kB / 0.8993 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002835/0.2975, allocations: 244.9 kB / 0.8996 GB, free: 65.15 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 8.299e-05/0.2976, allocations: 42.5 kB / 0.8996 GB, free: 65.1 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.345e-05/0.2977, allocations: 24.84 kB / 0.8996 GB, free: 65.07 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006619/0.2983, allocations: 493.4 kB / 0.9001 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/0.2984, allocations: 42.55 kB / 0.9001 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.2984, allocations: 0 / 0.9001 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0002268/0.2986, allocations: 65.69 kB / 0.9002 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.601e-05/0.2986, allocations: 51.41 kB / 0.9002 GB, free: 64.31 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.652e-05/0.2987, allocations: 105.8 kB / 0.9003 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.055e-05/0.2987, allocations: 25.83 kB / 0.9004 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.065e-05/0.2988, allocations: 96.12 kB / 0.9005 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.393e-05/0.2988, allocations: 3.906 kB / 0.9005 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.899e-05/0.2988, allocations: 9.719 kB / 0.9005 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.303e-05/0.2989, allocations: 318.8 kB / 0.9008 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.003e-05/0.2989, allocations: 11.98 kB / 0.9008 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.09e-05/0.299, allocations: 12 kB / 0.9008 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.65e-05/0.299, allocations: 36.84 kB / 0.9008 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.2991, allocations: 0 / 0.9008 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001033/0.2992, allocations: 61.59 kB / 0.9009 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.2992, allocations: 7.984 kB / 0.9009 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.2992, allocations: 3.938 kB / 0.9009 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.2992, allocations: 4.031 kB / 0.9009 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.817e-05/0.2993, allocations: 4 kB / 0.9009 GB, free: 63.58 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.2993, allocations: 3.938 kB / 0.9009 GB, free: 63.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.926e-05/0.2993, allocations: 4 kB / 0.9009 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-06/0.2993, allocations: 0 / 0.9009 GB, free: 63.57 MB / 0.6042 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 5.955e-05/0.2994, allocations: 121.8 kB / 0.901 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.156e-05/0.2994, allocations: 0 / 0.901 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.2996, allocations: 73.2 kB / 0.9011 GB, free: 63.37 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.2996, allocations: 4 kB / 0.9011 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2996, allocations: 0 / 0.9011 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2996, allocations: 0 / 0.9011 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.2997, allocations: 157.6 kB / 0.9013 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.2997, allocations: 0 / 0.9013 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.938e-05/0.2998, allocations: 11.98 kB / 0.9013 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.2998, allocations: 0 / 0.9013 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.2998, allocations: 0 / 0.9013 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2998, allocations: 7.969 kB / 0.9013 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2998, allocations: 3.938 kB / 0.9013 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001271/0.2999, allocations: 163.4 kB / 0.9014 GB, free: 62.96 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.426e-05/0.3, allocations: 81.05 kB / 0.9015 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.3, allocations: 0 / 0.9015 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.585e-05/0.3001, allocations: 8.031 kB / 0.9015 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.314e-05/0.3001, allocations: 3.984 kB / 0.9015 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.3001, allocations: 0 / 0.9015 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.909e-05/0.3001, allocations: 87.59 kB / 0.9016 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.3001, allocations: 0 / 0.9016 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002065/0.3004, allocations: 16 kB / 0.9016 GB, free: 62.75 MB / 0.6042 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.0001402/0.3005, allocations: 115.2 kB / 0.9017 GB, free: 62.63 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001272/0.3006, allocations: 35.92 kB / 0.9018 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3007, allocations: 0 / 0.9018 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 5.74e-05/0.3007, allocations: 15.98 kB / 0.9018 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001876/0.3009, allocations: 4.922 kB / 0.9018 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002713/0.3012, allocations: 154.3 kB / 0.9019 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001366/0.3013, allocations: 0.677 MB / 0.9026 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.036e-05/0.3014, allocations: 11.44 kB / 0.9026 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of SimCode: time 1.673e-06/0.3014, allocations: 0 / 0.9026 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of Templates: time 0.002089/0.3035, allocations: 0.8135 MB / 0.9034 GB, free: 60.87 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)