Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Functions.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.0008031/0.0008031, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008948/0.0008948, allocations: 165.9 kB / 22.45 MB, free: 2.109 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 0.8858/0.8858, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 1.651/1.651, allocations: 359 MB / 0.6037 GB, free: 11.07 MB / 0.573 GB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 0.9505 GB, free: 3.418 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.087e-05/1.217e-05, allocations: 2.281 kB / 0.9506 GB, free: 3.414 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0009751/0.0009872, allocations: 0.5839 MB / 0.9511 GB, free: 2.824 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0001753/0.001163, allocations: 47.8 kB / 0.9512 GB, free: 2.777 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.198e-05/0.001175, allocations: 0 / 0.9512 GB, free: 2.777 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 1.243e-05/0.001187, allocations: 0 / 0.9512 GB, free: 2.777 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 5.11e-06/0.001192, allocations: 0 / 0.9512 GB, free: 2.777 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001722/0.001364, allocations: 11.94 kB / 0.9512 GB, free: 2.766 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 4.184e-05/0.001406, allocations: 15.97 kB / 0.9512 GB, free: 2.75 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 3.272e-05/0.001439, allocations: 0 / 0.9512 GB, free: 2.75 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 2.304e-05/0.001462, allocations: 0 / 0.9512 GB, free: 2.75 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 1.966e-05/0.001482, allocations: 11.88 kB / 0.9512 GB, free: 2.738 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.109e-05/0.001493, allocations: 0 / 0.9512 GB, free: 2.738 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 6.232e-05/0.001555, allocations: 11.98 kB / 0.9512 GB, free: 2.727 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 8.426e-06/0.001563, allocations: 0 / 0.9512 GB, free: 2.727 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 1.13e-05/0.001575, allocations: 0 / 0.9512 GB, free: 2.727 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 6.982e-05/0.001644, allocations: 11.98 kB / 0.9512 GB, free: 2.715 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.001646, allocations: 0 / 0.9512 GB, free: 2.715 MB / 0.9011 GB Notification: Performance of FrontEnd: time 5.11e-07/0.001647, allocations: 0 / 0.9512 GB, free: 2.715 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.001651, allocations: 15.92 kB / 0.9512 GB, free: 2.699 MB / 0.9011 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.0001791/0.00183, allocations: 238.4 kB / 0.9515 GB, free: 2.434 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 2.955e-05/0.00186, allocations: 8.031 kB / 0.9515 GB, free: 2.426 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.357e-05/0.001883, allocations: 38.73 kB / 0.9515 GB, free: 2.379 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.693e-05/0.0019, allocations: 4.938 kB / 0.9515 GB, free: 2.375 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.88e-05/0.001949, allocations: 105.8 kB / 0.9516 GB, free: 2.246 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.236e-06/0.001957, allocations: 384 / 0.9516 GB, free: 2.246 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.3e-06/0.001963, allocations: 384 / 0.9516 GB, free: 2.246 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.695e-05/0.00203, allocations: 30.27 kB / 0.9516 GB, free: 2.211 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.55e-06/0.002035, allocations: 192 / 0.9517 GB, free: 2.211 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.27e-06/0.00204, allocations: 4.375 kB / 0.9517 GB, free: 2.207 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.002046, allocations: 4.125 kB / 0.9517 GB, free: 2.203 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.639e-05/0.002072, allocations: 11.94 kB / 0.9517 GB, free: 2.191 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.143e-05/0.002163, allocations: 120.8 kB / 0.9518 GB, free: 2.031 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 4.02e-05/0.002204, allocations: 22.61 kB / 0.9518 GB, free: 2 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.35e-05/0.002217, allocations: 8.922 kB / 0.9518 GB, free: 1.988 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/0.002321, allocations: 7.984 kB / 0.9518 GB, free: 1.98 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.586e-05/0.002337, allocations: 34.5 kB / 0.9519 GB, free: 1.938 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.002338, allocations: 0 / 0.9519 GB, free: 1.938 MB / 0.9011 GB Notification: Performance of matching and sorting (n=2): time 0.0001016/0.00244, allocations: 41.73 kB / 0.9519 GB, free: 1.891 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.415e-05/0.002464, allocations: 59.38 kB / 0.952 GB, free: 1.82 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.668e-05/0.00249, allocations: 97.84 kB / 0.952 GB, free: 1.715 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 6.873e-06/0.002497, allocations: 25.7 kB / 0.9521 GB, free: 1.684 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 1.673e-05/0.002514, allocations: 80.14 kB / 0.9521 GB, free: 1.602 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 1.16e-05/0.002526, allocations: 0 / 0.9521 GB, free: 1.602 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.146e-05/0.002547, allocations: 17.72 kB / 0.9522 GB, free: 1.578 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 6.653e-05/0.002614, allocations: 310.8 kB / 0.9525 GB, free: 1.266 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.196e-06/0.002622, allocations: 0 / 0.9525 GB, free: 1.266 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.222e-06/0.002628, allocations: 8 kB / 0.9525 GB, free: 1.258 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.7e-05/0.002655, allocations: 20.91 kB / 0.9525 GB, free: 1.234 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.002657, allocations: 0 / 0.9525 GB, free: 1.234 MB / 0.9011 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.205e-05/0.002689, allocations: 37.64 kB / 0.9525 GB, free: 1.191 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.002698, allocations: 8 kB / 0.9525 GB, free: 1.184 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.002702, allocations: 0 / 0.9525 GB, free: 1.184 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.226e-06/0.002711, allocations: 0 / 0.9525 GB, free: 1.184 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.575e-05/0.002746, allocations: 4 kB / 0.9525 GB, free: 1.18 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.002751, allocations: 3.938 kB / 0.9525 GB, free: 1.176 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.969e-06/0.002761, allocations: 7.938 kB / 0.9525 GB, free: 1.168 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.906e-06/0.002763, allocations: 0 / 0.9525 GB, free: 1.168 MB / 0.9011 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 4.239e-05/0.002806, allocations: 117.9 kB / 0.9527 GB, free: 1.043 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.926e-06/0.002809, allocations: 0 / 0.9527 GB, free: 1.043 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.927e-05/0.002868, allocations: 48.78 kB / 0.9527 GB, free: 0.9883 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.002869, allocations: 3.938 kB / 0.9527 GB, free: 0.9844 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.002873, allocations: 3.938 kB / 0.9527 GB, free: 0.9805 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.002875, allocations: 0 / 0.9527 GB, free: 0.9805 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.007e-05/0.002925, allocations: 116.8 kB / 0.9528 GB, free: 0.8242 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.31e-07/0.002926, allocations: 0 / 0.9528 GB, free: 0.8242 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-06/0.002933, allocations: 0 / 0.9528 GB, free: 0.8242 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.92e-07/0.002934, allocations: 4 kB / 0.9528 GB, free: 0.8203 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.23e-06/0.002939, allocations: 8.016 kB / 0.9528 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.3e-07/0.00294, allocations: 0 / 0.9528 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.002941, allocations: 3.938 kB / 0.9528 GB, free: 0.8086 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.947e-05/0.002981, allocations: 57.14 kB / 0.9529 GB, free: 0.7344 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 5.05e-06/0.002986, allocations: 11.92 kB / 0.9529 GB, free: 0.7227 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.813e-06/0.002992, allocations: 0 / 0.9529 GB, free: 0.7227 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.388e-06/0.002997, allocations: 0 / 0.9529 GB, free: 0.7227 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.099e-05/0.003018, allocations: 3.938 kB / 0.9529 GB, free: 0.7188 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.003021, allocations: 11.94 kB / 0.9529 GB, free: 0.707 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 1.641e-05/0.003038, allocations: 75.28 kB / 0.953 GB, free: 0.6328 MB / 0.9011 GB Notification: Performance of sort global known variables: time 5e-08/0.003038, allocations: 0 / 0.953 GB, free: 0.6328 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0001224/0.00316, allocations: 8.031 kB / 0.953 GB, free: 0.625 MB / 0.9011 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.0002314/0.003392, allocations: 0.593 MB / 0.9536 GB, free: 0 / 0.9011 GB Notification: Performance of simCode: created initialization part: time 6.132e-05/0.003453, allocations: 12.05 kB / 0.9536 GB, free: 15.98 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.003454, allocations: 0 / 0.9536 GB, free: 15.98 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 9.187e-06/0.003463, allocations: 7.938 kB / 0.9536 GB, free: 15.98 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.927e-05/0.003553, allocations: 12.25 kB / 0.9536 GB, free: 15.97 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002149/0.003767, allocations: 114.5 kB / 0.9537 GB, free: 15.82 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.161e-05/0.003799, allocations: 59.52 kB / 0.9538 GB, free: 15.74 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 9.999e-06/0.003809, allocations: 4 kB / 0.9538 GB, free: 15.74 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.802e-05/0.003827, allocations: 16.5 kB / 0.9538 GB, free: 15.72 MB / 0.9167 GB Notification: Performance of SimCode: time 2.71e-07/0.003827, allocations: 0 / 0.9538 GB, free: 15.72 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01371/0.01754, allocations: 1.701 MB / 0.9555 GB, free: 14.15 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.034/7.051, allocations: 12.19 kB / 0.9555 GB, free: 14.14 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 10.88791951816529]