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.001192/0.001192, allocations: 91.61 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 178.1 kB / 16.92 MB, free: 6.652 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.401/1.401, allocations: 223.3 MB / 241 MB, free: 5.25 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.342/2.342, allocations: 390.9 MB / 0.667 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005986/0.0005987, allocations: 12 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.644/0.6447, allocations: 142.4 MB / 0.9557 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.001303/0.646, allocations: 1.162 MB / 0.9568 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000599/0.6466, allocations: 449.5 kB / 0.9573 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.05e-05/0.6467, allocations: 4.969 kB / 0.9573 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.323e-05/0.6467, allocations: 3.938 kB / 0.9573 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.289e-05/0.6467, allocations: 0.8125 kB / 0.9573 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001464/0.6469, allocations: 30.22 kB / 0.9573 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.178e-05/0.647, allocations: 25.92 kB / 0.9573 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.61e-05/0.647, allocations: 3.344 kB / 0.9573 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.159e-05/0.6471, allocations: 7.438 kB / 0.9573 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.907e-05/0.6471, allocations: 10.83 kB / 0.9574 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.6472, allocations: 0.9062 kB / 0.9574 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.249e-05/0.6472, allocations: 16.8 kB / 0.9574 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.839e-06/0.6472, allocations: 5.188 kB / 0.9574 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.655e-05/0.6473, allocations: 40.11 kB / 0.9574 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.576e-05/0.6473, allocations: 18.31 kB / 0.9574 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.6473, allocations: 4 kB / 0.9574 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.6474, allocations: 1.062 kB / 0.9574 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.6474, allocations: 0 / 0.9574 GB, free: 6.254 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.0003159/0.6477, allocations: 338.5 kB / 0.9578 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.6477, allocations: 13.34 kB / 0.9578 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.67e-05/0.6478, allocations: 6.312 kB / 0.9578 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.7e-05/0.6478, allocations: 174.6 kB / 0.9579 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.648e-06/0.6479, allocations: 4.375 kB / 0.958 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.038e-05/0.6479, allocations: 1.688 kB / 0.958 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001611/0.648, allocations: 58.55 kB / 0.958 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.648, allocations: 0 / 0.958 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.6481, allocations: 0 / 0.958 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.6481, allocations: 1.062 kB / 0.958 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.6482, allocations: 48.23 kB / 0.9581 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002411/0.6485, allocations: 249.9 kB / 0.9583 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000121/0.6486, allocations: 48.05 kB / 0.9583 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.92e-05/0.6487, allocations: 28.41 kB / 0.9584 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.751e-05/0.6488, allocations: 84.44 kB / 0.9584 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.398e-05/0.6489, allocations: 31.84 kB / 0.9585 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.6489, allocations: 0 / 0.9585 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003518/0.6492, allocations: 98.97 kB / 0.9586 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.874e-05/0.6493, allocations: 56.58 kB / 0.9586 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.171e-05/0.6493, allocations: 104.5 kB / 0.9587 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.052e-06/0.6493, allocations: 29.64 kB / 0.9588 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.248e-05/0.6494, allocations: 81.27 kB / 0.9588 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.487e-05/0.6494, allocations: 16.95 kB / 0.9588 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.869e-05/0.6494, allocations: 10.75 kB / 0.9589 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.134e-05/0.6494, allocations: 312.1 kB / 0.9592 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.927e-05/0.6495, allocations: 25.67 kB / 0.9592 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.823e-05/0.6496, allocations: 18.2 kB / 0.9592 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.6498, allocations: 58 kB / 0.9593 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.6498, allocations: 0 / 0.9593 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001978/0.65, allocations: 82.14 kB / 0.9593 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.65, allocations: 9.266 kB / 0.9593 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.65, allocations: 1.094 kB / 0.9593 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.65, allocations: 4.031 kB / 0.9593 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.403e-05/0.6501, allocations: 8.125 kB / 0.9594 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.6501, allocations: 1.062 kB / 0.9594 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.919e-05/0.6502, allocations: 10.42 kB / 0.9594 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-06/0.6502, allocations: 256 / 0.9594 GB, free: 4.328 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.404e-05/0.6503, allocations: 111.9 kB / 0.9595 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.318e-05/0.6503, allocations: 5 kB / 0.9595 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002266/0.6505, allocations: 93.77 kB / 0.9596 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.6505, allocations: 0 / 0.9596 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.6505, allocations: 4 kB / 0.9596 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.6505, allocations: 1.406 kB / 0.9596 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001056/0.6507, allocations: 165.8 kB / 0.9597 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.6507, allocations: 0 / 0.9597 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.017e-05/0.6507, allocations: 12.92 kB / 0.9597 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.6507, allocations: 5.391 kB / 0.9597 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.6507, allocations: 0 / 0.9597 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.6507, allocations: 0 / 0.9597 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.6508, allocations: 1.188 kB / 0.9597 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002129/0.651, allocations: 177.1 kB / 0.9599 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.58e-05/0.651, allocations: 82.17 kB / 0.96 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.651, allocations: 0 / 0.96 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.803e-05/0.6511, allocations: 10.36 kB / 0.96 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.833e-05/0.6511, allocations: 5.094 kB / 0.96 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.6511, allocations: 5.125 kB / 0.96 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.117e-05/0.6512, allocations: 87.14 kB / 0.9601 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6512, allocations: 0 / 0.9601 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002248/0.6514, allocations: 10.03 kB / 0.9601 GB, free: 3.57 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.000112/0.6515, allocations: 97.41 kB / 0.9602 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000214/0.6517, allocations: 51.3 kB / 0.9602 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.6517, allocations: 2 kB / 0.9602 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.808e-05/0.6518, allocations: 27.48 kB / 0.9603 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.6521, allocations: 12.72 kB / 0.9603 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002379/0.6524, allocations: 150.3 kB / 0.9604 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.425e-05/0.6525, allocations: 0.6774 MB / 0.9611 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.965e-05/0.6525, allocations: 8.969 kB / 0.9611 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.6525, allocations: 0 / 0.9611 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of Templates: time 0.001956/0.6545, allocations: 0.6337 MB / 0.9617 GB, free: 2.266 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