Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 98.03 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008248/0.008248, allocations: 168.9 kB / 16.26 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.938/2.938, allocations: 462.7 MB / 0.7364 GB, free: 288 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.000354, allocations: 8.469 kB / 0.9028 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3164, allocations: 159.6 MB / 1.059 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002238/0.3187, allocations: 1.235 MB / 1.06 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004826/0.3192, allocations: 123.7 kB / 1.06 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.116e-05/0.3193, allocations: 0 / 1.06 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.276e-05/0.3193, allocations: 0 / 1.06 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.828e-05/0.3194, allocations: 3.938 kB / 1.06 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002222/0.3196, allocations: 23.97 kB / 1.06 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.553e-05/0.3197, allocations: 27.92 kB / 1.06 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.064e-05/0.3198, allocations: 8 kB / 1.06 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.935e-05/0.3199, allocations: 15.92 kB / 1.06 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.638e-05/0.3199, allocations: 19.91 kB / 1.06 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.3199, allocations: 4 kB / 1.06 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.737e-05/0.32, allocations: 4 kB / 1.06 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.465e-05/0.32, allocations: 8 kB / 1.06 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.773e-05/0.3201, allocations: 33.62 kB / 1.06 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.3202, allocations: 31.89 kB / 1.06 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.3202, allocations: 3.984 kB / 1.06 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.214e-06/0.3202, allocations: 0 / 1.06 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.3202, allocations: 4 kB / 1.06 GB, free: 3.938 MB / 0.8106 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.0004476/0.3207, allocations: 347.7 kB / 1.06 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.3207, allocations: 8.031 kB / 1.061 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.601e-05/0.3208, allocations: 8.844 kB / 1.061 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.3209, allocations: 164.4 kB / 1.061 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.3209, allocations: 4.312 kB / 1.061 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/0.3209, allocations: 4.375 kB / 1.061 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002014/0.3211, allocations: 62.22 kB / 1.061 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.3211, allocations: 8.125 kB / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.3212, allocations: 7.938 kB / 1.061 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3212, allocations: 0 / 1.061 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000201/0.3214, allocations: 47.95 kB / 1.061 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004118/0.3218, allocations: 261 kB / 1.061 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003374/0.3221, allocations: 66.47 kB / 1.061 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.3223, allocations: 36.84 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000126/0.3224, allocations: 81.09 kB / 1.061 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.3225, allocations: 34.56 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.3225, allocations: 0 / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004266/0.3229, allocations: 109.6 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.443e-05/0.3229, allocations: 55.41 kB / 1.061 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.72e-05/0.323, allocations: 101.8 kB / 1.062 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.323, allocations: 25.7 kB / 1.062 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.322e-05/0.3231, allocations: 88.06 kB / 1.062 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.3231, allocations: 15.84 kB / 1.062 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.907e-05/0.3232, allocations: 13.72 kB / 1.062 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.768e-05/0.3233, allocations: 314.8 kB / 1.062 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.3234, allocations: 27.97 kB / 1.062 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.392e-05/0.3235, allocations: 24.36 kB / 1.062 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001824/0.3237, allocations: 60.89 kB / 1.062 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.3237, allocations: 3.938 kB / 1.062 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002463/0.3239, allocations: 85.66 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.3239, allocations: 4 kB / 1.062 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.324, allocations: 0 / 1.062 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.324, allocations: 4 kB / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.602e-05/0.3241, allocations: 11.98 kB / 1.062 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.3241, allocations: 3.938 kB / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.196e-05/0.3241, allocations: 11.98 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-06/0.3242, allocations: 8 kB / 1.062 GB, free: 1.625 MB / 0.8106 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 8.135e-05/0.3242, allocations: 117.8 kB / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.372e-05/0.3243, allocations: 0 / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002726/0.3245, allocations: 93.14 kB / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.3246, allocations: 0 / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.3246, allocations: 0 / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.3246, allocations: 0 / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001604/0.3247, allocations: 173.5 kB / 1.063 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3247, allocations: 0 / 1.063 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.051e-05/0.3248, allocations: 11.98 kB / 1.063 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.3248, allocations: 3.938 kB / 1.063 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.3249, allocations: 4 kB / 1.063 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3249, allocations: 3.938 kB / 1.063 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3249, allocations: 4 kB / 1.063 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002728/0.3251, allocations: 179.4 kB / 1.063 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.673e-05/0.3252, allocations: 77.11 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.3252, allocations: 8 kB / 1.063 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.869e-05/0.3253, allocations: 7.984 kB / 1.063 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.237e-05/0.3254, allocations: 11.98 kB / 1.063 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/0.3254, allocations: 0 / 1.063 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.6e-05/0.3254, allocations: 83.22 kB / 1.063 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3254, allocations: 0 / 1.063 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002326/0.3257, allocations: 12 kB / 1.063 GB, free: 0.75 MB / 0.8106 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.0001545/0.3258, allocations: 103.2 kB / 1.063 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002354/0.3261, allocations: 51.89 kB / 1.063 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3261, allocations: 0 / 1.063 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.3262, allocations: 36.34 kB / 1.063 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002726/0.3265, allocations: 14.39 kB / 1.063 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002886/0.3268, allocations: 116.6 kB / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.327, allocations: 0.6809 MB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.324e-05/0.3271, allocations: 4.094 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.482e-05/0.3271, allocations: 15.42 kB / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3271, allocations: 0 / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of Templates: time 0.002794/0.3299, allocations: 0.6097 MB / 1.065 GB, free: 15.06 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches