Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002017/0.002017, allocations: 112.7 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002584/0.002584, allocations: 187 kB / 22.22 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 225.6 MB / 251 MB, free: 13.27 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.613/2.613, allocations: 443.4 MB / 0.7321 GB, free: 12.29 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_10_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_10_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 67.89 kB / 1.061 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7935/0.7955, allocations: 160.8 MB / 1.218 GB, free: 3.793 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001796/0.7973, allocations: 0.5913 MB / 1.219 GB, free: 3.355 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0002712/0.7976, allocations: 51.59 kB / 1.219 GB, free: 3.316 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.593e-05/0.7976, allocations: 0 / 1.219 GB, free: 3.316 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.649e-05/0.7976, allocations: 1.219 kB / 1.219 GB, free: 3.316 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.61e-06/0.7976, allocations: 0 / 1.219 GB, free: 3.316 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002114/0.7978, allocations: 12.09 kB / 1.219 GB, free: 3.309 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 4.02e-05/0.7979, allocations: 2.625 kB / 1.219 GB, free: 3.309 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.662e-05/0.7979, allocations: 1.062 kB / 1.219 GB, free: 3.309 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 1.928e-05/0.7979, allocations: 16.84 kB / 1.219 GB, free: 3.293 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 1.918e-05/0.798, allocations: 1.188 kB / 1.219 GB, free: 3.293 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.798, allocations: 4 kB / 1.219 GB, free: 3.289 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.845e-05/0.7981, allocations: 8.5 kB / 1.219 GB, free: 3.285 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.556e-06/0.7981, allocations: 1.094 kB / 1.219 GB, free: 3.285 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 1.703e-05/0.7981, allocations: 1.094 kB / 1.219 GB, free: 3.285 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 8.101e-05/0.7982, allocations: 10.89 kB / 1.219 GB, free: 3.277 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.7982, allocations: 1.156 kB / 1.219 GB, free: 3.277 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.313e-06/0.7982, allocations: 0 / 1.219 GB, free: 3.277 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.7982, allocations: 0 / 1.219 GB, free: 3.277 MB / 0.92 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.0003573/0.7985, allocations: 319.4 kB / 1.219 GB, free: 2.922 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.7986, allocations: 8.594 kB / 1.219 GB, free: 2.922 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.011e-05/0.7986, allocations: 18.05 kB / 1.22 GB, free: 2.906 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.7987, allocations: 164.4 kB / 1.22 GB, free: 2.707 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.914e-06/0.7987, allocations: 1.5 kB / 1.22 GB, free: 2.707 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.7988, allocations: 1.5 kB / 1.22 GB, free: 2.707 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.698e-05/0.7988, allocations: 33.66 kB / 1.22 GB, free: 2.672 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.7989, allocations: 192 / 1.22 GB, free: 2.672 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.7989, allocations: 3.938 kB / 1.22 GB, free: 2.668 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.7989, allocations: 0.9062 kB / 1.22 GB, free: 2.668 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.852e-05/0.7989, allocations: 10.31 kB / 1.22 GB, free: 2.66 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001918/0.7991, allocations: 155.9 kB / 1.22 GB, free: 2.461 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 5.805e-05/0.7992, allocations: 19.45 kB / 1.22 GB, free: 2.438 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.263e-05/0.7992, allocations: 11.02 kB / 1.22 GB, free: 2.426 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001782/0.7994, allocations: 80.39 kB / 1.22 GB, free: 2.332 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.7994, allocations: 35.64 kB / 1.22 GB, free: 2.289 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.7994, allocations: 0 / 1.22 GB, free: 2.289 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0001652/0.7996, allocations: 49.58 kB / 1.22 GB, free: 2.242 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.7996, allocations: 52.5 kB / 1.22 GB, free: 2.18 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.331e-05/0.7997, allocations: 89.86 kB / 1.22 GB, free: 2.082 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.7997, allocations: 26.48 kB / 1.22 GB, free: 2.051 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.619e-05/0.7997, allocations: 80.14 kB / 1.22 GB, free: 1.969 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.7997, allocations: 0.875 kB / 1.22 GB, free: 1.969 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.53e-05/0.7998, allocations: 20.86 kB / 1.22 GB, free: 1.945 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.7999, allocations: 312 kB / 1.221 GB, free: 1.633 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.108e-05/0.7999, allocations: 5.188 kB / 1.221 GB, free: 1.629 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.534e-06/0.7999, allocations: 2.375 kB / 1.221 GB, free: 1.629 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.626e-05/0.8, allocations: 13.92 kB / 1.221 GB, free: 1.617 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.8, allocations: 0 / 1.221 GB, free: 1.617 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.448e-05/0.8, allocations: 42.19 kB / 1.221 GB, free: 1.578 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.8001, allocations: 5.125 kB / 1.221 GB, free: 1.578 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.8001, allocations: 0 / 1.221 GB, free: 1.578 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.8001, allocations: 5 kB / 1.221 GB, free: 1.574 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.954e-05/0.8001, allocations: 3.25 kB / 1.221 GB, free: 1.574 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.8002, allocations: 11.92 kB / 1.221 GB, free: 1.562 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.436e-05/0.8002, allocations: 1.094 kB / 1.221 GB, free: 1.562 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.8002, allocations: 3.984 kB / 1.221 GB, free: 1.559 MB / 0.92 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 9.792e-05/0.8003, allocations: 123.3 kB / 1.221 GB, free: 1.434 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-06/0.8003, allocations: 4.953 kB / 1.221 GB, free: 1.43 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.71e-05/0.8004, allocations: 48.08 kB / 1.221 GB, free: 1.387 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.8004, allocations: 0 / 1.221 GB, free: 1.387 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.8004, allocations: 1.125 kB / 1.221 GB, free: 1.387 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.8004, allocations: 7.984 kB / 1.221 GB, free: 1.379 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000124/0.8005, allocations: 143.7 kB / 1.221 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.8005, allocations: 5.156 kB / 1.221 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.298e-05/0.8005, allocations: 2.375 kB / 1.221 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.8005, allocations: 0 / 1.221 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.864e-06/0.8005, allocations: 4.781 kB / 1.221 GB, free: 1.184 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.8006, allocations: 4.797 kB / 1.221 GB, free: 1.18 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.8006, allocations: 0 / 1.221 GB, free: 1.18 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.501e-05/0.8006, allocations: 62.48 kB / 1.221 GB, free: 1.109 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.002e-05/0.8007, allocations: 81.69 kB / 1.221 GB, free: 1.012 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.8007, allocations: 8.969 kB / 1.221 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.089e-05/0.8007, allocations: 0 / 1.221 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.431e-05/0.8008, allocations: 9.188 kB / 1.221 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.8008, allocations: 1.156 kB / 1.221 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.388e-05/0.8008, allocations: 75.28 kB / 1.221 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of sort global known variables: time 7e-08/0.8008, allocations: 0.9688 kB / 1.221 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0001958/0.801, allocations: 3.656 kB / 1.221 GB, free: 0.9219 MB / 0.92 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.0001638/0.8012, allocations: 113.6 kB / 1.221 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 8.73e-05/0.8012, allocations: 6.594 kB / 1.221 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.8012, allocations: 0 / 1.221 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 1.515e-05/0.8013, allocations: 4.219 kB / 1.221 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001408/0.8014, allocations: 5.156 kB / 1.221 GB, free: 0.8125 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002423/0.8016, allocations: 93.41 kB / 1.221 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.802, allocations: 0.6743 MB / 1.222 GB, free: 4 kB / 0.92 GB Notification: Performance of simCode: alias equations: time 1.446e-05/0.802, allocations: 1.562 kB / 1.222 GB, free: 4 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.724e-05/0.802, allocations: 12.95 kB / 1.222 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of SimCode: time 3.01e-07/0.802, allocations: 0 / 1.222 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of Templates: time 0.002723/0.8047, allocations: 328.1 kB / 1.222 GB, free: 15.82 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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.502419918775558]