Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001766/0.001766, allocations: 108.7 kB / 16.37 MB, free: 6.465 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.001989/0.001989, allocations: 193.1 kB / 17.31 MB, free: 5.816 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.48/2.48, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 62.78 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3058, allocations: 153 MB / 1.027 GB, free: 2.023 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.003036/0.3089, allocations: 1.474 MB / 1.028 GB, free: 0.543 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001143/0.3101, allocations: 0.5539 MB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.492e-05/0.3102, allocations: 4 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.192e-05/0.3102, allocations: 0 / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.437e-05/0.3103, allocations: 15.84 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003045/0.3106, allocations: 39.84 kB / 1.029 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.658e-05/0.3107, allocations: 31.91 kB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.3108, allocations: 8 kB / 1.029 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.937e-05/0.3109, allocations: 11.92 kB / 1.029 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.634e-05/0.311, allocations: 19.92 kB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.427e-05/0.311, allocations: 4 kB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001229/0.3111, allocations: 55.95 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.64e-05/0.3112, allocations: 7.984 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.754e-05/0.3112, allocations: 15.88 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.3113, allocations: 59.86 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3114, allocations: 0 / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3114, allocations: 0 / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.3114, allocations: 0 / 1.029 GB, free: 15.71 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.0004407/0.3118, allocations: 352.6 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.3119, allocations: 12.03 kB / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.874e-05/0.3119, allocations: 12.84 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.312, allocations: 164.3 kB / 1.029 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.3121, allocations: 4.312 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.071e-05/0.3121, allocations: 4.375 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/0.3122, allocations: 49.98 kB / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.3122, allocations: 0 / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-06/0.3122, allocations: 0 / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.3122, allocations: 0 / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.65e-05/0.3123, allocations: 23.98 kB / 1.03 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003488/0.3127, allocations: 252.9 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.423e-05/0.3128, allocations: 38.5 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.038e-05/0.3128, allocations: 12.91 kB / 1.03 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000755/0.3136, allocations: 477.4 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.3136, allocations: 30.56 kB / 1.03 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.3136, allocations: 0 / 1.03 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002425/0.3139, allocations: 69.52 kB / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.3139, allocations: 55.53 kB / 1.03 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.879e-05/0.314, allocations: 117.8 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.3141, allocations: 29.7 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.893e-05/0.3141, allocations: 84.12 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.885e-05/0.3141, allocations: 11.84 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.112e-05/0.3142, allocations: 13.72 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3143, allocations: 310.8 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.43e-05/0.3143, allocations: 15.98 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.021e-05/0.3144, allocations: 8 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.384e-05/0.3145, allocations: 32.78 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3145, allocations: 0 / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001161/0.3146, allocations: 57.61 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.3146, allocations: 8 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.3146, allocations: 0 / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.3147, allocations: 4.078 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.397e-05/0.3147, allocations: 8 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.3148, allocations: 0 / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.405e-05/0.3148, allocations: 7.984 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.3148, allocations: 0 / 1.031 GB, free: 13.18 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 6.978e-05/0.3149, allocations: 113.7 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.3149, allocations: 7.906 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001635/0.3151, allocations: 61.2 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.3151, allocations: 7.969 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.3151, allocations: 0 / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.3151, allocations: 0 / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/0.3153, allocations: 169.6 kB / 1.031 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3153, allocations: 0 / 1.031 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.107e-05/0.3153, allocations: 4 kB / 1.031 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.3153, allocations: 3.938 kB / 1.031 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.3154, allocations: 4 kB / 1.031 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3154, allocations: 0 / 1.031 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3154, allocations: 4 kB / 1.031 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001493/0.3155, allocations: 151.5 kB / 1.032 GB, free: 12.58 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.324e-05/0.3156, allocations: 81.02 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.3156, allocations: 4 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.831e-05/0.3157, allocations: 0 / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.229e-05/0.3157, allocations: 7.984 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.3157, allocations: 4 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.989e-05/0.3157, allocations: 83.31 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.815e-06/0.3158, allocations: 3.938 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002372/0.316, allocations: 23.92 kB / 1.032 GB, free: 12.36 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.0001717/0.3162, allocations: 107.2 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001329/0.3163, allocations: 23.98 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3163, allocations: 0 / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.519e-05/0.3164, allocations: 11.98 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.3166, allocations: 14.45 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003056/0.3169, allocations: 126.6 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002258/0.3172, allocations: 0.6807 MB / 1.033 GB, free: 11.33 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.166e-05/0.3172, allocations: 0 / 1.033 GB, free: 11.33 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.079e-05/0.3172, allocations: 7.438 kB / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.3172, allocations: 0 / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of Templates: time 0.002817/0.3201, allocations: 0.6805 MB / 1.033 GB, free: 10.64 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches