Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_10_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.001576/0.001576, allocations: 113.2 kB / 16.41 MB, free: 6.492 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.001686/0.001686, allocations: 183 kB / 17.34 MB, free: 5.762 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.384/1.384, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.447/2.447, allocations: 437 MB / 0.7112 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 68.11 kB / 1.019 GB, free: 9.426 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8038/0.8051, allocations: 151.6 MB / 1.167 GB, free: 3.898 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.00295/0.8081, allocations: 1.429 MB / 1.169 GB, free: 2.457 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009045/0.8091, allocations: 478.1 kB / 1.169 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.751e-05/0.8091, allocations: 0 / 1.169 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.982e-05/0.8092, allocations: 3.938 kB / 1.169 GB, free: 1.98 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.357e-05/0.8093, allocations: 3.984 kB / 1.169 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002464/0.8095, allocations: 19.92 kB / 1.169 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.608e-05/0.8096, allocations: 23.92 kB / 1.169 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.8097, allocations: 8 kB / 1.169 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.046e-05/0.8098, allocations: 4 kB / 1.169 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.962e-05/0.8099, allocations: 23.91 kB / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.8099, allocations: 0 / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.081e-05/0.81, allocations: 27.86 kB / 1.169 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.365e-05/0.81, allocations: 7.984 kB / 1.169 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.043e-05/0.81, allocations: 15.94 kB / 1.169 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.8101, allocations: 31.89 kB / 1.169 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.8102, allocations: 0 / 1.169 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8102, allocations: 0 / 1.169 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.8102, allocations: 0 / 1.169 GB, free: 1.816 MB / 0.8887 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.000472/0.8107, allocations: 351.3 kB / 1.17 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.8107, allocations: 8.625 kB / 1.17 GB, free: 1.422 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.157e-05/0.8107, allocations: 12.92 kB / 1.17 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.8109, allocations: 164.3 kB / 1.17 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.8109, allocations: 384 / 1.17 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.328e-05/0.8109, allocations: 4.375 kB / 1.17 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001879/0.8111, allocations: 53.92 kB / 1.17 GB, free: 1.148 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.8111, allocations: 0 / 1.17 GB, free: 1.148 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.8111, allocations: 7.938 kB / 1.17 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.8112, allocations: 4 kB / 1.17 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/0.8113, allocations: 27.97 kB / 1.17 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003699/0.8117, allocations: 256.9 kB / 1.17 GB, free: 0.8086 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.8119, allocations: 34.56 kB / 1.17 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.91e-05/0.812, allocations: 32.83 kB / 1.17 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001316/0.8121, allocations: 81.11 kB / 1.17 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.8121, allocations: 30.56 kB / 1.17 GB, free: 0.5938 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 1.333e-06/0.8121, allocations: 0 / 1.17 GB, free: 0.5938 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0003602/0.8125, allocations: 81.64 kB / 1.17 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.8125, allocations: 55.53 kB / 1.17 GB, free: 452 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.56e-05/0.8126, allocations: 105.8 kB / 1.171 GB, free: 336 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.8127, allocations: 25.7 kB / 1.171 GB, free: 304 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.389e-05/0.8127, allocations: 80.14 kB / 1.171 GB, free: 220 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.8127, allocations: 13.73 kB / 1.171 GB, free: 208 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.212e-05/0.8128, allocations: 9.719 kB / 1.171 GB, free: 192 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.8129, allocations: 318.8 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.28e-05/0.813, allocations: 23.92 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.949e-05/0.8131, allocations: 11.98 kB / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/0.8133, allocations: 48.75 kB / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.8133, allocations: 0 / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001868/0.8135, allocations: 61.73 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.8135, allocations: 8.031 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.8135, allocations: 0 / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.8135, allocations: 0 / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.403e-05/0.8136, allocations: 11.98 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.8136, allocations: 0 / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.764e-05/0.8137, allocations: 15.86 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-06/0.8137, allocations: 0 / 1.171 GB, free: 15.68 MB / 0.9044 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 9.361e-05/0.8138, allocations: 117.8 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.611e-05/0.8138, allocations: 7.906 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002261/0.8141, allocations: 72.77 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.8141, allocations: 0 / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.8141, allocations: 0 / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.8141, allocations: 0 / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001617/0.8143, allocations: 165.5 kB / 1.172 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.8143, allocations: 256 / 1.172 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.912e-05/0.8143, allocations: 15.98 kB / 1.172 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.8143, allocations: 4.031 kB / 1.172 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.8144, allocations: 4 kB / 1.172 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.8144, allocations: 0 / 1.172 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.8144, allocations: 0 / 1.172 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002296/0.8146, allocations: 163.4 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.93e-05/0.8147, allocations: 81.11 kB / 1.172 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.19e-05/0.8147, allocations: 4.031 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.322e-05/0.8147, allocations: 11.98 kB / 1.172 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/0.8148, allocations: 0 / 1.172 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/0.8148, allocations: 0 / 1.172 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.602e-05/0.8148, allocations: 79.28 kB / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.8149, allocations: 0 / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002217/0.8151, allocations: 11.98 kB / 1.172 GB, free: 14.85 MB / 0.9044 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.0001575/0.8152, allocations: 103.2 kB / 1.172 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002142/0.8155, allocations: 43.91 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.8155, allocations: 0 / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.406e-05/0.8156, allocations: 19.97 kB / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.8159, allocations: 20.92 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000316/0.8162, allocations: 127.2 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.8165, allocations: 0.6846 MB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.335e-05/0.8165, allocations: 7.438 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of SimCode: time 3.21e-07/0.8165, allocations: 0 / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of Templates: time 0.00213/0.8187, allocations: 0.6597 MB / 1.173 GB, free: 13.13 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches