Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.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.00178/0.00178, allocations: 80.3 kB / 19.18 MB, free: 2.516 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.002007/0.002007, allocations: 158.2 kB / 22.45 MB, free: 5.375 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.533/1.533, allocations: 177.2 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.793/2.793, allocations: 359 MB / 0.6037 GB, free: 14.97 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.963e-06/1.963e-06, allocations: 0 / 0.951 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.45e-05/2.646e-05, allocations: 2.281 kB / 0.951 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003044/0.00307, allocations: 1.532 MB / 0.9525 GB, free: 10 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003877/0.003458, allocations: 135.6 kB / 0.9526 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.952e-05/0.003497, allocations: 4 kB / 0.9526 GB, free: 9.863 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.338e-05/0.003531, allocations: 3.938 kB / 0.9526 GB, free: 9.859 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.722e-05/0.003578, allocations: 3.938 kB / 0.9526 GB, free: 9.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002534/0.003831, allocations: 23.91 kB / 0.9526 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.415e-05/0.003916, allocations: 31.92 kB / 0.9527 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.841e-05/0.004004, allocations: 7.984 kB / 0.9527 GB, free: 9.793 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.469e-05/0.004059, allocations: 12 kB / 0.9527 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.008e-05/0.004119, allocations: 15.91 kB / 0.9527 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/0.004137, allocations: 4 kB / 0.9527 GB, free: 9.762 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.94e-05/0.004206, allocations: 19.92 kB / 0.9527 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.468e-05/0.004221, allocations: 8 kB / 0.9527 GB, free: 9.734 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.072e-05/0.004252, allocations: 11.98 kB / 0.9527 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.004377, allocations: 35.88 kB / 0.9528 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.004379, allocations: 0 / 0.9528 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of FrontEnd: time 7.32e-07/0.00438, allocations: 0 / 0.9528 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.004384, allocations: 3.938 kB / 0.9528 GB, free: 9.684 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004843/0.004868, allocations: 276.2 kB / 0.953 GB, free: 9.383 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.004903, allocations: 8.031 kB / 0.953 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.627e-05/0.004939, allocations: 0.9375 kB / 0.953 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.005069, allocations: 113.7 kB / 0.9532 GB, free: 9.238 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.005091, allocations: 8.359 kB / 0.9532 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.147e-05/0.005103, allocations: 4.375 kB / 0.9532 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002014/0.005304, allocations: 58.22 kB / 0.9532 GB, free: 9.164 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.005314, allocations: 192 / 0.9532 GB, free: 9.164 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.005324, allocations: 4.375 kB / 0.9532 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.005328, allocations: 384 / 0.9532 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002079/0.005536, allocations: 39.89 kB / 0.9533 GB, free: 9.121 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003891/0.005925, allocations: 200.6 kB / 0.9535 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003534/0.006279, allocations: 66.47 kB / 0.9535 GB, free: 8.82 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.006386, allocations: 24.91 kB / 0.9535 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.979e-05/0.006476, allocations: 7.984 kB / 0.9536 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.006502, allocations: 30.56 kB / 0.9536 GB, free: 8.746 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.006503, allocations: 0 / 0.9536 GB, free: 8.746 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004334/0.006936, allocations: 101.5 kB / 0.9537 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.006992, allocations: 59.41 kB / 0.9537 GB, free: 8.57 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.928e-05/0.007071, allocations: 97.84 kB / 0.9538 GB, free: 8.465 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.007092, allocations: 29.7 kB / 0.9539 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.815e-05/0.00715, allocations: 80.14 kB / 0.9539 GB, free: 8.348 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.007169, allocations: 11.89 kB / 0.9539 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.234e-05/0.007211, allocations: 21.7 kB / 0.954 GB, free: 8.309 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001649/0.007376, allocations: 310.8 kB / 0.9543 GB, free: 7.996 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.007484, allocations: 27.91 kB / 0.9543 GB, free: 7.969 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001045/0.007589, allocations: 15.98 kB / 0.9543 GB, free: 7.953 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001967/0.007785, allocations: 48.81 kB / 0.9543 GB, free: 7.902 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.007787, allocations: 0 / 0.9543 GB, free: 7.902 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000244/0.008031, allocations: 77.59 kB / 0.9544 GB, free: 7.82 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.008046, allocations: 7.938 kB / 0.9544 GB, free: 7.812 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.008051, allocations: 0 / 0.9544 GB, free: 7.812 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.008064, allocations: 0 / 0.9544 GB, free: 7.812 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.799e-05/0.008152, allocations: 11.98 kB / 0.9544 GB, free: 7.801 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.008157, allocations: 4 kB / 0.9544 GB, free: 7.797 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.412e-05/0.008221, allocations: 7.984 kB / 0.9545 GB, free: 7.789 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.008227, allocations: 0 / 0.9545 GB, free: 7.789 MB / 0.8575 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 0.0001162/0.008343, allocations: 114.4 kB / 0.9546 GB, free: 7.668 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.974e-05/0.008372, allocations: 3.953 kB / 0.9546 GB, free: 7.664 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002904/0.008663, allocations: 93.19 kB / 0.9547 GB, free: 7.562 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.008665, allocations: 0 / 0.9547 GB, free: 7.562 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.00867, allocations: 7.938 kB / 0.9547 GB, free: 7.555 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.008675, allocations: 4 kB / 0.9547 GB, free: 7.551 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000159/0.008834, allocations: 113.3 kB / 0.9548 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.008835, allocations: 0 / 0.9548 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.161e-05/0.008917, allocations: 11.98 kB / 0.9548 GB, free: 7.398 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.008919, allocations: 0 / 0.9548 GB, free: 7.398 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.008927, allocations: 0 / 0.9548 GB, free: 7.398 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/0.008933, allocations: 3.938 kB / 0.9548 GB, free: 7.395 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.008934, allocations: 0 / 0.9548 GB, free: 7.395 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003061/0.00924, allocations: 171.5 kB / 0.955 GB, free: 7.211 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.124e-05/0.009251, allocations: 8 kB / 0.955 GB, free: 7.203 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.009265, allocations: 0 / 0.955 GB, free: 7.203 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.404e-05/0.009359, allocations: 11.92 kB / 0.955 GB, free: 7.191 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.303e-05/0.009412, allocations: 3.984 kB / 0.955 GB, free: 7.188 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.009418, allocations: 4 kB / 0.955 GB, free: 7.184 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.116e-05/0.009469, allocations: 87.22 kB / 0.9551 GB, free: 7.098 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.00947, allocations: 0 / 0.9551 GB, free: 7.098 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002351/0.009705, allocations: 7.953 kB / 0.9551 GB, free: 7.09 MB / 0.8575 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0002327/0.009937, allocations: 107.2 kB / 0.9552 GB, free: 6.977 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002566/0.01019, allocations: 47.94 kB / 0.9552 GB, free: 6.93 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.0102, allocations: 0 / 0.9552 GB, free: 6.93 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.01031, allocations: 23.98 kB / 0.9552 GB, free: 6.906 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.01058, allocations: 0 / 0.9552 GB, free: 6.906 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003815/0.01096, allocations: 129.3 kB / 0.9554 GB, free: 6.754 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.668e-05/0.01103, allocations: 63.36 kB / 0.9554 GB, free: 6.672 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.209e-05/0.01106, allocations: 3.984 kB / 0.9554 GB, free: 6.668 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.297e-05/0.0111, allocations: 12.5 kB / 0.9554 GB, free: 6.656 MB / 0.8575 GB Notification: Performance of SimCode: time 4.91e-07/0.0111, allocations: 0 / 0.9554 GB, free: 6.656 MB / 0.8575 GB Notification: Performance of Templates: time 0.003655/0.01475, allocations: 0.7484 MB / 0.9562 GB, free: 5.914 MB / 0.8575 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.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: 7.943270355463028]