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.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.001739/0.001739, 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.002111/0.002111, allocations: 212.5 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.583/1.583, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.345/3.345, allocations: 0.5107 GB / 0.8158 GB, free: 17.83 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_latest_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.003365/0.003365, allocations: 63.98 kB / 1.186 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4514/0.4548, allocations: 181.9 MB / 1.363 GB, free: 14.1 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002936/0.4577, allocations: 1.538 MB / 1.365 GB, free: 12.55 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0004411/0.4581, allocations: 127.6 kB / 1.365 GB, free: 12.43 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.326e-05/0.4582, allocations: 4 kB / 1.365 GB, free: 12.42 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.745e-05/0.4582, allocations: 4 kB / 1.365 GB, free: 12.42 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.125e-05/0.4582, allocations: 3.938 kB / 1.365 GB, free: 12.41 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.4585, allocations: 19.92 kB / 1.365 GB, free: 12.39 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.919e-05/0.4586, allocations: 27.98 kB / 1.365 GB, free: 12.37 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.548e-05/0.4587, allocations: 3.984 kB / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.801e-05/0.4587, allocations: 23.86 kB / 1.365 GB, free: 12.34 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.447e-05/0.4588, allocations: 11.98 kB / 1.365 GB, free: 12.33 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.4588, allocations: 7.875 kB / 1.365 GB, free: 12.32 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.565e-05/0.4588, allocations: 15.98 kB / 1.365 GB, free: 12.3 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.041e-05/0.4589, allocations: 0 / 1.365 GB, free: 12.3 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.706e-05/0.4589, allocations: 11.94 kB / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001262/0.459, allocations: 44.09 kB / 1.365 GB, free: 12.25 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.459, allocations: 4 kB / 1.365 GB, free: 12.25 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.684e-06/0.459, allocations: 0 / 1.365 GB, free: 12.25 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.451e-06/0.459, allocations: 0 / 1.365 GB, free: 12.25 MB / 1.061 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.0004788/0.4595, allocations: 267.7 kB / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.4595, allocations: 8.031 kB / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.457e-05/0.4596, allocations: 30.75 kB / 1.365 GB, free: 11.91 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.58e-05/0.4596, allocations: 8.891 kB / 1.365 GB, free: 11.9 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001089/0.4597, allocations: 110.5 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.4597, allocations: 384 / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/0.4597, allocations: 8.375 kB / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000187/0.4599, allocations: 58.17 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.4599, allocations: 3.938 kB / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.4599, allocations: 0 / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.46, allocations: 0 / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.4601, allocations: 47.94 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003968/0.4605, allocations: 232 kB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003213/0.4608, allocations: 62.48 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.735e-05/0.4609, allocations: 24.89 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 8.483e-05/0.461, allocations: 8 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.4611, allocations: 30.56 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.4611, allocations: 0 / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0003716/0.4614, allocations: 89.62 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.4615, allocations: 55.41 kB / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.047e-05/0.4616, allocations: 105.8 kB / 1.366 GB, free: 10.96 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.4616, allocations: 25.7 kB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.007e-05/0.4616, allocations: 84.14 kB / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.715e-05/0.4617, allocations: 11.89 kB / 1.366 GB, free: 10.83 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.582e-05/0.4617, allocations: 13.72 kB / 1.366 GB, free: 10.81 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.4619, allocations: 318.8 kB / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.191e-05/0.4619, allocations: 23.92 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.839e-05/0.462, allocations: 15.97 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001725/0.4622, allocations: 56.77 kB / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4622, allocations: 0 / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002191/0.4624, allocations: 77.59 kB / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.4624, allocations: 8 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.82e-06/0.4624, allocations: 3.938 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.4625, allocations: 0 / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.232e-05/0.4625, allocations: 15.92 kB / 1.367 GB, free: 10.28 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.4625, allocations: 7.984 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.544e-05/0.4626, allocations: 7.938 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-06/0.4626, allocations: 0 / 1.367 GB, free: 10.27 MB / 1.061 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.0001058/0.4627, allocations: 121.8 kB / 1.367 GB, free: 10.14 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.337e-05/0.4627, allocations: 0 / 1.367 GB, free: 10.14 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002727/0.463, allocations: 81.33 kB / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.463, allocations: 0.5625 kB / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.463, allocations: 0 / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.463, allocations: 4 kB / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001819/0.4632, allocations: 136.7 kB / 1.367 GB, free: 9.863 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.4632, allocations: 0 / 1.367 GB, free: 9.863 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.35e-05/0.4633, allocations: 11.98 kB / 1.367 GB, free: 9.852 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.4633, allocations: 3.938 kB / 1.367 GB, free: 9.848 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.4633, allocations: 0 / 1.367 GB, free: 9.848 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4633, allocations: 0 / 1.367 GB, free: 9.848 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4633, allocations: 3.984 kB / 1.367 GB, free: 9.844 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002918/0.4636, allocations: 179.4 kB / 1.367 GB, free: 9.652 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.174e-05/0.4636, allocations: 11.95 kB / 1.367 GB, free: 9.641 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.4636, allocations: 0 / 1.367 GB, free: 9.641 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.412e-05/0.4637, allocations: 7.984 kB / 1.367 GB, free: 9.633 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.317e-05/0.4638, allocations: 4 kB / 1.367 GB, free: 9.629 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.4638, allocations: 4 kB / 1.367 GB, free: 9.625 MB / 1.061 GB Notification: Performance of sorting global known variables: time 4.987e-05/0.4638, allocations: 83.27 kB / 1.368 GB, free: 9.543 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.4638, allocations: 0 / 1.368 GB, free: 9.543 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002392/0.464, allocations: 4 kB / 1.368 GB, free: 9.539 MB / 1.061 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.0007025/0.4647, allocations: 0.7184 MB / 1.368 GB, free: 8.793 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002468/0.465, allocations: 39.95 kB / 1.368 GB, free: 8.754 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.465, allocations: 0 / 1.368 GB, free: 8.754 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.4651, allocations: 31.91 kB / 1.368 GB, free: 8.723 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.4654, allocations: 8 kB / 1.368 GB, free: 8.715 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005213/0.466, allocations: 139.1 kB / 1.368 GB, free: 8.539 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.291e-05/0.4661, allocations: 67.34 kB / 1.369 GB, free: 8.453 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.459e-05/0.4661, allocations: 4 kB / 1.369 GB, free: 8.449 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.418e-05/0.4661, allocations: 19.42 kB / 1.369 GB, free: 8.43 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/0.4661, allocations: 0 / 1.369 GB, free: 8.43 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02939/0.4955, allocations: 2.137 MB / 1.371 GB, free: 6.426 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.67, allocations: 0 / 1.371 GB, free: 6.426 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 19.039344498887658]