Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001474/0.001474, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.001583/0.001583, allocations: 210.5 kB / 22.24 MB, free: 5.262 MB / 14.72 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.493/1.493, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.339/3.339, allocations: 0.4892 GB / 0.7943 GB, free: 35.52 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002938/0.002938, allocations: 66.23 kB / 1.153 GB, free: 25.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3839/0.3868, allocations: 176.1 MB / 1.325 GB, free: 2.355 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00176/0.3886, allocations: 0.5865 MB / 1.326 GB, free: 1.773 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.000307/0.3889, allocations: 44.22 kB / 1.326 GB, free: 1.73 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.016e-05/0.3889, allocations: 4 kB / 1.326 GB, free: 1.727 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.942e-05/0.3889, allocations: 0 / 1.326 GB, free: 1.727 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.063e-06/0.3889, allocations: 0 / 1.326 GB, free: 1.727 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002616/0.3892, allocations: 15.97 kB / 1.326 GB, free: 1.711 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 5.663e-05/0.3892, allocations: 11.94 kB / 1.326 GB, free: 1.699 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 5.682e-05/0.3893, allocations: 0 / 1.326 GB, free: 1.699 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.73e-05/0.3893, allocations: 3.938 kB / 1.326 GB, free: 1.695 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 2.822e-05/0.3893, allocations: 4 kB / 1.326 GB, free: 1.691 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.094e-05/0.3894, allocations: 0 / 1.326 GB, free: 1.691 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.537e-05/0.3895, allocations: 11.98 kB / 1.326 GB, free: 1.68 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.167e-05/0.3895, allocations: 0 / 1.326 GB, free: 1.68 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 1.975e-05/0.3895, allocations: 4 kB / 1.326 GB, free: 1.676 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001109/0.3896, allocations: 11.97 kB / 1.326 GB, free: 1.664 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.3896, allocations: 0 / 1.326 GB, free: 1.664 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.024e-06/0.3896, allocations: 0 / 1.326 GB, free: 1.664 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.3896, allocations: 4 kB / 1.326 GB, free: 1.66 MB / 1.014 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.0004162/0.39, allocations: 250.6 kB / 1.326 GB, free: 1.383 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.3901, allocations: 8.031 kB / 1.326 GB, free: 1.375 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.392e-05/0.3902, allocations: 30.75 kB / 1.326 GB, free: 1.336 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.39e-05/0.3902, allocations: 8.938 kB / 1.326 GB, free: 1.328 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.3903, allocations: 102.5 kB / 1.326 GB, free: 1.203 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.3903, allocations: 384 / 1.326 GB, free: 1.203 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.3903, allocations: 4.375 kB / 1.326 GB, free: 1.199 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001574/0.3905, allocations: 34.27 kB / 1.326 GB, free: 1.16 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.3905, allocations: 11.86 kB / 1.326 GB, free: 1.148 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.3905, allocations: 0 / 1.326 GB, free: 1.148 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.3905, allocations: 0 / 1.326 GB, free: 1.148 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.532e-05/0.3906, allocations: 4 kB / 1.326 GB, free: 1.145 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002299/0.3908, allocations: 120.8 kB / 1.326 GB, free: 0.9844 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001048/0.3909, allocations: 22.59 kB / 1.326 GB, free: 0.9531 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.635e-05/0.391, allocations: 12.86 kB / 1.326 GB, free: 0.9375 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00019/0.3911, allocations: 8 kB / 1.326 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.098e-05/0.3912, allocations: 34.56 kB / 1.326 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.3912, allocations: 0 / 1.326 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.0001878/0.3914, allocations: 45.56 kB / 1.326 GB, free: 0.8359 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/0.3914, allocations: 55.41 kB / 1.327 GB, free: 0.7695 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.543e-05/0.3915, allocations: 93.86 kB / 1.327 GB, free: 0.668 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/0.3915, allocations: 25.7 kB / 1.327 GB, free: 0.6367 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 4.783e-05/0.3916, allocations: 80.14 kB / 1.327 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.3916, allocations: 3.953 kB / 1.327 GB, free: 0.5508 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.3916, allocations: 13.72 kB / 1.327 GB, free: 0.5312 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3918, allocations: 314.8 kB / 1.327 GB, free: 220 kB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.613e-05/0.3918, allocations: 8.109 kB / 1.327 GB, free: 212 kB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.845e-06/0.3918, allocations: 4 kB / 1.327 GB, free: 208 kB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.288e-05/0.3919, allocations: 12.8 kB / 1.327 GB, free: 192 kB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3919, allocations: 0 / 1.327 GB, free: 192 kB / 1.014 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.5e-05/0.3919, allocations: 37.7 kB / 1.327 GB, free: 148 kB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.392, allocations: 11.98 kB / 1.327 GB, free: 136 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.392, allocations: 3.938 kB / 1.327 GB, free: 132 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.392, allocations: 0 / 1.327 GB, free: 132 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.052e-05/0.392, allocations: 4 kB / 1.327 GB, free: 128 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.3921, allocations: 8.031 kB / 1.327 GB, free: 120 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.357e-05/0.3921, allocations: 0 / 1.327 GB, free: 120 kB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-06/0.3921, allocations: 0 / 1.327 GB, free: 120 kB / 1.014 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 0.0001289/0.3922, allocations: 110.5 kB / 1.327 GB, free: 16 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.948e-06/0.3922, allocations: 4 kB / 1.327 GB, free: 15.99 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.3923, allocations: 48.72 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.3923, allocations: 0 / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.3923, allocations: 0 / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3923, allocations: 0 / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.3925, allocations: 124.8 kB / 1.327 GB, free: 15.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3925, allocations: 4.031 kB / 1.327 GB, free: 15.76 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.267e-05/0.3925, allocations: 4 kB / 1.327 GB, free: 15.76 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.3925, allocations: 3.984 kB / 1.327 GB, free: 15.75 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.3925, allocations: 3.938 kB / 1.327 GB, free: 15.75 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.3925, allocations: 4 kB / 1.327 GB, free: 15.75 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.3925, allocations: 0 / 1.327 GB, free: 15.75 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.695e-05/0.3926, allocations: 65.06 kB / 1.327 GB, free: 15.66 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.183e-06/0.3926, allocations: 7.953 kB / 1.327 GB, free: 15.66 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.484e-05/0.3926, allocations: 3.938 kB / 1.327 GB, free: 15.65 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.028e-05/0.3926, allocations: 0 / 1.327 GB, free: 15.65 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.025e-05/0.3927, allocations: 4.031 kB / 1.327 GB, free: 15.65 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.3927, allocations: 11.92 kB / 1.327 GB, free: 15.64 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.973e-05/0.3927, allocations: 75.28 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3927, allocations: 0 / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002137/0.3929, allocations: 11.94 kB / 1.328 GB, free: 15.55 MB / 1.029 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.0005076/0.3935, allocations: 0.5968 MB / 1.328 GB, free: 14.92 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 9.309e-05/0.3935, allocations: 11.94 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3935, allocations: 0 / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.088e-05/0.3936, allocations: 12.09 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.3937, allocations: 5.703 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000362/0.3941, allocations: 118.6 kB / 1.328 GB, free: 14.74 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.874e-05/0.3941, allocations: 63.28 kB / 1.328 GB, free: 14.66 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.35e-05/0.3941, allocations: 0 / 1.328 GB, free: 14.66 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.698e-05/0.3942, allocations: 7.438 kB / 1.328 GB, free: 14.65 MB / 1.029 GB Notification: Performance of SimCode: time 3.01e-07/0.3942, allocations: 0 / 1.328 GB, free: 14.65 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02951/0.4237, allocations: 1.571 MB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.47, allocations: 3.938 kB / 1.33 GB, free: 13.2 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.587046490982175]