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.0008493/0.0008492, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007368/0.007368, allocations: 169.6 kB / 16.26 MB, free: 6.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.497/1.497, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.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.499/2.499, allocations: 390.9 MB / 0.6663 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003479/0.000348, allocations: 12 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8523/0.8526, allocations: 142.4 MB / 0.955 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.001792/0.8545, allocations: 1.158 MB / 0.9562 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009618/0.8555, allocations: 454.5 kB / 0.9566 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.17e-05/0.8555, allocations: 0 / 0.9566 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.92e-05/0.8556, allocations: 7.938 kB / 0.9566 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.707e-05/0.8557, allocations: 1.469 kB / 0.9566 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002268/0.8559, allocations: 22.86 kB / 0.9566 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.349e-05/0.856, allocations: 25.14 kB / 0.9567 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.8561, allocations: 3.375 kB / 0.9567 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.259e-05/0.8562, allocations: 11.86 kB / 0.9567 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.473e-05/0.8562, allocations: 10.7 kB / 0.9567 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.8563, allocations: 1.469 kB / 0.9567 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.649e-05/0.8563, allocations: 16.52 kB / 0.9567 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.533e-05/0.8564, allocations: 15.92 kB / 0.9567 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.312e-05/0.8564, allocations: 31.98 kB / 0.9567 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001377/0.8566, allocations: 33.28 kB / 0.9568 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.8566, allocations: 0 / 0.9568 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of FrontEnd: time 4.429e-06/0.8566, allocations: 1.219 kB / 0.9568 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.8566, allocations: 3.938 kB / 0.9568 GB, free: 6.402 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.0004974/0.8571, allocations: 342.8 kB / 0.9571 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.8572, allocations: 12.78 kB / 0.9571 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.678e-05/0.8572, allocations: 3.219 kB / 0.9571 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.8573, allocations: 173.5 kB / 0.9573 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.8573, allocations: 384 / 0.9573 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.49e-05/0.8573, allocations: 2.594 kB / 0.9573 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002036/0.8575, allocations: 58.14 kB / 0.9573 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.8576, allocations: 0 / 0.9573 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.8576, allocations: 4 kB / 0.9573 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.8576, allocations: 1.219 kB / 0.9573 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00019/0.8578, allocations: 52.47 kB / 0.9574 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003516/0.8582, allocations: 253.2 kB / 0.9576 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001288/0.8583, allocations: 47.92 kB / 0.9577 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.409e-05/0.8584, allocations: 28.25 kB / 0.9577 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001306/0.8585, allocations: 80.55 kB / 0.9578 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.8586, allocations: 40.05 kB / 0.9578 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.8586, allocations: 0 / 0.9578 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0004243/0.859, allocations: 100 kB / 0.9579 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.859, allocations: 55.39 kB / 0.958 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.166e-05/0.8591, allocations: 99.52 kB / 0.9581 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.827e-06/0.8591, allocations: 27.27 kB / 0.9581 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.324e-05/0.8592, allocations: 81.52 kB / 0.9582 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.8592, allocations: 7.906 kB / 0.9582 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.357e-05/0.8592, allocations: 15.11 kB / 0.9582 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.712e-05/0.8593, allocations: 316 kB / 0.9585 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.05e-05/0.8594, allocations: 22.23 kB / 0.9585 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.769e-05/0.8595, allocations: 21.98 kB / 0.9585 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.8596, allocations: 57.53 kB / 0.9586 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.8597, allocations: 0 / 0.9586 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001857/0.8598, allocations: 82.52 kB / 0.9587 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.8599, allocations: 9.391 kB / 0.9587 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.8599, allocations: 0 / 0.9587 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.8599, allocations: 1.75 kB / 0.9587 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.087e-05/0.86, allocations: 7.219 kB / 0.9587 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.86, allocations: 1.781 kB / 0.9587 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.86e-05/0.8601, allocations: 9.359 kB / 0.9587 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-06/0.8601, allocations: 5.688 kB / 0.9587 GB, free: 4.473 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 5.646e-05/0.8601, allocations: 119.6 kB / 0.9588 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.183e-05/0.8602, allocations: 0 / 0.9588 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002332/0.8604, allocations: 93.69 kB / 0.9589 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.8604, allocations: 4.031 kB / 0.9589 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.8604, allocations: 0 / 0.9589 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.8604, allocations: 1.469 kB / 0.9589 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001383/0.8606, allocations: 157.5 kB / 0.9591 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.8606, allocations: 1.375 kB / 0.9591 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.925e-05/0.8606, allocations: 12.23 kB / 0.9591 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.8607, allocations: 3.938 kB / 0.9591 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/0.8607, allocations: 1.375 kB / 0.9591 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.8607, allocations: 256 / 0.9591 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.8607, allocations: 0 / 0.9591 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002155/0.8609, allocations: 177.8 kB / 0.9593 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.037e-05/0.8609, allocations: 86.39 kB / 0.9593 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.8609, allocations: 4.031 kB / 0.9593 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.523e-05/0.861, allocations: 10.86 kB / 0.9593 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.8611, allocations: 5.312 kB / 0.9594 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.8611, allocations: 0 / 0.9594 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.443e-05/0.8611, allocations: 87.39 kB / 0.9594 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8611, allocations: 0 / 0.9594 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002176/0.8613, allocations: 9.5 kB / 0.9594 GB, free: 3.715 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.0001389/0.8615, allocations: 102.5 kB / 0.9595 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002168/0.8617, allocations: 47.58 kB / 0.9596 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8617, allocations: 0 / 0.9596 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.87e-05/0.8618, allocations: 28.55 kB / 0.9596 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002944/0.8621, allocations: 10.47 kB / 0.9596 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002892/0.8624, allocations: 113.5 kB / 0.9597 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001734/0.8626, allocations: 0.6774 MB / 0.9604 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.857e-05/0.8626, allocations: 1.469 kB / 0.9604 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.313e-05/0.8626, allocations: 13.03 kB / 0.9604 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of SimCode: time 3.1e-07/0.8627, allocations: 0 / 0.9604 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of Templates: time 0.0032/0.8659, allocations: 493.6 kB / 0.9609 GB, free: 2.508 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches