Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.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.001663/0.001663, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002042/0.002042, allocations: 211 kB / 22.24 MB, free: 4.855 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.564/1.564, allocations: 230.6 MB / 256 MB, free: 7.797 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.362/3.362, allocations: 0.4892 GB / 0.7943 GB, free: 35.59 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.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_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.002124/0.002124, allocations: 65.48 kB / 1.153 GB, free: 25.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4349/0.437, allocations: 176.1 MB / 1.325 GB, free: 2.371 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003382/0.4404, allocations: 1.54 MB / 1.327 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.000464/0.4409, allocations: 127.6 kB / 1.327 GB, free: 0.6992 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.993e-05/0.4409, allocations: 4 kB / 1.327 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.459e-05/0.4409, allocations: 7.922 kB / 1.327 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.411e-05/0.441, allocations: 0 / 1.327 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003026/0.4413, allocations: 27.92 kB / 1.327 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 9.192e-05/0.4414, allocations: 27.92 kB / 1.327 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.4415, allocations: 0 / 1.327 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 6.037e-05/0.4415, allocations: 23.91 kB / 1.327 GB, free: 0.6094 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.947e-05/0.4416, allocations: 11.98 kB / 1.327 GB, free: 0.5977 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.4416, allocations: 0 / 1.327 GB, free: 0.5977 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.482e-05/0.4417, allocations: 16 kB / 1.327 GB, free: 0.582 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.377e-05/0.4417, allocations: 11.92 kB / 1.327 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.646e-05/0.4417, allocations: 4 kB / 1.327 GB, free: 0.5664 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.4419, allocations: 40.09 kB / 1.327 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.4419, allocations: 4 kB / 1.327 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.154e-06/0.4419, allocations: 0 / 1.327 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.712e-06/0.4419, allocations: 3.938 kB / 1.327 GB, free: 0.5195 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005724/0.4425, allocations: 270.3 kB / 1.327 GB, free: 228 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.866e-05/0.4425, allocations: 8.031 kB / 1.327 GB, free: 220 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.27e-05/0.4426, allocations: 30.75 kB / 1.327 GB, free: 180 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.166e-05/0.4426, allocations: 8.938 kB / 1.327 GB, free: 172 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.4428, allocations: 114.4 kB / 1.327 GB, free: 32 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.4428, allocations: 4.359 kB / 1.327 GB, free: 28 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.723e-05/0.4428, allocations: 4.375 kB / 1.327 GB, free: 24 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.443, allocations: 54.3 kB / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.4431, allocations: 3.938 kB / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.4431, allocations: 0 / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.4431, allocations: 0 / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001948/0.4433, allocations: 47.89 kB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004214/0.4437, allocations: 231.9 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.444, allocations: 54.55 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.4441, allocations: 28.89 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 9.556e-05/0.4442, allocations: 4 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.4443, allocations: 30.56 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.483e-06/0.4443, allocations: 0 / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004199/0.4447, allocations: 101.5 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.4447, allocations: 55.41 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.197e-05/0.4448, allocations: 105.8 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.4449, allocations: 25.7 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.648e-05/0.4449, allocations: 84.14 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.973e-05/0.4449, allocations: 7.953 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.446e-05/0.445, allocations: 17.72 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.4451, allocations: 314.8 kB / 1.328 GB, free: 14.76 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.477e-05/0.4452, allocations: 19.98 kB / 1.328 GB, free: 14.74 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.751e-05/0.4453, allocations: 15.98 kB / 1.328 GB, free: 14.72 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001783/0.4455, allocations: 53.22 kB / 1.328 GB, free: 14.67 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.4455, allocations: 0 / 1.328 GB, free: 14.67 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000228/0.4457, allocations: 77.58 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.4457, allocations: 15.92 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.4457, allocations: 0 / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.4458, allocations: 4 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.133e-05/0.4458, allocations: 8 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.4459, allocations: 3.984 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.211e-05/0.4459, allocations: 11.94 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/0.4459, allocations: 0 / 1.329 GB, free: 14.54 MB / 1.029 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 0.0001148/0.446, allocations: 120.9 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.949e-05/0.4461, allocations: 7.938 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002832/0.4463, allocations: 89.27 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.4463, allocations: 0 / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.4464, allocations: 0 / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4464, allocations: 0 / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001996/0.4466, allocations: 136.7 kB / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.4466, allocations: 0 / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.521e-05/0.4466, allocations: 11.98 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.4466, allocations: 0 / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-06/0.4466, allocations: 0 / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.4466, allocations: 0 / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4466, allocations: 0 / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000298/0.4469, allocations: 179.5 kB / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.135e-05/0.447, allocations: 7.984 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.447, allocations: 0 / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.057e-05/0.4471, allocations: 7.938 kB / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.798e-05/0.4471, allocations: 7.984 kB / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.4471, allocations: 4 kB / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.629e-05/0.4472, allocations: 83.27 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4472, allocations: 0 / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.00023/0.4474, allocations: 4 kB / 1.329 GB, free: 13.82 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.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.000681/0.4481, allocations: 0.7162 MB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002502/0.4483, allocations: 52.22 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.4483, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.505e-05/0.4484, allocations: 15.98 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003166/0.4487, allocations: 23.86 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004923/0.4492, allocations: 148.3 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.251e-05/0.4493, allocations: 63.34 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.216e-05/0.4493, allocations: 4 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.534e-05/0.4494, allocations: 15.41 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.4494, allocations: 0 / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03306/0.4824, allocations: 2.125 MB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.56, allocations: 7.062 kB / 1.332 GB, free: 10.7 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.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.872035027947277]