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.001535/0.001535, allocations: 104 kB / 16.35 MB, free: 5.824 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.00122/0.00122, allocations: 191.2 kB / 17.29 MB, free: 5.48 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.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.16 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 2.295/2.295, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 68.38 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2404, allocations: 140.4 MB / 0.9511 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.003038/0.2435, allocations: 1.456 MB / 0.9525 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00106/0.2446, allocations: 0.5639 MB / 0.9531 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.903e-05/0.2446, allocations: 0 / 0.9531 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.333e-05/0.2447, allocations: 3.938 kB / 0.9531 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.063e-05/0.2448, allocations: 7.938 kB / 0.9531 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.2451, allocations: 55.81 kB / 0.9532 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.278e-05/0.2452, allocations: 23.88 kB / 0.9532 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.2453, allocations: 11.98 kB / 0.9532 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.2454, allocations: 15.98 kB / 0.9532 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.799e-05/0.2455, allocations: 15.92 kB / 0.9532 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.2455, allocations: 3.938 kB / 0.9532 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001298/0.2457, allocations: 55.95 kB / 0.9533 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.635e-05/0.2457, allocations: 3.938 kB / 0.9533 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.75e-05/0.2457, allocations: 11.94 kB / 0.9533 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001683/0.2459, allocations: 59.86 kB / 0.9533 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.2459, allocations: 3.984 kB / 0.9533 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.714e-06/0.2459, allocations: 4 kB / 0.9534 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.2459, allocations: 4 kB / 0.9534 GB, free: 5.73 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.0004363/0.2464, allocations: 344.4 kB / 0.9537 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.2464, allocations: 8.031 kB / 0.9537 GB, free: 5.34 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.051e-05/0.2465, allocations: 4.938 kB / 0.9537 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.2466, allocations: 176.3 kB / 0.9539 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.2466, allocations: 4.375 kB / 0.9539 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.2466, allocations: 384 / 0.9539 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001451/0.2468, allocations: 42 kB / 0.9539 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.2468, allocations: 4 kB / 0.9539 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.2468, allocations: 4 kB / 0.9539 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.2468, allocations: 0 / 0.9539 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.62e-05/0.2469, allocations: 23.92 kB / 0.9539 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003431/0.2473, allocations: 260.8 kB / 0.9542 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.429e-05/0.2474, allocations: 30.56 kB / 0.9542 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.221e-05/0.2474, allocations: 20.92 kB / 0.9542 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007786/0.2482, allocations: 469.4 kB / 0.9547 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.2483, allocations: 34.56 kB / 0.9547 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.372e-06/0.2483, allocations: 3.938 kB / 0.9547 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0002581/0.2485, allocations: 69.58 kB / 0.9548 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.2486, allocations: 51.41 kB / 0.9548 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.281e-05/0.2487, allocations: 113.8 kB / 0.9549 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.2487, allocations: 25.7 kB / 0.955 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.792e-05/0.2488, allocations: 84.14 kB / 0.9551 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.2488, allocations: 7.906 kB / 0.9551 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/0.2488, allocations: 13.72 kB / 0.9551 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.2489, allocations: 319 kB / 0.9554 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.445e-05/0.249, allocations: 12 kB / 0.9554 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.339e-05/0.249, allocations: 7.984 kB / 0.9554 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.187e-05/0.2491, allocations: 32.72 kB / 0.9554 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2491, allocations: 4 kB / 0.9554 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001184/0.2493, allocations: 49.78 kB / 0.9555 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.2493, allocations: 8 kB / 0.9555 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.2493, allocations: 0 / 0.9555 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.2493, allocations: 0 / 0.9555 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.577e-05/0.2494, allocations: 7.984 kB / 0.9555 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.2494, allocations: 4 kB / 0.9555 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.159e-05/0.2494, allocations: 0 / 0.9555 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-06/0.2495, allocations: 4 kB / 0.9555 GB, free: 3.219 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 7.65e-05/0.2495, allocations: 115.8 kB / 0.9556 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.537e-05/0.2496, allocations: 4 kB / 0.9556 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/0.2497, allocations: 69.05 kB / 0.9557 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-06/0.2498, allocations: 0 / 0.9557 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.2498, allocations: 4 kB / 0.9557 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2498, allocations: 0 / 0.9557 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.2499, allocations: 165.6 kB / 0.9558 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2499, allocations: 0 / 0.9558 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.627e-05/0.25, allocations: 7.984 kB / 0.9558 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.25, allocations: 0 / 0.9558 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.114e-06/0.25, allocations: 7.969 kB / 0.9559 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.25, allocations: 4 kB / 0.9559 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.25, allocations: 3.984 kB / 0.9559 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001587/0.2502, allocations: 151.4 kB / 0.956 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.391e-05/0.2502, allocations: 81.11 kB / 0.9561 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.2503, allocations: 3.984 kB / 0.9561 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.071e-05/0.2503, allocations: 0 / 0.9561 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.807e-05/0.2504, allocations: 8.031 kB / 0.9561 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.2504, allocations: 0 / 0.9561 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.748e-05/0.2504, allocations: 87.27 kB / 0.9562 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2504, allocations: 0 / 0.9562 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002421/0.2507, allocations: 16 kB / 0.9562 GB, free: 2.402 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.0001525/0.2508, allocations: 119.2 kB / 0.9563 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001448/0.251, allocations: 19.98 kB / 0.9563 GB, free: 2.258 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.251, allocations: 12 kB / 0.9563 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.748e-05/0.2511, allocations: 15.92 kB / 0.9564 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002155/0.2513, allocations: 7.938 kB / 0.9564 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003079/0.2516, allocations: 122.6 kB / 0.9565 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002134/0.2518, allocations: 0.6844 MB / 0.9571 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.335e-05/0.2518, allocations: 0 / 0.9571 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.134e-05/0.2519, allocations: 15.5 kB / 0.9572 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.2519, allocations: 0 / 0.9572 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of Templates: time 0.002889/0.2548, allocations: 0.6618 MB / 0.9578 GB, free: 0.6953 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 gbode -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