Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001768/0.001768, allocations: 77.55 kB / 19.76 MB, free: 2.027 MB / 14.72 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.002101/0.002101, allocations: 162.4 kB / 23.01 MB, free: 4.949 MB / 14.72 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 1.465/1.465, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.734/2.734, allocations: 377.9 MB / 0.6228 GB, free: 12.58 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002457/0.002457, allocations: 63.91 kB / 0.982 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7782/0.7807, allocations: 176.1 MB / 1.154 GB, free: 33.33 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001464/0.7822, allocations: 0.5983 MB / 1.155 GB, free: 32.96 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0002238/0.7824, allocations: 43.7 kB / 1.155 GB, free: 32.94 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.412e-05/0.7824, allocations: 0 / 1.155 GB, free: 32.94 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 1.454e-05/0.7824, allocations: 0 / 1.155 GB, free: 32.94 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 5.881e-06/0.7824, allocations: 3.938 kB / 1.155 GB, free: 32.94 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002027/0.7826, allocations: 9.281 kB / 1.155 GB, free: 32.93 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 3.354e-05/0.7827, allocations: 3.281 kB / 1.155 GB, free: 32.93 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 4.7e-05/0.7827, allocations: 6.5 kB / 1.155 GB, free: 32.93 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 1.2e-05/0.7827, allocations: 0 / 1.155 GB, free: 32.93 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 1.893e-05/0.7827, allocations: 6.406 kB / 1.155 GB, free: 32.93 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 7.775e-06/0.7827, allocations: 0 / 1.155 GB, free: 32.93 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 6.694e-05/0.7828, allocations: 16.52 kB / 1.155 GB, free: 32.92 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 1.036e-05/0.7828, allocations: 3.984 kB / 1.155 GB, free: 32.91 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 1.596e-05/0.7828, allocations: 3.938 kB / 1.155 GB, free: 32.91 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 8.85e-05/0.7829, allocations: 20.23 kB / 1.155 GB, free: 32.9 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.7829, allocations: 0 / 1.155 GB, free: 32.9 MB / 1.076 GB Notification: Performance of FrontEnd: time 9.52e-07/0.7829, allocations: 0 / 1.155 GB, free: 32.9 MB / 1.076 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.7829, allocations: 0 / 1.155 GB, free: 32.9 MB / 1.076 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.0001933/0.7831, allocations: 232 kB / 1.155 GB, free: 32.65 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.042e-05/0.7832, allocations: 14.34 kB / 1.155 GB, free: 32.65 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.351e-05/0.7832, allocations: 0.9375 kB / 1.155 GB, free: 32.65 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.509e-05/0.7832, allocations: 106.5 kB / 1.155 GB, free: 32.52 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.7832, allocations: 11.19 kB / 1.155 GB, free: 32.51 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-06/0.7833, allocations: 384 / 1.155 GB, free: 32.51 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.906e-05/0.7833, allocations: 28.77 kB / 1.155 GB, free: 32.48 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.7833, allocations: 192 / 1.155 GB, free: 32.48 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.015e-06/0.7834, allocations: 9.906 kB / 1.155 GB, free: 32.48 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.7834, allocations: 3.984 kB / 1.155 GB, free: 32.47 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.551e-05/0.7834, allocations: 2.688 kB / 1.155 GB, free: 32.47 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.854e-05/0.7835, allocations: 100 kB / 1.155 GB, free: 32.35 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 4.777e-05/0.7835, allocations: 27.06 kB / 1.155 GB, free: 32.32 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.395e-05/0.7835, allocations: 11.58 kB / 1.155 GB, free: 32.31 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001123/0.7836, allocations: 6.625 kB / 1.155 GB, free: 32.3 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.294e-05/0.7836, allocations: 37.03 kB / 1.155 GB, free: 32.26 MB / 1.076 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.7836, allocations: 0 / 1.155 GB, free: 32.26 MB / 1.076 GB Notification: Performance of matching and sorting (n=2): time 0.0001182/0.7838, allocations: 48.91 kB / 1.155 GB, free: 32.22 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2e-05/0.7838, allocations: 51.41 kB / 1.155 GB, free: 32.16 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.884e-05/0.7838, allocations: 93.27 kB / 1.155 GB, free: 32.06 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.871e-06/0.7838, allocations: 25.7 kB / 1.155 GB, free: 32.03 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 9.477e-06/0.7838, allocations: 84.08 kB / 1.155 GB, free: 31.94 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.814e-05/0.7838, allocations: 3.953 kB / 1.155 GB, free: 31.94 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.23e-05/0.7839, allocations: 19.88 kB / 1.156 GB, free: 31.92 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.619e-05/0.7839, allocations: 318.8 kB / 1.156 GB, free: 31.6 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.04e-05/0.7839, allocations: 2.531 kB / 1.156 GB, free: 31.6 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.763e-06/0.7839, allocations: 2.938 kB / 1.156 GB, free: 31.6 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.64e-05/0.7839, allocations: 10.89 kB / 1.156 GB, free: 31.59 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.7839, allocations: 0 / 1.156 GB, free: 31.59 MB / 1.076 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.563e-05/0.784, allocations: 39.56 kB / 1.156 GB, free: 31.55 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/0.784, allocations: 7.375 kB / 1.156 GB, free: 31.55 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.784, allocations: 0 / 1.156 GB, free: 31.55 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.784, allocations: 96 / 1.156 GB, free: 31.55 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.777e-05/0.7841, allocations: 21.72 kB / 1.156 GB, free: 31.54 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.7841, allocations: 3.328 kB / 1.156 GB, free: 31.54 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.208e-05/0.7841, allocations: 0 / 1.156 GB, free: 31.54 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.998e-06/0.7841, allocations: 0 / 1.156 GB, free: 31.54 MB / 1.076 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 3.755e-05/0.7841, allocations: 117.3 kB / 1.156 GB, free: 31.42 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.613e-06/0.7841, allocations: 0 / 1.156 GB, free: 31.42 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.534e-05/0.7842, allocations: 38.08 kB / 1.156 GB, free: 31.38 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.7842, allocations: 6.781 kB / 1.156 GB, free: 31.38 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.7842, allocations: 0 / 1.156 GB, free: 31.38 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.7842, allocations: 4.031 kB / 1.156 GB, free: 31.37 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.818e-05/0.7842, allocations: 104.5 kB / 1.156 GB, free: 31.24 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.7842, allocations: 0 / 1.156 GB, free: 31.24 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.217e-05/0.7843, allocations: 6.453 kB / 1.156 GB, free: 31.24 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.7843, allocations: 0 / 1.156 GB, free: 31.24 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.319e-06/0.7843, allocations: 0 / 1.156 GB, free: 31.24 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.7843, allocations: 3.938 kB / 1.156 GB, free: 31.24 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.7843, allocations: 3.938 kB / 1.156 GB, free: 31.23 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.08e-05/0.7843, allocations: 64.36 kB / 1.156 GB, free: 31.17 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 4.439e-06/0.7843, allocations: 3.953 kB / 1.156 GB, free: 31.16 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.376e-06/0.7843, allocations: 0 / 1.156 GB, free: 31.16 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.053e-05/0.7843, allocations: 11.09 kB / 1.156 GB, free: 31.16 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.8e-05/0.7844, allocations: 7.266 kB / 1.156 GB, free: 31.15 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.7844, allocations: 4 kB / 1.156 GB, free: 31.15 MB / 1.076 GB Notification: Performance of sorting global known variables: time 1.307e-05/0.7844, allocations: 78.09 kB / 1.156 GB, free: 31.07 MB / 1.076 GB Notification: Performance of sort global known variables: time 5e-08/0.7844, allocations: 0 / 1.156 GB, free: 31.07 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0001847/0.7846, allocations: 7 kB / 1.156 GB, free: 31.07 MB / 1.076 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 0.0001039/0.7847, allocations: 97.97 kB / 1.156 GB, free: 30.98 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 6.99e-05/0.7847, allocations: 13.38 kB / 1.156 GB, free: 30.98 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.7847, allocations: 4.062 kB / 1.156 GB, free: 30.97 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 1.869e-05/0.7848, allocations: 5.781 kB / 1.156 GB, free: 30.97 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.7849, allocations: 0 / 1.156 GB, free: 30.97 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000142/0.785, allocations: 96.56 kB / 1.157 GB, free: 30.87 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.236e-05/0.7851, allocations: 54.08 kB / 1.157 GB, free: 30.8 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 1.083e-05/0.7851, allocations: 3.031 kB / 1.157 GB, free: 30.8 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.274e-05/0.7851, allocations: 8.5 kB / 1.157 GB, free: 30.79 MB / 1.076 GB Notification: Performance of SimCode: time 3.11e-07/0.7851, allocations: 0 / 1.157 GB, free: 30.79 MB / 1.076 GB Notification: Performance of Templates: time 0.00228/0.7874, allocations: 328.6 kB / 1.157 GB, free: 30.71 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.180360839003697]