Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001903/0.001903, allocations: 75.7 kB / 20.23 MB, free: 4.191 MB / 18.57 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.002111/0.002111, allocations: 157.3 kB / 23.55 MB, free: 0.875 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 1.55/1.55, allocations: 177.1 MB / 203.9 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.145/3.145, allocations: 377.8 MB / 0.6232 GB, free: 8.535 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 1.094 kB / 0.8108 GB, free: 2.109 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.694e-05/2.843e-05, allocations: 8.641 kB / 0.8108 GB, free: 2.102 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003187/0.003215, allocations: 1.541 MB / 0.8123 GB, free: 0.5703 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0003698/0.003585, allocations: 124.3 kB / 0.8124 GB, free: 460 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.703e-05/0.003622, allocations: 4.781 kB / 0.8124 GB, free: 456 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.675e-05/0.003649, allocations: 3.938 kB / 0.8124 GB, free: 452 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 5.03e-05/0.003699, allocations: 5.625 kB / 0.8125 GB, free: 448 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002498/0.003949, allocations: 27.83 kB / 0.8125 GB, free: 420 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 7.163e-05/0.004021, allocations: 27.92 kB / 0.8125 GB, free: 392 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 8.462e-05/0.004105, allocations: 8 kB / 0.8125 GB, free: 384 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 5.742e-05/0.004163, allocations: 17.52 kB / 0.8125 GB, free: 368 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 5.001e-05/0.004213, allocations: 19.91 kB / 0.8126 GB, free: 348 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.845e-05/0.004231, allocations: 4 kB / 0.8126 GB, free: 344 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 6.285e-05/0.004294, allocations: 11.98 kB / 0.8126 GB, free: 332 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 1.701e-05/0.004311, allocations: 9.375 kB / 0.8126 GB, free: 324 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 1.706e-05/0.004328, allocations: 0 / 0.8126 GB, free: 324 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001313/0.004459, allocations: 43.88 kB / 0.8126 GB, free: 280 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.063e-06/0.004461, allocations: 0 / 0.8126 GB, free: 280 kB / 0.7605 GB Notification: Performance of FrontEnd: time 5.21e-07/0.004462, allocations: 1.75 kB / 0.8126 GB, free: 280 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.517e-06/0.004466, allocations: 0 / 0.8126 GB, free: 280 kB / 0.7605 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.0005363/0.005002, allocations: 368.2 kB / 0.813 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.005038, allocations: 8.031 kB / 0.813 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.538e-05/0.005094, allocations: 10.12 kB / 0.813 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.005214, allocations: 108.6 kB / 0.8131 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.005238, allocations: 4.375 kB / 0.8131 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.077e-06/0.005247, allocations: 2.094 kB / 0.8131 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001626/0.00541, allocations: 54.23 kB / 0.8131 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.565e-06/0.005417, allocations: 192 / 0.8131 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.005428, allocations: 384 / 0.8131 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.005438, allocations: 4.375 kB / 0.8132 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.005573, allocations: 34.5 kB / 0.8132 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004206/0.005993, allocations: 267.8 kB / 0.8134 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.006293, allocations: 58.98 kB / 0.8135 GB, free: 15.26 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.282e-05/0.006376, allocations: 23.73 kB / 0.8135 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 9.288e-05/0.006469, allocations: 8.719 kB / 0.8135 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.006506, allocations: 41.38 kB / 0.8136 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.006507, allocations: 0.5312 kB / 0.8136 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0003506/0.006857, allocations: 79.2 kB / 0.8136 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.006904, allocations: 51.41 kB / 0.8137 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.007041, allocations: 169.9 kB / 0.8139 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.007062, allocations: 25.7 kB / 0.8139 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.664e-05/0.007149, allocations: 131.5 kB / 0.814 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.007166, allocations: 7.953 kB / 0.814 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.964e-05/0.007215, allocations: 28.3 kB / 0.814 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002872/0.007503, allocations: 496.1 kB / 0.8145 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.443e-05/0.007567, allocations: 13.14 kB / 0.8145 GB, free: 14.13 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.738e-05/0.007625, allocations: 16 kB / 0.8145 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/0.007757, allocations: 37.25 kB / 0.8146 GB, free: 14.08 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.007759, allocations: 0 / 0.8146 GB, free: 14.08 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001792/0.007938, allocations: 70.44 kB / 0.8146 GB, free: 14 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.007953, allocations: 7.938 kB / 0.8147 GB, free: 14 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.007961, allocations: 4.516 kB / 0.8147 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.007975, allocations: 3.984 kB / 0.8147 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.516e-05/0.00804, allocations: 8.844 kB / 0.8147 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.008045, allocations: 0 / 0.8147 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.696e-05/0.008082, allocations: 2.062 kB / 0.8147 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.008088, allocations: 4 kB / 0.8147 GB, free: 13.98 MB / 0.7761 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.0001259/0.008214, allocations: 160.6 kB / 0.8148 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.797e-05/0.008242, allocations: 4 kB / 0.8148 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002295/0.008472, allocations: 77.8 kB / 0.8149 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.008473, allocations: 2.531 kB / 0.8149 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.008477, allocations: 0 / 0.8149 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.008482, allocations: 4 kB / 0.8149 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.008656, allocations: 120.6 kB / 0.815 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.008657, allocations: 0 / 0.815 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.402e-05/0.008721, allocations: 11.98 kB / 0.815 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.562e-06/0.008722, allocations: 0 / 0.815 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.008732, allocations: 5.75 kB / 0.815 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.008736, allocations: 3.938 kB / 0.815 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.008737, allocations: 0 / 0.815 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002672/0.009004, allocations: 211.9 kB / 0.8152 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 5.821e-06/0.00901, allocations: 4.531 kB / 0.8153 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.009023, allocations: 0.5625 kB / 0.8153 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.466e-05/0.009098, allocations: 11.92 kB / 0.8153 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.322e-05/0.009151, allocations: 13.86 kB / 0.8153 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-06/0.00916, allocations: 4 kB / 0.8153 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 7.419e-05/0.009234, allocations: 123.2 kB / 0.8154 GB, free: 13.17 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.009234, allocations: 3.938 kB / 0.8154 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.000209/0.009443, allocations: 4 kB / 0.8154 GB, free: 13.16 MB / 0.7761 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.000171/0.009614, allocations: 104.5 kB / 0.8155 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001896/0.009803, allocations: 44.41 kB / 0.8155 GB, free: 13 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.009805, allocations: 0 / 0.8155 GB, free: 13 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 8.538e-05/0.00989, allocations: 32.33 kB / 0.8156 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.01011, allocations: 3.688 kB / 0.8156 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003295/0.01044, allocations: 138.1 kB / 0.8157 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.832e-05/0.01052, allocations: 59.78 kB / 0.8158 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.188e-05/0.01055, allocations: 7.984 kB / 0.8158 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.322e-05/0.01058, allocations: 8.5 kB / 0.8158 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of SimCode: time 3.4e-07/0.01058, allocations: 0 / 0.8158 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of Templates: time 0.003738/0.01432, allocations: 0.7597 MB / 0.8165 GB, free: 11.98 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.053183704963885]