Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001627/0.001627, allocations: 200.9 kB / 16.91 MB, free: 6.195 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.387/1.387, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.298/2.298, allocations: 390.2 MB / 0.665 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 65.31 kB / 0.8127 GB, free: 32.53 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3006, allocations: 140.4 MB / 0.9498 GB, free: 9.234 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003235/0.3039, allocations: 1.5 MB / 0.9512 GB, free: 7.723 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.000918/0.3048, allocations: 463.8 kB / 0.9517 GB, free: 7.262 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.968e-05/0.3049, allocations: 0 / 0.9517 GB, free: 7.262 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.636e-05/0.305, allocations: 4 kB / 0.9517 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.961e-05/0.3051, allocations: 3.938 kB / 0.9517 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002658/0.3053, allocations: 19.98 kB / 0.9517 GB, free: 7.234 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.487e-05/0.3054, allocations: 27.92 kB / 0.9517 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.3056, allocations: 4 kB / 0.9517 GB, free: 7.203 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.39e-05/0.3056, allocations: 8 kB / 0.9517 GB, free: 7.195 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.681e-05/0.3057, allocations: 23.78 kB / 0.9518 GB, free: 7.172 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.263e-05/0.3057, allocations: 4 kB / 0.9518 GB, free: 7.168 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.475e-05/0.3058, allocations: 23.98 kB / 0.9518 GB, free: 7.145 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.445e-05/0.3058, allocations: 3.984 kB / 0.9518 GB, free: 7.141 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.897e-05/0.3059, allocations: 7.938 kB / 0.9518 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001109/0.306, allocations: 19.97 kB / 0.9518 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.306, allocations: 0 / 0.9518 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.693e-06/0.306, allocations: 0 / 0.9518 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.745e-06/0.306, allocations: 0 / 0.9518 GB, free: 7.113 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.0005045/0.3065, allocations: 347.6 kB / 0.9522 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.3066, allocations: 12.03 kB / 0.9522 GB, free: 6.715 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.534e-05/0.3066, allocations: 8.844 kB / 0.9522 GB, free: 6.707 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.3068, allocations: 164.4 kB / 0.9523 GB, free: 6.508 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.3068, allocations: 384 / 0.9523 GB, free: 6.508 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.3068, allocations: 4.375 kB / 0.9523 GB, free: 6.504 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001927/0.307, allocations: 53.92 kB / 0.9524 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.307, allocations: 4 kB / 0.9524 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.307, allocations: 0 / 0.9524 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.3071, allocations: 0 / 0.9524 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.3072, allocations: 39.95 kB / 0.9524 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004173/0.3077, allocations: 252.9 kB / 0.9527 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000146/0.3078, allocations: 42.48 kB / 0.9527 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.651e-05/0.3079, allocations: 16.91 kB / 0.9527 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000153/0.3081, allocations: 93.09 kB / 0.9528 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.3081, allocations: 30.56 kB / 0.9528 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.273e-06/0.3081, allocations: 4 kB / 0.9528 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0003599/0.3085, allocations: 77.55 kB / 0.9529 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.3085, allocations: 59.41 kB / 0.953 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.29e-05/0.3086, allocations: 97.98 kB / 0.9531 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.3087, allocations: 25.7 kB / 0.9531 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.016e-05/0.3087, allocations: 92.12 kB / 0.9532 GB, free: 5.5 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.243e-05/0.3088, allocations: 3.906 kB / 0.9532 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.902e-05/0.3088, allocations: 17.66 kB / 0.9532 GB, free: 5.473 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.3089, allocations: 314.8 kB / 0.9535 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.167e-05/0.309, allocations: 11.98 kB / 0.9535 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.32e-05/0.3091, allocations: 23.97 kB / 0.9535 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001513/0.3093, allocations: 40.77 kB / 0.9536 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3093, allocations: 0 / 0.9536 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001916/0.3095, allocations: 65.66 kB / 0.9536 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.3095, allocations: 4 kB / 0.9536 GB, free: 5.004 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3095, allocations: 4.094 kB / 0.9536 GB, free: 5 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.3095, allocations: 3.984 kB / 0.9537 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.3096, allocations: 15.92 kB / 0.9537 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.3097, allocations: 7.875 kB / 0.9537 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.158e-05/0.3097, allocations: 11.94 kB / 0.9537 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.3097, allocations: 0 / 0.9537 GB, free: 4.961 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 8.536e-05/0.3098, allocations: 113.8 kB / 0.9538 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.3098, allocations: 3.984 kB / 0.9538 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002354/0.3101, allocations: 76.78 kB / 0.9539 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3101, allocations: 0 / 0.9539 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3101, allocations: 0 / 0.9539 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3101, allocations: 0 / 0.9539 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000159/0.3103, allocations: 157.6 kB / 0.954 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3103, allocations: 3.984 kB / 0.954 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.782e-05/0.3104, allocations: 8 kB / 0.954 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3104, allocations: 0 / 0.954 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.3104, allocations: 4.031 kB / 0.954 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.3104, allocations: 0 / 0.954 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3104, allocations: 3.938 kB / 0.954 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002367/0.3106, allocations: 167.4 kB / 0.9542 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.418e-05/0.3107, allocations: 85.09 kB / 0.9543 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.3107, allocations: 256 / 0.9543 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.284e-05/0.3108, allocations: 12.03 kB / 0.9543 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.3108, allocations: 3.984 kB / 0.9543 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.3109, allocations: 0 / 0.9543 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.388e-05/0.3109, allocations: 83.28 kB / 0.9544 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3109, allocations: 0 / 0.9544 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002275/0.3111, allocations: 12 kB / 0.9544 GB, free: 4.141 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.0001668/0.3113, allocations: 95.25 kB / 0.9545 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002194/0.3115, allocations: 47.89 kB / 0.9545 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3116, allocations: 0 / 0.9545 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.089e-05/0.3116, allocations: 19.98 kB / 0.9545 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.312, allocations: 11.92 kB / 0.9546 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003146/0.3123, allocations: 135.5 kB / 0.9547 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002332/0.3125, allocations: 0.6805 MB / 0.9553 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.653e-05/0.3126, allocations: 11.44 kB / 0.9554 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of SimCode: time 4.71e-07/0.3126, allocations: 0 / 0.9554 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of Templates: time 0.002246/0.3148, allocations: 0.647 MB / 0.956 GB, free: 2.438 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches