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.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.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.005174/0.005174, allocations: 101 kB / 15.87 MB, free: 5.867 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.001134/0.001134, allocations: 191.6 kB / 16.79 MB, free: 5.809 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.447/1.447, allocations: 222.9 MB / 240.5 MB, free: 4.586 MB / 190.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.46/2.46, allocations: 390.2 MB / 0.6649 GB, free: 0.6523 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 75.89 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5842/0.5856, allocations: 140.4 MB / 0.9496 GB, free: 9.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002485/0.5882, allocations: 1.5 MB / 0.951 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006828/0.5889, allocations: 458.8 kB / 0.9515 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.55e-05/0.5889, allocations: 0.875 kB / 0.9515 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.873e-05/0.589, allocations: 0 / 0.9515 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.617e-05/0.589, allocations: 5.031 kB / 0.9515 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001705/0.5892, allocations: 26.66 kB / 0.9515 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.623e-05/0.5893, allocations: 25.27 kB / 0.9515 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.619e-05/0.5894, allocations: 4.594 kB / 0.9515 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.815e-05/0.5894, allocations: 10.73 kB / 0.9515 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.169e-05/0.5895, allocations: 7.719 kB / 0.9516 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.113e-05/0.5895, allocations: 1.75 kB / 0.9516 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.936e-05/0.5896, allocations: 24.62 kB / 0.9516 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.309e-05/0.5896, allocations: 11.92 kB / 0.9516 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.177e-05/0.5896, allocations: 10.19 kB / 0.9516 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.396e-05/0.5897, allocations: 23.34 kB / 0.9516 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.5897, allocations: 0 / 0.9516 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.82e-07/0.5897, allocations: 0 / 0.9516 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.427e-06/0.5897, allocations: 1.188 kB / 0.9516 GB, free: 7.445 MB / 0.7169 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.0003688/0.5901, allocations: 339.3 kB / 0.9519 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.5901, allocations: 9.438 kB / 0.952 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.104e-05/0.5902, allocations: 6.031 kB / 0.952 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.161e-05/0.5903, allocations: 170.8 kB / 0.9521 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.607e-06/0.5903, allocations: 4.375 kB / 0.9521 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.5903, allocations: 5.5 kB / 0.9521 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001768/0.5905, allocations: 58.59 kB / 0.9522 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.5905, allocations: 0 / 0.9522 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.5905, allocations: 0 / 0.9522 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.5905, allocations: 1.219 kB / 0.9522 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001578/0.5907, allocations: 34.75 kB / 0.9522 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002536/0.5909, allocations: 253.3 kB / 0.9525 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001167/0.5911, allocations: 35.41 kB / 0.9525 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.164e-05/0.5912, allocations: 23.34 kB / 0.9525 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001082/0.5913, allocations: 83.84 kB / 0.9526 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.5913, allocations: 39.88 kB / 0.9526 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.5913, allocations: 0 / 0.9526 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003326/0.5916, allocations: 80.67 kB / 0.9527 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.069e-05/0.5917, allocations: 52.81 kB / 0.9528 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.842e-05/0.5917, allocations: 103.9 kB / 0.9529 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.605e-06/0.5917, allocations: 25.7 kB / 0.9529 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.798e-05/0.5918, allocations: 89.7 kB / 0.953 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.573e-05/0.5918, allocations: 9.641 kB / 0.953 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.891e-05/0.5918, allocations: 15.12 kB / 0.953 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.238e-05/0.5919, allocations: 311.9 kB / 0.9533 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.329e-05/0.592, allocations: 20.97 kB / 0.9533 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.948e-05/0.592, allocations: 18.17 kB / 0.9533 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.5922, allocations: 48.02 kB / 0.9534 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.5922, allocations: 256 / 0.9534 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001801/0.5924, allocations: 72.78 kB / 0.9534 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.5924, allocations: 4.375 kB / 0.9535 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.5924, allocations: 5.375 kB / 0.9535 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.5924, allocations: 0 / 0.9535 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.466e-05/0.5925, allocations: 9.859 kB / 0.9535 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.5925, allocations: 5.625 kB / 0.9535 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.519e-05/0.5926, allocations: 6.578 kB / 0.9535 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.5926, allocations: 5.609 kB / 0.9535 GB, free: 5.512 MB / 0.7169 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 4.862e-05/0.5927, allocations: 115.3 kB / 0.9536 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.49e-05/0.5927, allocations: 1.25 kB / 0.9536 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000215/0.5929, allocations: 74.59 kB / 0.9537 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.5929, allocations: 5.406 kB / 0.9537 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.5929, allocations: 0 / 0.9537 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.5929, allocations: 0 / 0.9537 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.593, allocations: 163.1 kB / 0.9538 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.5931, allocations: 0 / 0.9538 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.593e-05/0.5931, allocations: 6.875 kB / 0.9538 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.5931, allocations: 3.984 kB / 0.9538 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.5931, allocations: 0 / 0.9538 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.5931, allocations: 1.375 kB / 0.9538 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.5931, allocations: 0 / 0.9538 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.5933, allocations: 170.8 kB / 0.954 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.964e-05/0.5934, allocations: 82.39 kB / 0.9541 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.5934, allocations: 1.375 kB / 0.9541 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.379e-05/0.5935, allocations: 2.75 kB / 0.9541 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.511e-05/0.5935, allocations: 5.359 kB / 0.9541 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.5935, allocations: 5.406 kB / 0.9541 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.255e-05/0.5935, allocations: 83.41 kB / 0.9542 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5936, allocations: 0 / 0.9542 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002246/0.5938, allocations: 9.5 kB / 0.9542 GB, free: 4.773 MB / 0.7169 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.0001359/0.5939, allocations: 102.5 kB / 0.9543 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002054/0.5941, allocations: 33.84 kB / 0.9543 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5941, allocations: 8 kB / 0.9543 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.239e-05/0.5942, allocations: 26.97 kB / 0.9543 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.5945, allocations: 11.56 kB / 0.9544 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002464/0.5948, allocations: 133.4 kB / 0.9545 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001022/0.5949, allocations: 0.6782 MB / 0.9551 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.073e-05/0.5949, allocations: 12.53 kB / 0.9552 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.5949, allocations: 4.062 kB / 0.9552 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of Templates: time 0.001979/0.5969, allocations: 0.6409 MB / 0.9558 GB, free: 3.465 MB / 0.7169 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