Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_9_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.001779/0.001779, allocations: 104.6 kB / 16.35 MB, free: 5.828 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.001879/0.001879, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.194/1.194, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 1.998/1.998, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 62.02 kB / 0.814 GB, free: 32.59 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2296, allocations: 140.4 MB / 0.9511 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002299/0.232, allocations: 1.467 MB / 0.9525 GB, free: 6.613 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008042/0.2328, allocations: 0.5639 MB / 0.9531 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.991e-05/0.2328, allocations: 0 / 0.9531 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.083e-05/0.2328, allocations: 0 / 0.9531 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.908e-05/0.2329, allocations: 3.938 kB / 0.9531 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002249/0.2331, allocations: 47.83 kB / 0.9531 GB, free: 5.992 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.862e-05/0.2332, allocations: 31.86 kB / 0.9532 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.985e-05/0.2333, allocations: 19.97 kB / 0.9532 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.433e-05/0.2333, allocations: 7.938 kB / 0.9532 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.551e-05/0.2334, allocations: 15.92 kB / 0.9532 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.136e-05/0.2334, allocations: 4 kB / 0.9532 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.761e-05/0.2335, allocations: 51.95 kB / 0.9533 GB, free: 5.863 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.577e-05/0.2335, allocations: 15.92 kB / 0.9533 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.159e-05/0.2336, allocations: 7.938 kB / 0.9533 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.2337, allocations: 59.86 kB / 0.9533 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2337, allocations: 4 kB / 0.9533 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2337, allocations: 4 kB / 0.9534 GB, free: 5.773 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.052e-06/0.2337, allocations: 0 / 0.9534 GB, free: 5.773 MB / 0.7325 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.0003528/0.2341, allocations: 351.3 kB / 0.9537 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.007e-05/0.2341, allocations: 8.031 kB / 0.9537 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.829e-05/0.2342, allocations: 0.9375 kB / 0.9537 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.2343, allocations: 172.3 kB / 0.9539 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.2343, allocations: 384 / 0.9539 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-06/0.2343, allocations: 4.375 kB / 0.9539 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.2344, allocations: 53.94 kB / 0.9539 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.821e-06/0.2344, allocations: 0 / 0.9539 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-06/0.2344, allocations: 0 / 0.9539 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.2345, allocations: 0 / 0.9539 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.208e-05/0.2345, allocations: 19.98 kB / 0.9539 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002699/0.2348, allocations: 256.8 kB / 0.9542 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.224e-05/0.2349, allocations: 34.45 kB / 0.9542 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.011e-05/0.2349, allocations: 20.91 kB / 0.9542 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007099/0.2357, allocations: 477.3 kB / 0.9547 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.166e-05/0.2357, allocations: 38.55 kB / 0.9547 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.2357, allocations: 4 kB / 0.9547 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0002073/0.2359, allocations: 65.58 kB / 0.9548 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.2359, allocations: 51.41 kB / 0.9548 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.601e-05/0.236, allocations: 109.8 kB / 0.9549 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.236, allocations: 25.7 kB / 0.955 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.484e-05/0.2361, allocations: 88.08 kB / 0.9551 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.547e-05/0.2361, allocations: 11.89 kB / 0.9551 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.046e-05/0.2361, allocations: 17.84 kB / 0.9551 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.217e-05/0.2362, allocations: 314.8 kB / 0.9554 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.857e-05/0.2363, allocations: 8 kB / 0.9554 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.128e-05/0.2363, allocations: 11.98 kB / 0.9554 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.115e-05/0.2364, allocations: 32.78 kB / 0.9554 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2364, allocations: 0 / 0.9554 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001036/0.2365, allocations: 53.75 kB / 0.9555 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.2365, allocations: 8 kB / 0.9555 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.2365, allocations: 0 / 0.9555 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.2366, allocations: 0 / 0.9555 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.53e-05/0.2366, allocations: 11.92 kB / 0.9555 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.2366, allocations: 0 / 0.9555 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.973e-05/0.2367, allocations: 4 kB / 0.9555 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-06/0.2367, allocations: 0 / 0.9555 GB, free: 3.25 MB / 0.7325 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.689e-05/0.2368, allocations: 113.8 kB / 0.9556 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.315e-05/0.2368, allocations: 4 kB / 0.9556 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001434/0.2369, allocations: 65.11 kB / 0.9557 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2369, allocations: 0 / 0.9557 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.2369, allocations: 0 / 0.9557 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.237, allocations: 0 / 0.9557 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001442/0.2371, allocations: 169.6 kB / 0.9558 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.2371, allocations: 0 / 0.9558 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.973e-05/0.2372, allocations: 4 kB / 0.9558 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.2372, allocations: 0 / 0.9558 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.2372, allocations: 12.02 kB / 0.9559 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2372, allocations: 7.875 kB / 0.9559 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.2372, allocations: 0 / 0.9559 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001433/0.2373, allocations: 147.5 kB / 0.956 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.033e-05/0.2374, allocations: 77.11 kB / 0.9561 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.038e-05/0.2374, allocations: 0 / 0.9561 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.011e-05/0.2375, allocations: 12.02 kB / 0.9561 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.661e-05/0.2375, allocations: 4 kB / 0.9561 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-06/0.2375, allocations: 0 / 0.9561 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.717e-05/0.2375, allocations: 91.2 kB / 0.9562 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2375, allocations: 0 / 0.9562 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002162/0.2378, allocations: 20 kB / 0.9562 GB, free: 2.434 MB / 0.7325 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.0001339/0.2379, allocations: 115 kB / 0.9563 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001151/0.238, allocations: 31.92 kB / 0.9563 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.238, allocations: 0 / 0.9563 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.555e-05/0.2381, allocations: 8 kB / 0.9563 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001887/0.2383, allocations: 7.938 kB / 0.9564 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002325/0.2385, allocations: 126.6 kB / 0.9565 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.2387, allocations: 0.6844 MB / 0.9571 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.903e-05/0.2388, allocations: 128 / 0.9571 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.592e-05/0.2388, allocations: 11.44 kB / 0.9572 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.2388, allocations: 0 / 0.9572 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of Templates: time 0.002501/0.2413, allocations: 0.6727 MB / 0.9578 GB, free: 0.7266 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches