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.001801/0.001801, allocations: 103.7 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.002022/0.002022, allocations: 190.5 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.2/1.2, 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 1.998/1.998, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 66.25 kB / 0.814 GB, free: 32.68 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.241, allocations: 140.4 MB / 0.9511 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001716/0.2428, allocations: 0.5899 MB / 0.9517 GB, free: 7.441 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001152/0.2439, allocations: 1.106 MB / 0.9528 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.258e-05/0.244, allocations: 0 / 0.9528 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.124e-05/0.244, allocations: 0 / 0.9528 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002061/0.2442, allocations: 27.91 kB / 0.9528 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 3.446e-06/0.2442, allocations: 0 / 0.9528 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 3.425e-05/0.2443, allocations: 7.938 kB / 0.9528 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.658e-05/0.2443, allocations: 4 kB / 0.9528 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.406e-05/0.2443, allocations: 3.938 kB / 0.9528 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 1.784e-05/0.2443, allocations: 0 / 0.9528 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.861e-06/0.2444, allocations: 0 / 0.9528 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.543e-05/0.2445, allocations: 27.97 kB / 0.9528 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.582e-06/0.2445, allocations: 3.984 kB / 0.9529 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 1.43e-05/0.2445, allocations: 3.938 kB / 0.9529 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 6.47e-05/0.2446, allocations: 15.86 kB / 0.9529 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2446, allocations: 0 / 0.9529 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2446, allocations: 0 / 0.9529 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.607e-06/0.2446, allocations: 4 kB / 0.9529 GB, free: 6.223 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.0002445/0.2448, allocations: 323.5 kB / 0.9532 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.2449, allocations: 8.031 kB / 0.9532 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.468e-05/0.2449, allocations: 0.9375 kB / 0.9532 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.599e-05/0.245, allocations: 164.4 kB / 0.9534 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.512e-06/0.245, allocations: 384 / 0.9534 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.121e-05/0.245, allocations: 4.375 kB / 0.9534 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.785e-05/0.2451, allocations: 38.02 kB / 0.9534 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.2451, allocations: 3.984 kB / 0.9534 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.084e-06/0.2451, allocations: 4 kB / 0.9534 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.2451, allocations: 0 / 0.9534 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.878e-05/0.2452, allocations: 7.938 kB / 0.9534 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001323/0.2453, allocations: 153.7 kB / 0.9536 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001581/0.2455, allocations: 30.58 kB / 0.9536 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.201e-05/0.2455, allocations: 12.94 kB / 0.9536 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001385/0.2457, allocations: 77.11 kB / 0.9537 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.973e-05/0.2457, allocations: 46.44 kB / 0.9537 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2457, allocations: 0 / 0.9537 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.003689/0.2494, allocations: 0.5719 MB / 0.9543 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.2494, allocations: 51.41 kB / 0.9543 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.091e-05/0.2495, allocations: 89.86 kB / 0.9544 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.2495, allocations: 29.7 kB / 0.9544 GB, free: 4.414 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.011e-05/0.2495, allocations: 92.08 kB / 0.9545 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.508e-05/0.2496, allocations: 15.7 kB / 0.9545 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.724e-05/0.2496, allocations: 17.72 kB / 0.9546 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.717e-05/0.2497, allocations: 314.8 kB / 0.9549 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005203/0.2502, allocations: 87.95 kB / 0.9549 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005402/0.2508, allocations: 94.53 kB / 0.955 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001009/0.2518, allocations: 198.4 kB / 0.9552 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.2518, allocations: 0 / 0.9552 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001103/0.2529, allocations: 221.5 kB / 0.9554 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.253, allocations: 6.188 kB / 0.9554 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.253, allocations: 4 kB / 0.9554 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.253, allocations: 192 / 0.9554 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/0.2533, allocations: 52 kB / 0.9555 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.2534, allocations: 4 kB / 0.9555 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003103/0.2537, allocations: 39.98 kB / 0.9555 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.2537, allocations: 4 kB / 0.9555 GB, free: 3.246 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 7.476e-05/0.2538, allocations: 113.8 kB / 0.9556 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.803e-05/0.2538, allocations: 7.938 kB / 0.9556 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001198/0.255, allocations: 241 kB / 0.9559 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.255, allocations: 0 / 0.9559 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.255, allocations: 0 / 0.9559 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.255, allocations: 4 kB / 0.9559 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.2564, allocations: 450.5 kB / 0.9563 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2564, allocations: 0 / 0.9563 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003488/0.2567, allocations: 51.91 kB / 0.9564 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.2567, allocations: 0 / 0.9564 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.2568, allocations: 4 kB / 0.9564 GB, free: 2.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.2568, allocations: 4 kB / 0.9564 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2568, allocations: 0 / 0.9564 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.2579, allocations: 303.3 kB / 0.9567 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 2.985e-05/0.258, allocations: 85.05 kB / 0.9567 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.258, allocations: 4 kB / 0.9567 GB, free: 1.898 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003373/0.2583, allocations: 39.97 kB / 0.9568 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.442e-05/0.2584, allocations: 4 kB / 0.9568 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.2584, allocations: 4 kB / 0.9568 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 2.946e-05/0.2584, allocations: 75.28 kB / 0.9569 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.2584, allocations: 0 / 0.9569 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002269/0.2586, allocations: 15.98 kB / 0.9569 GB, free: 1.762 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.000149/0.2588, allocations: 109.9 kB / 0.957 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001145/0.2599, allocations: 180.2 kB / 0.9572 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.26, allocations: 4.062 kB / 0.9572 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005301/0.2605, allocations: 95.88 kB / 0.9572 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001947/0.2607, allocations: 4 kB / 0.9573 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.2617, allocations: 213 kB / 0.9575 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.2619, allocations: 0.6766 MB / 0.9581 GB, free: 444 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001536/0.2621, allocations: 31.98 kB / 0.9581 GB, free: 412 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.869e-05/0.2622, allocations: 11.44 kB / 0.9582 GB, free: 400 kB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.2622, allocations: 0 / 0.9582 GB, free: 400 kB / 0.7325 GB Notification: Performance of Templates: time 0.002484/0.2646, allocations: 0.8114 MB / 0.959 GB, free: 15.57 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 cvode -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