Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009617/0.0009617, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009357/0.0009357, allocations: 173 kB / 23.03 MB, free: 1.539 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8968/0.8968, allocations: 177.1 MB / 203.4 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.069/2.069, allocations: 429.5 MB / 0.6732 GB, free: 4.051 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 0.8782 GB, free: 6.254 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.488e-05/1.629e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.25 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0009334/0.0009497, allocations: 0.6112 MB / 0.8788 GB, free: 5.66 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0001971/0.001147, allocations: 43.81 kB / 0.8789 GB, free: 5.617 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.349e-05/0.00116, allocations: 4.656 kB / 0.8789 GB, free: 5.613 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 1.794e-05/0.001178, allocations: 0 / 0.8789 GB, free: 5.613 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.001184, allocations: 1.906 kB / 0.8789 GB, free: 5.613 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002072/0.001391, allocations: 15.97 kB / 0.8789 GB, free: 5.598 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 4.002e-05/0.001431, allocations: 5.094 kB / 0.8789 GB, free: 5.594 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.141e-05/0.001463, allocations: 4 kB / 0.8789 GB, free: 5.59 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 2.51e-05/0.001488, allocations: 4.75 kB / 0.8789 GB, free: 5.586 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 1.637e-05/0.001504, allocations: 1 kB / 0.8789 GB, free: 5.586 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.121e-05/0.001515, allocations: 0 / 0.8789 GB, free: 5.586 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.01e-05/0.001585, allocations: 12.59 kB / 0.8789 GB, free: 5.574 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 8.737e-06/0.001594, allocations: 9.047 kB / 0.8789 GB, free: 5.566 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 1.178e-05/0.001606, allocations: 0.6562 kB / 0.8789 GB, free: 5.566 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 7.308e-05/0.001679, allocations: 11.98 kB / 0.8789 GB, free: 5.555 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.001681, allocations: 2.328 kB / 0.8789 GB, free: 5.555 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.51e-07/0.001682, allocations: 0 / 0.8789 GB, free: 5.555 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.547e-06/0.001685, allocations: 0 / 0.8789 GB, free: 5.555 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002124/0.001898, allocations: 341.5 kB / 0.8793 GB, free: 5.184 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.001928, allocations: 8.031 kB / 0.8793 GB, free: 5.176 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.057e-05/0.001959, allocations: 0.9375 kB / 0.8793 GB, free: 5.176 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.949e-05/0.002008, allocations: 109.3 kB / 0.8794 GB, free: 5.043 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.002018, allocations: 4.375 kB / 0.8794 GB, free: 5.039 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.144e-06/0.002025, allocations: 1.938 kB / 0.8794 GB, free: 5.039 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.407e-05/0.002099, allocations: 34.91 kB / 0.8794 GB, free: 5 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.002106, allocations: 4.125 kB / 0.8794 GB, free: 4.996 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.002113, allocations: 384 / 0.8794 GB, free: 4.996 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.00212, allocations: 1.969 kB / 0.8794 GB, free: 4.996 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.336e-05/0.002143, allocations: 7.938 kB / 0.8794 GB, free: 4.988 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.577e-05/0.002239, allocations: 109 kB / 0.8795 GB, free: 4.848 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.963e-05/0.002288, allocations: 36.56 kB / 0.8796 GB, free: 4.801 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.365e-05/0.002302, allocations: 7.688 kB / 0.8796 GB, free: 4.789 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.002415, allocations: 9.141 kB / 0.8796 GB, free: 4.781 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.715e-05/0.002432, allocations: 37.39 kB / 0.8796 GB, free: 4.734 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 6.91e-07/0.002433, allocations: 0 / 0.8796 GB, free: 4.734 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001137/0.002547, allocations: 51.91 kB / 0.8797 GB, free: 4.68 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.42e-05/0.002571, allocations: 51.41 kB / 0.8797 GB, free: 4.617 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.124e-05/0.002602, allocations: 142.2 kB / 0.8798 GB, free: 4.465 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.813e-06/0.002609, allocations: 25.7 kB / 0.8799 GB, free: 4.434 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 1.964e-05/0.002629, allocations: 130.1 kB / 0.88 GB, free: 4.305 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.516e-05/0.002644, allocations: 7.938 kB / 0.88 GB, free: 4.297 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.073e-05/0.002665, allocations: 19.38 kB / 0.88 GB, free: 4.27 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.218e-05/0.002747, allocations: 0.489 MB / 0.8805 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.526e-06/0.002755, allocations: 4 kB / 0.8805 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.41e-06/0.002761, allocations: 0 / 0.8805 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.602e-05/0.002787, allocations: 19.62 kB / 0.8805 GB, free: 3.742 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.002789, allocations: 5.281 kB / 0.8805 GB, free: 3.738 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.626e-05/0.002825, allocations: 37.69 kB / 0.8806 GB, free: 3.695 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.616e-06/0.002834, allocations: 4.875 kB / 0.8806 GB, free: 3.691 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.002838, allocations: 4.219 kB / 0.8806 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.297e-06/0.002847, allocations: 0 / 0.8806 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.228e-05/0.002889, allocations: 4 kB / 0.8806 GB, free: 3.684 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.002893, allocations: 0 / 0.8806 GB, free: 3.684 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.606e-06/0.002902, allocations: 3.938 kB / 0.8806 GB, free: 3.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-06/0.002905, allocations: 0 / 0.8806 GB, free: 3.68 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (n,fac) * 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.812e-05/0.002953, allocations: 160.6 kB / 0.8807 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.276e-06/0.002956, allocations: 0.875 kB / 0.8807 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.273e-05/0.003019, allocations: 48.78 kB / 0.8808 GB, free: 3.457 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.003021, allocations: 0 / 0.8808 GB, free: 3.457 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.003023, allocations: 4.031 kB / 0.8808 GB, free: 3.453 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.003026, allocations: 0 / 0.8808 GB, free: 3.453 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.126e-05/0.003077, allocations: 124.5 kB / 0.8809 GB, free: 3.297 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-07/0.003077, allocations: 0 / 0.8809 GB, free: 3.297 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.036e-05/0.003088, allocations: 4 kB / 0.8809 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-06/0.003089, allocations: 3.938 kB / 0.8809 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-06/0.003094, allocations: 0 / 0.8809 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-07/0.003094, allocations: 0 / 0.8809 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.003095, allocations: 0 / 0.8809 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.996e-05/0.003145, allocations: 84.31 kB / 0.881 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.045e-06/0.003148, allocations: 32 / 0.881 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.857e-06/0.003157, allocations: 4 kB / 0.881 GB, free: 3.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.948e-06/0.003161, allocations: 0 / 0.881 GB, free: 3.18 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.073e-05/0.003192, allocations: 7.984 kB / 0.881 GB, free: 3.172 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-06/0.003193, allocations: 0 / 0.881 GB, free: 3.172 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.221e-05/0.003215, allocations: 119.9 kB / 0.8811 GB, free: 3.055 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4e-08/0.003215, allocations: 0 / 0.8811 GB, free: 3.055 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000114/0.003329, allocations: 4 kB / 0.8811 GB, free: 3.051 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fac,n) * 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 9.03e-05/0.003419, allocations: 107.2 kB / 0.8812 GB, free: 2.938 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 5.93e-05/0.003479, allocations: 19.69 kB / 0.8812 GB, free: 2.914 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.002e-06/0.00348, allocations: 0 / 0.8812 GB, free: 2.914 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.371e-05/0.003493, allocations: 19.61 kB / 0.8813 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.414e-05/0.003577, allocations: 0.5156 kB / 0.8813 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001496/0.003727, allocations: 97.3 kB / 0.8813 GB, free: 2.766 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.545e-05/0.003752, allocations: 55.34 kB / 0.8814 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.897e-06/0.003761, allocations: 0 / 0.8814 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.45e-05/0.003776, allocations: 12.5 kB / 0.8814 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of SimCode: time 1.122e-06/0.003777, allocations: 0 / 0.8814 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of Templates: time 0.001713/0.00549, allocations: 361.7 kB / 0.8818 GB, free: 2.328 MB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.196198214776814]