Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.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.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks") translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, 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.01195/0.01195, allocations: 169.9 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.482/1.482, allocations: 223.3 MB / 240.3 MB, free: 5.363 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.431/2.431, allocations: 390.9 MB / 0.6663 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003849/0.0003849, allocations: 20.22 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8882/0.8886, allocations: 142.4 MB / 0.955 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002672/0.8913, allocations: 1.482 MB / 0.9565 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.8927, allocations: 0.6414 MB / 0.9571 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.8928, allocations: 0 / 0.9571 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.664e-05/0.8929, allocations: 9.234 kB / 0.9571 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001189/0.893, allocations: 13.14 kB / 0.9571 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006856/0.8937, allocations: 159.1 kB / 0.9573 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002/0.8939, allocations: 123.4 kB / 0.9574 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001865/0.8941, allocations: 46 kB / 0.9574 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.8943, allocations: 51.3 kB / 0.9575 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.8944, allocations: 35.53 kB / 0.9575 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.451e-05/0.8945, allocations: 3.656 kB / 0.9575 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.8946, allocations: 41.22 kB / 0.9576 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.657e-05/0.8946, allocations: 25.81 kB / 0.9576 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.042e-05/0.8947, allocations: 73.19 kB / 0.9577 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.895, allocations: 138 kB / 0.9578 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.895, allocations: 0 / 0.9578 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.224e-06/0.895, allocations: 3.938 kB / 0.9578 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.414e-06/0.895, allocations: 0 / 0.9578 GB, free: 5.789 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006171/0.8956, allocations: 419.3 kB / 0.9582 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.8957, allocations: 8.781 kB / 0.9582 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009057/0.8966, allocations: 143.2 kB / 0.9583 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.8967, allocations: 184.2 kB / 0.9585 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.8968, allocations: 68.22 kB / 0.9586 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.969e-05/0.8969, allocations: 5.875 kB / 0.9586 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005442/0.8974, allocations: 198.8 kB / 0.9588 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.8975, allocations: 3.938 kB / 0.9588 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.8975, allocations: 1.375 kB / 0.9588 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.8975, allocations: 2.75 kB / 0.9588 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006584/0.8982, allocations: 194.8 kB / 0.959 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.8993, allocations: 0.4948 MB / 0.9595 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.9004, allocations: 282 kB / 0.9597 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003263/0.9008, allocations: 94.34 kB / 0.9598 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.9008, allocations: 5.375 kB / 0.9598 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.9009, allocations: 31.94 kB / 0.9598 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.603e-06/0.9009, allocations: 1.375 kB / 0.9599 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.001113/0.902, allocations: 318.4 kB / 0.9602 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.662e-05/0.902, allocations: 56.78 kB / 0.9602 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.9021, allocations: 135.4 kB / 0.9603 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.793e-05/0.9022, allocations: 27.08 kB / 0.9604 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.299e-05/0.9022, allocations: 113.6 kB / 0.9605 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.497e-05/0.9023, allocations: 18.55 kB / 0.9605 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.048e-05/0.9023, allocations: 11.09 kB / 0.9605 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.234e-05/0.9024, allocations: 321.4 kB / 0.9608 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003457/0.9027, allocations: 96.86 kB / 0.9609 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003485/0.9031, allocations: 110.1 kB / 0.961 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006349/0.9037, allocations: 203.4 kB / 0.9612 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.9038, allocations: 0 / 0.9612 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007227/0.9045, allocations: 237.8 kB / 0.9614 GB, free: 3 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.9045, allocations: 6 kB / 0.9614 GB, free: 3 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.9045, allocations: 1.062 kB / 0.9614 GB, free: 3 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.9045, allocations: 5.25 kB / 0.9614 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002849/0.9048, allocations: 49.95 kB / 0.9615 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.966e-06/0.9049, allocations: 5 kB / 0.9615 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.9051, allocations: 36.31 kB / 0.9615 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.9051, allocations: 6.641 kB / 0.9615 GB, free: 2.953 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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.395e-05/0.9052, allocations: 118.7 kB / 0.9616 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.065e-05/0.9052, allocations: 12.78 kB / 0.9617 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007723/0.906, allocations: 242.7 kB / 0.9619 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.906, allocations: 4 kB / 0.9619 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.906, allocations: 1.156 kB / 0.9619 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.9061, allocations: 0 / 0.9619 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002446/0.9063, allocations: 242.5 kB / 0.9621 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.9063, allocations: 0 / 0.9621 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.9066, allocations: 43.89 kB / 0.9622 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.9066, allocations: 0 / 0.9622 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.9066, allocations: 8.969 kB / 0.9622 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.9066, allocations: 0.9688 kB / 0.9622 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.9066, allocations: 0 / 0.9622 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007377/0.9073, allocations: 322.5 kB / 0.9625 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.293e-05/0.9074, allocations: 83.36 kB / 0.9626 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.9074, allocations: 8.641 kB / 0.9626 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003153/0.9077, allocations: 41.05 kB / 0.9626 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/0.9078, allocations: 6.156 kB / 0.9626 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.169e-05/0.9078, allocations: 11.73 kB / 0.9626 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.1e-05/0.9079, allocations: 102.7 kB / 0.9627 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.202e-06/0.9079, allocations: 0 / 0.9627 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002674/0.9082, allocations: 35.62 kB / 0.9628 GB, free: 1.957 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 (6): * Single equations (assignments): 6 * 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.0001364/0.9083, allocations: 99.12 kB / 0.9629 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007445/0.909, allocations: 201.4 kB / 0.963 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.9091, allocations: 0 / 0.963 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003426/0.9094, allocations: 101.8 kB / 0.9631 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000333/0.9097, allocations: 9.875 kB / 0.9632 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006622/0.9104, allocations: 304.5 kB / 0.9634 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001393/0.9106, allocations: 0.7046 MB / 0.9641 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.003e-05/0.9107, allocations: 14.16 kB / 0.9641 GB, free: 0.7852 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.536e-05/0.9107, allocations: 15.3 kB / 0.9642 GB, free: 0.7734 MB / 0.7169 GB Notification: Performance of SimCode: time 3.11e-07/0.9107, allocations: 0.875 kB / 0.9642 GB, free: 0.7734 MB / 0.7169 GB Notification: Performance of Templates: time 0.003994/0.9147, allocations: 1.363 MB / 0.9655 GB, free: 76 kB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches