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.0008339/0.0008339, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001133/0.001967, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007494/0.0007494, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001036/0.001785, allocations: 459.6 kB / 11.71 MB, free: 2.457 MB / 13.93 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.954/0.954, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0936/1.048, allocations: 53.66 MB / 243.3 MB, free: 15.57 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.913/1.913, allocations: 378.2 MB / 0.6076 GB, free: 7.832 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4764/2.389, allocations: 123.3 MB / 0.728 GB, free: 5.801 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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 2.185e-06/2.185e-06, allocations: 0 / 0.7293 GB, free: 4.5 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.741e-05/2.96e-05, allocations: 6.875 kB / 0.7293 GB, free: 4.492 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002934/0.002964, allocations: 1.633 MB / 0.7309 GB, free: 2.875 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0002564/0.00322, allocations: 128.3 kB / 0.7311 GB, free: 2.75 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.076e-05/0.003251, allocations: 0 / 0.7311 GB, free: 2.75 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.392e-05/0.003275, allocations: 0 / 0.7311 GB, free: 2.75 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 3.051e-05/0.003305, allocations: 7.172 kB / 0.7311 GB, free: 2.746 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001548/0.00346, allocations: 28.55 kB / 0.7311 GB, free: 2.719 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 7.051e-05/0.003531, allocations: 24.05 kB / 0.7311 GB, free: 2.699 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.218e-05/0.003613, allocations: 13.41 kB / 0.7311 GB, free: 2.688 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 6.985e-05/0.003683, allocations: 21.47 kB / 0.7312 GB, free: 2.668 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.151e-05/0.003734, allocations: 16.95 kB / 0.7312 GB, free: 2.652 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.598e-05/0.00375, allocations: 5.406 kB / 0.7312 GB, free: 2.648 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 8.631e-05/0.003836, allocations: 15.98 kB / 0.7312 GB, free: 2.633 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.628e-05/0.003853, allocations: 5.75 kB / 0.7312 GB, free: 2.629 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 1.819e-05/0.003871, allocations: 7.141 kB / 0.7312 GB, free: 2.625 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001096/0.00398, allocations: 26.38 kB / 0.7312 GB, free: 2.602 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.631e-05/0.003997, allocations: 0 / 0.7312 GB, free: 2.602 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.262e-06/0.003998, allocations: 0 / 0.7312 GB, free: 2.602 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.624e-05/0.004014, allocations: 0 / 0.7312 GB, free: 2.602 MB / 0.698 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.000394/0.004408, allocations: 241.6 kB / 0.7315 GB, free: 2.34 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.004446, allocations: 13.12 kB / 0.7315 GB, free: 2.328 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.796e-05/0.004474, allocations: 2.062 kB / 0.7315 GB, free: 2.328 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.911e-05/0.004563, allocations: 117.7 kB / 0.7316 GB, free: 2.188 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.004583, allocations: 4.375 kB / 0.7316 GB, free: 2.184 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-06/0.004591, allocations: 5.094 kB / 0.7316 GB, free: 2.18 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001354/0.004727, allocations: 54.94 kB / 0.7316 GB, free: 2.117 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.004734, allocations: 4.656 kB / 0.7317 GB, free: 2.113 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.246e-06/0.004742, allocations: 9.312 kB / 0.7317 GB, free: 2.105 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.004747, allocations: 384 / 0.7317 GB, free: 2.105 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.113e-05/0.004778, allocations: 12.8 kB / 0.7317 GB, free: 2.094 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002527/0.005031, allocations: 149 kB / 0.7318 GB, free: 1.934 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001639/0.005194, allocations: 39.98 kB / 0.7319 GB, free: 1.887 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.7e-05/0.005211, allocations: 12.86 kB / 0.7319 GB, free: 1.871 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.222e-05/0.005284, allocations: 11.92 kB / 0.7319 GB, free: 1.859 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.005312, allocations: 31.22 kB / 0.7319 GB, free: 1.82 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.005313, allocations: 0 / 0.7319 GB, free: 1.82 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0001076/0.005421, allocations: 47.08 kB / 0.732 GB, free: 1.77 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.00545, allocations: 57.25 kB / 0.732 GB, free: 1.703 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.974e-05/0.0055, allocations: 102.7 kB / 0.7321 GB, free: 1.59 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.787e-06/0.005509, allocations: 25.7 kB / 0.7321 GB, free: 1.559 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.188e-05/0.005541, allocations: 96.08 kB / 0.7322 GB, free: 1.461 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.394e-05/0.005555, allocations: 4.719 kB / 0.7322 GB, free: 1.457 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.334e-05/0.005578, allocations: 14.5 kB / 0.7322 GB, free: 1.438 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.597e-05/0.005654, allocations: 322.8 kB / 0.7325 GB, free: 1.113 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-06/0.005664, allocations: 0.9375 kB / 0.7325 GB, free: 1.113 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.767e-06/0.005672, allocations: 7.938 kB / 0.7326 GB, free: 1.105 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.843e-05/0.005701, allocations: 21.72 kB / 0.7326 GB, free: 1.082 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.005703, allocations: 0 / 0.7326 GB, free: 1.082 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 4.61e-05/0.005749, allocations: 38.23 kB / 0.7326 GB, free: 1.039 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.005762, allocations: 4.688 kB / 0.7326 GB, free: 1.035 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.005768, allocations: 4.625 kB / 0.7326 GB, free: 1.031 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.005778, allocations: 4.453 kB / 0.7326 GB, free: 1.027 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.706e-05/0.005835, allocations: 9.766 kB / 0.7326 GB, free: 1.02 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.005839, allocations: 4.875 kB / 0.7326 GB, free: 1.016 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.551e-05/0.005855, allocations: 0 / 0.7326 GB, free: 1.016 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-06/0.005859, allocations: 3.938 kB / 0.7326 GB, free: 1.012 MB / 0.698 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 5.423e-05/0.005913, allocations: 110.5 kB / 0.7327 GB, free: 0.8945 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.168e-05/0.005924, allocations: 0 / 0.7327 GB, free: 0.8945 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.585e-05/0.006, allocations: 54.22 kB / 0.7328 GB, free: 0.832 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.006004, allocations: 7.938 kB / 0.7328 GB, free: 0.8242 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-06/0.006005, allocations: 0.5312 kB / 0.7328 GB, free: 0.8242 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.006008, allocations: 1.828 kB / 0.7328 GB, free: 0.8242 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.805e-05/0.006086, allocations: 65.89 kB / 0.7329 GB, free: 0.7422 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.006086, allocations: 0.875 kB / 0.7329 GB, free: 0.7422 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.207e-05/0.006118, allocations: 8 kB / 0.7329 GB, free: 0.7344 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.035e-06/0.006126, allocations: 12.52 kB / 0.7329 GB, free: 0.7227 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.006129, allocations: 0 / 0.7329 GB, free: 0.7227 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.697e-06/0.006132, allocations: 0.6562 kB / 0.7329 GB, free: 0.7227 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.006133, allocations: 0 / 0.7329 GB, free: 0.7227 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.006135, allocations: 5.094 kB / 0.7329 GB, free: 0.7188 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.252e-05/0.006217, allocations: 144.5 kB / 0.733 GB, free: 0.5625 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.464e-06/0.006225, allocations: 0 / 0.733 GB, free: 0.5625 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.335e-05/0.006258, allocations: 9.016 kB / 0.733 GB, free: 0.5547 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.545e-05/0.006293, allocations: 8 kB / 0.7331 GB, free: 0.5469 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-06/0.006298, allocations: 8.5 kB / 0.7331 GB, free: 0.5391 MB / 0.698 GB Notification: Performance of sorting global known variables: time 1.084e-05/0.006309, allocations: 8.844 kB / 0.7331 GB, free: 0.5273 MB / 0.698 GB Notification: Performance of sort global known variables: time 5e-08/0.006309, allocations: 1.781 kB / 0.7331 GB, free: 0.5273 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0001163/0.006425, allocations: 8 kB / 0.7331 GB, free: 0.5195 MB / 0.698 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.0001077/0.006533, allocations: 81.19 kB / 0.7332 GB, free: 440 kB / 0.698 GB Notification: Performance of simCode: created initialization part: time 5.816e-05/0.006591, allocations: 22 kB / 0.7332 GB, free: 416 kB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.006594, allocations: 0 / 0.7332 GB, free: 416 kB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.741e-05/0.006612, allocations: 12.86 kB / 0.7332 GB, free: 400 kB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001358/0.006748, allocations: 12.73 kB / 0.7332 GB, free: 388 kB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003963/0.007144, allocations: 117.8 kB / 0.7333 GB, free: 244 kB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.842e-05/0.007182, allocations: 60.09 kB / 0.7334 GB, free: 164 kB / 0.698 GB Notification: Performance of simCode: alias equations: time 2.28e-05/0.007205, allocations: 1.312 kB / 0.7334 GB, free: 164 kB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.883e-05/0.007254, allocations: 55.38 kB / 0.7334 GB, free: 108 kB / 0.698 GB Notification: Performance of SimCode: time 4.71e-07/0.007254, allocations: 1.531 kB / 0.7334 GB, free: 108 kB / 0.698 GB Notification: Performance of Templates: time 0.002486/0.00974, allocations: 0.7765 MB / 0.7342 GB, free: 15.36 MB / 0.7136 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 -ignoreHideResult -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.Math.Examples.Factorial/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.ref.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: 4.868385162204504]