Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 114.9 kB / 16.37 MB, free: 6 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.001587/0.001587, allocations: 194.7 kB / 17.3 MB, free: 5.613 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.345/1.345, 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 9.1.2-maint.9.1.x/package.mo): time 2.257/2.257, allocations: 390.3 MB / 0.6655 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 71.91 kB / 0.814 GB, free: 32.71 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2622, allocations: 140.4 MB / 0.9511 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001776/0.264, allocations: 0.5821 MB / 0.9517 GB, free: 7.477 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001244/0.2653, allocations: 1.114 MB / 0.9528 GB, free: 6.348 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.933e-05/0.2653, allocations: 0 / 0.9528 GB, free: 6.348 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.185e-05/0.2654, allocations: 0 / 0.9528 GB, free: 6.348 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002744/0.2656, allocations: 23.91 kB / 0.9528 GB, free: 6.324 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 3.547e-06/0.2657, allocations: 7.938 kB / 0.9528 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 3.812e-05/0.2657, allocations: 4 kB / 0.9528 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.044e-05/0.2658, allocations: 0 / 0.9528 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.594e-05/0.2658, allocations: 3.938 kB / 0.9528 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 2.403e-05/0.2658, allocations: 11.94 kB / 0.9528 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.354e-06/0.2658, allocations: 0 / 0.9528 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.2659, allocations: 15.98 kB / 0.9529 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.376e-06/0.2659, allocations: 3.984 kB / 0.9529 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 1.226e-05/0.266, allocations: 0 / 0.9529 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 7.804e-05/0.266, allocations: 11.92 kB / 0.9529 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.2661, allocations: 4 kB / 0.9529 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2661, allocations: 11.94 kB / 0.9529 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.2661, allocations: 0 / 0.9529 GB, free: 6.25 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.0002535/0.2663, allocations: 319.5 kB / 0.9532 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.2664, allocations: 8.031 kB / 0.9532 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.045e-05/0.2664, allocations: 0.9375 kB / 0.9532 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.088e-05/0.2665, allocations: 164.4 kB / 0.9534 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-06/0.2665, allocations: 4.375 kB / 0.9534 GB, free: 5.68 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.2665, allocations: 4.375 kB / 0.9534 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.013e-05/0.2666, allocations: 38.02 kB / 0.9534 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.2666, allocations: 0 / 0.9534 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.2667, allocations: 0 / 0.9534 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.2667, allocations: 0 / 0.9534 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.553e-05/0.2667, allocations: 11.92 kB / 0.9534 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001338/0.2668, allocations: 149.7 kB / 0.9536 GB, free: 5.426 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/0.267, allocations: 34.61 kB / 0.9536 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.121e-05/0.267, allocations: 8.859 kB / 0.9536 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001338/0.2672, allocations: 89.19 kB / 0.9537 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.2672, allocations: 38.5 kB / 0.9537 GB, free: 5.219 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.243e-06/0.2672, allocations: 0 / 0.9537 GB, free: 5.219 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.004324/0.2716, allocations: 0.5641 MB / 0.9543 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.2716, allocations: 55.41 kB / 0.9543 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.04e-05/0.2716, allocations: 93.86 kB / 0.9544 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.2717, allocations: 29.7 kB / 0.9544 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.766e-05/0.2717, allocations: 88.06 kB / 0.9545 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.18e-05/0.2718, allocations: 15.7 kB / 0.9545 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-05/0.2718, allocations: 17.72 kB / 0.9546 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.2719, allocations: 314.8 kB / 0.9549 GB, free: 4 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000616/0.2726, allocations: 83.95 kB / 0.9549 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006199/0.2732, allocations: 110.5 kB / 0.9551 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.2744, allocations: 186.4 kB / 0.9552 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.2744, allocations: 3.938 kB / 0.9552 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001263/0.2757, allocations: 217.5 kB / 0.9554 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.2757, allocations: 4 kB / 0.9554 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2757, allocations: 4 kB / 0.9554 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.2757, allocations: 4.031 kB / 0.9555 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004004/0.2761, allocations: 60.11 kB / 0.9555 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.2761, allocations: 4 kB / 0.9555 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003493/0.2765, allocations: 35.98 kB / 0.9555 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.2765, allocations: 4 kB / 0.9556 GB, free: 3.273 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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 9.387e-05/0.2766, allocations: 113.8 kB / 0.9557 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.769e-05/0.2766, allocations: 3.938 kB / 0.9557 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/0.278, allocations: 241 kB / 0.9559 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.278, allocations: 4 kB / 0.9559 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2781, allocations: 0 / 0.9559 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.2781, allocations: 0 / 0.9559 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001477/0.2795, allocations: 454.5 kB / 0.9563 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2796, allocations: 0 / 0.9563 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003818/0.2799, allocations: 47.91 kB / 0.9564 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.28, allocations: 4 kB / 0.9564 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.28, allocations: 4 kB / 0.9564 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.28, allocations: 0 / 0.9564 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.28, allocations: 0 / 0.9564 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.2813, allocations: 311.3 kB / 0.9567 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.643e-05/0.2813, allocations: 77.11 kB / 0.9568 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.2813, allocations: 4 kB / 0.9568 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003857/0.2817, allocations: 39.97 kB / 0.9568 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.131e-05/0.2817, allocations: 4 kB / 0.9568 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.2818, allocations: 0 / 0.9568 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 2.268e-05/0.2818, allocations: 75.28 kB / 0.9569 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2818, allocations: 4 kB / 0.9569 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002439/0.282, allocations: 12 kB / 0.9569 GB, free: 1.797 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 (5): * Single equations (assignments): 5 * 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.0001566/0.2822, allocations: 107.2 kB / 0.957 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001258/0.2835, allocations: 184.1 kB / 0.9572 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2835, allocations: 0 / 0.9572 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006076/0.2841, allocations: 92.02 kB / 0.9573 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002089/0.2843, allocations: 11.98 kB / 0.9573 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.2855, allocations: 209 kB / 0.9575 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.2857, allocations: 0.6766 MB / 0.9581 GB, free: 480 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001732/0.2859, allocations: 31.98 kB / 0.9582 GB, free: 448 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.515e-05/0.286, allocations: 11.44 kB / 0.9582 GB, free: 436 kB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.286, allocations: 3.938 kB / 0.9582 GB, free: 432 kB / 0.7325 GB Notification: Performance of Templates: time 0.002819/0.2888, allocations: 0.8176 MB / 0.959 GB, free: 15.61 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches