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.002026/0.002026, allocations: 100.6 kB / 16.45 MB, free: 6.449 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.002296/0.002296, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.513/1.513, allocations: 230.6 MB / 252.8 MB, free: 9.109 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.344/3.344, allocations: 0.49 GB / 0.7916 GB, free: 33.54 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.002984/0.002984, allocations: 76.77 kB / 1.149 GB, free: 26.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.374/0.377, allocations: 176.1 MB / 1.321 GB, free: 3.297 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001857/0.3789, allocations: 0.5941 MB / 1.321 GB, free: 2.703 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002673/0.3791, allocations: 43.86 kB / 1.321 GB, free: 2.66 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.581e-05/0.3791, allocations: 0 / 1.321 GB, free: 2.66 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.511e-05/0.3792, allocations: 0 / 1.321 GB, free: 2.66 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.161e-06/0.3792, allocations: 0 / 1.321 GB, free: 2.66 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000238/0.3794, allocations: 15.92 kB / 1.321 GB, free: 2.645 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 4.893e-05/0.3795, allocations: 11.98 kB / 1.321 GB, free: 2.633 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.854e-05/0.3795, allocations: 4 kB / 1.321 GB, free: 2.629 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.763e-05/0.3795, allocations: 4 kB / 1.321 GB, free: 2.625 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 2.085e-05/0.3795, allocations: 0 / 1.321 GB, free: 2.625 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.014e-05/0.3796, allocations: 0 / 1.321 GB, free: 2.625 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.599e-05/0.3796, allocations: 11.98 kB / 1.322 GB, free: 2.613 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.238e-05/0.3796, allocations: 0 / 1.322 GB, free: 2.613 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.256e-05/0.3797, allocations: 3.938 kB / 1.322 GB, free: 2.609 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 9.992e-05/0.3798, allocations: 11.97 kB / 1.322 GB, free: 2.598 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3798, allocations: 0 / 1.322 GB, free: 2.598 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.314e-06/0.3798, allocations: 4 kB / 1.322 GB, free: 2.594 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.3798, allocations: 4 kB / 1.322 GB, free: 2.59 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.000385/0.3802, allocations: 315.8 kB / 1.322 GB, free: 2.23 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.3802, allocations: 11.98 kB / 1.322 GB, free: 2.219 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.759e-05/0.3803, allocations: 30.75 kB / 1.322 GB, free: 2.18 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/0.3803, allocations: 4.922 kB / 1.322 GB, free: 2.176 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.3804, allocations: 164.4 kB / 1.322 GB, free: 1.977 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.3804, allocations: 384 / 1.322 GB, free: 1.977 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.166e-06/0.3804, allocations: 4.312 kB / 1.322 GB, free: 1.973 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001114/0.3805, allocations: 34.27 kB / 1.322 GB, free: 1.934 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3806, allocations: 7.938 kB / 1.322 GB, free: 1.926 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-06/0.3806, allocations: 4 kB / 1.322 GB, free: 1.922 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.3806, allocations: 3.938 kB / 1.322 GB, free: 1.918 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.82e-05/0.3806, allocations: 7.984 kB / 1.322 GB, free: 1.91 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00017/0.3808, allocations: 145.7 kB / 1.322 GB, free: 1.719 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 5.528e-05/0.3808, allocations: 18.61 kB / 1.322 GB, free: 1.691 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.162e-05/0.3809, allocations: 16.84 kB / 1.322 GB, free: 1.672 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001882/0.381, allocations: 85.11 kB / 1.322 GB, free: 1.57 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.3811, allocations: 34.97 kB / 1.322 GB, free: 1.527 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.3811, allocations: 0 / 1.322 GB, free: 1.527 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.000152/0.3812, allocations: 41.62 kB / 1.322 GB, free: 1.48 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.3813, allocations: 55.34 kB / 1.322 GB, free: 1.414 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.243e-05/0.3813, allocations: 93.81 kB / 1.323 GB, free: 1.312 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.3814, allocations: 33.7 kB / 1.323 GB, free: 1.273 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.995e-05/0.3814, allocations: 80.27 kB / 1.323 GB, free: 1.191 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.568e-05/0.3814, allocations: 4 kB / 1.323 GB, free: 1.188 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.99e-05/0.3814, allocations: 13.72 kB / 1.323 GB, free: 1.168 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.3816, allocations: 314.8 kB / 1.323 GB, free: 0.8516 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.522e-05/0.3816, allocations: 7.938 kB / 1.323 GB, free: 0.8438 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.738e-06/0.3816, allocations: 4 kB / 1.323 GB, free: 0.8398 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.229e-05/0.3817, allocations: 8.859 kB / 1.323 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3817, allocations: 0 / 1.323 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.388e-05/0.3817, allocations: 45.75 kB / 1.323 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.3817, allocations: 4 kB / 1.323 GB, free: 0.7734 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3817, allocations: 3.938 kB / 1.323 GB, free: 0.7695 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.3817, allocations: 4 kB / 1.323 GB, free: 0.7656 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.828e-05/0.3818, allocations: 0 / 1.323 GB, free: 0.7656 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.3818, allocations: 0 / 1.323 GB, free: 0.7656 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.358e-05/0.3818, allocations: 4 kB / 1.323 GB, free: 0.7617 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-06/0.3818, allocations: 3.938 kB / 1.323 GB, free: 0.7578 MB / 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 8.671e-05/0.3819, allocations: 105.8 kB / 1.323 GB, free: 0.6445 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.893e-06/0.3819, allocations: 4.031 kB / 1.323 GB, free: 0.6406 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.646e-05/0.382, allocations: 48.75 kB / 1.323 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.382, allocations: 0 / 1.323 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.382, allocations: 0 / 1.323 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.382, allocations: 4 kB / 1.323 GB, free: 0.582 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001183/0.3821, allocations: 149.7 kB / 1.323 GB, free: 396 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3821, allocations: 0 / 1.323 GB, free: 396 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.355e-05/0.3822, allocations: 4 kB / 1.323 GB, free: 392 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-06/0.3822, allocations: 0 / 1.323 GB, free: 392 kB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.3822, allocations: 3.938 kB / 1.323 GB, free: 388 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3822, allocations: 8.016 kB / 1.323 GB, free: 380 kB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3822, allocations: 0 / 1.323 GB, free: 380 kB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.45e-05/0.3823, allocations: 73.02 kB / 1.323 GB, free: 288 kB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 3.843e-05/0.3823, allocations: 81.05 kB / 1.324 GB, free: 188 kB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.3823, allocations: 7.938 kB / 1.324 GB, free: 180 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.249e-05/0.3823, allocations: 4 kB / 1.324 GB, free: 176 kB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.868e-05/0.3824, allocations: 11.92 kB / 1.324 GB, free: 164 kB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.3824, allocations: 4.031 kB / 1.324 GB, free: 160 kB / 1.014 GB Notification: Performance of sorting global known variables: time 3.399e-05/0.3824, allocations: 75.28 kB / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of sort global known variables: time 6e-08/0.3824, allocations: 0 / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of remove unused functions: time 0.0001839/0.3826, allocations: 7.938 kB / 1.324 GB, free: 76 kB / 1.014 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.0004766/0.3831, allocations: 0.6124 MB / 1.324 GB, free: 15.43 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 6.994e-05/0.3831, allocations: 4 kB / 1.324 GB, free: 15.43 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3831, allocations: 0 / 1.324 GB, free: 15.43 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.755e-05/0.3832, allocations: 7.984 kB / 1.324 GB, free: 15.42 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/0.3833, allocations: 4 kB / 1.324 GB, free: 15.41 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003078/0.3836, allocations: 115.2 kB / 1.324 GB, free: 15.26 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.3839, allocations: 0.6845 MB / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.138e-05/0.3839, allocations: 0 / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.068e-05/0.3839, allocations: 11.56 kB / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of SimCode: time 2.6e-07/0.3839, allocations: 0 / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02318/0.4071, allocations: 1.066 MB / 1.326 GB, free: 13.56 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.896/8.303, allocations: 13.52 kB / 1.326 GB, free: 13.55 MB / 1.029 GB " [Timeout remaining time 292] (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: 15.222734020091593]