Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 109.4 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.782/2.782, allocations: 476.7 MB / 0.7611 GB, free: 11.32 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.003023/0.003023, allocations: 67.89 kB / 1.104 GB, free: 9.281 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8928/0.8958, allocations: 168.7 MB / 1.269 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00319/0.899, allocations: 1.524 MB / 1.27 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0004099/0.8994, allocations: 135.6 kB / 1.27 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.117e-05/0.8994, allocations: 0 / 1.27 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.864e-05/0.8995, allocations: 7.938 kB / 1.27 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.662e-05/0.8995, allocations: 3.938 kB / 1.27 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.8997, allocations: 19.98 kB / 1.27 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.464e-05/0.8998, allocations: 31.92 kB / 1.27 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.425e-05/0.8999, allocations: 7.984 kB / 1.27 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.56e-05/0.9, allocations: 19.92 kB / 1.27 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.477e-05/0.9, allocations: 11.98 kB / 1.27 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.468e-05/0.9001, allocations: 0 / 1.27 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.633e-05/0.9001, allocations: 11.98 kB / 1.27 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.579e-05/0.9001, allocations: 7.938 kB / 1.27 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.138e-05/0.9002, allocations: 19.92 kB / 1.27 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.9003, allocations: 33.72 kB / 1.271 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.9003, allocations: 0 / 1.271 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.803e-06/0.9003, allocations: 4 kB / 1.271 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.17e-05/0.9003, allocations: 0 / 1.271 GB, free: 3.34 MB / 0.9669 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.0005267/0.9008, allocations: 343.4 kB / 1.271 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.9009, allocations: 8.031 kB / 1.271 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.438e-05/0.9009, allocations: 42.67 kB / 1.271 GB, free: 2.895 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.243e-05/0.901, allocations: 8.891 kB / 1.271 GB, free: 2.887 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.9011, allocations: 164.4 kB / 1.271 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.9011, allocations: 384 / 1.271 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.525e-05/0.9011, allocations: 4.375 kB / 1.271 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001984/0.9013, allocations: 58.22 kB / 1.271 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.9014, allocations: 7.938 kB / 1.271 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.798e-06/0.9014, allocations: 0 / 1.271 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.9014, allocations: 0 / 1.271 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00018/0.9016, allocations: 39.95 kB / 1.271 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000411/0.902, allocations: 276.8 kB / 1.271 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003321/0.9023, allocations: 58.52 kB / 1.271 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.672e-05/0.9024, allocations: 20.91 kB / 1.272 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001396/0.9025, allocations: 89.09 kB / 1.272 GB, free: 2.059 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.9026, allocations: 38.5 kB / 1.272 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.9026, allocations: 0 / 1.272 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0004061/0.903, allocations: 93.56 kB / 1.272 GB, free: 1.914 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.903, allocations: 51.41 kB / 1.272 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.9032, allocations: 101.9 kB / 1.272 GB, free: 1.742 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.118e-05/0.9032, allocations: 25.7 kB / 1.272 GB, free: 1.711 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.282e-05/0.9033, allocations: 92.12 kB / 1.272 GB, free: 1.617 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.9033, allocations: 7.891 kB / 1.272 GB, free: 1.609 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.227e-05/0.9033, allocations: 13.72 kB / 1.272 GB, free: 1.59 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001667/0.9035, allocations: 318.8 kB / 1.272 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.172e-05/0.9036, allocations: 15.97 kB / 1.272 GB, free: 1.254 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.299e-05/0.9037, allocations: 19.98 kB / 1.272 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.9039, allocations: 60.69 kB / 1.272 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.9039, allocations: 0 / 1.272 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002189/0.9041, allocations: 77.61 kB / 1.272 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.9041, allocations: 4 kB / 1.272 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.9041, allocations: 0 / 1.272 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.9041, allocations: 4 kB / 1.272 GB, free: 1.082 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.2e-05/0.9042, allocations: 7.984 kB / 1.272 GB, free: 1.074 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.9042, allocations: 8 kB / 1.272 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.709e-05/0.9043, allocations: 7.984 kB / 1.273 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.9043, allocations: 3.984 kB / 1.273 GB, free: 1.055 MB / 0.9669 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 9.267e-05/0.9044, allocations: 109.8 kB / 1.273 GB, free: 0.9375 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.79e-05/0.9044, allocations: 4 kB / 1.273 GB, free: 0.9336 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002692/0.9047, allocations: 85.08 kB / 1.273 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.9047, allocations: 4 kB / 1.273 GB, free: 0.8359 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.9047, allocations: 0 / 1.273 GB, free: 0.8359 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.9047, allocations: 3.984 kB / 1.273 GB, free: 0.832 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.9049, allocations: 165.6 kB / 1.273 GB, free: 0.6211 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.9049, allocations: 0 / 1.273 GB, free: 0.6211 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.576e-05/0.905, allocations: 12.55 kB / 1.273 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.905, allocations: 0 / 1.273 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.905, allocations: 0 / 1.273 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.905, allocations: 0 / 1.273 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.905, allocations: 7.984 kB / 1.273 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002778/0.9052, allocations: 179.4 kB / 1.273 GB, free: 420 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.497e-05/0.9053, allocations: 85.06 kB / 1.273 GB, free: 316 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.9053, allocations: 0 / 1.273 GB, free: 316 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.507e-05/0.9054, allocations: 7.984 kB / 1.273 GB, free: 308 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.487e-05/0.9055, allocations: 7.984 kB / 1.273 GB, free: 300 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-06/0.9055, allocations: 4 kB / 1.273 GB, free: 296 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.712e-05/0.9055, allocations: 83.28 kB / 1.273 GB, free: 212 kB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.9055, allocations: 3.938 kB / 1.273 GB, free: 208 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002234/0.9057, allocations: 11.88 kB / 1.273 GB, free: 196 kB / 0.9669 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.0006907/0.9064, allocations: 0.7129 MB / 1.274 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000238/0.9067, allocations: 43.89 kB / 1.274 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.9067, allocations: 4 kB / 1.274 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.474e-05/0.9068, allocations: 19.97 kB / 1.274 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.9071, allocations: 8 kB / 1.274 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004878/0.9076, allocations: 139.1 kB / 1.274 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.9079, allocations: 0.6807 MB / 1.275 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.565e-05/0.9079, allocations: 8 kB / 1.275 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.105e-05/0.908, allocations: 15.44 kB / 1.275 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of SimCode: time 3.61e-07/0.908, allocations: 3.938 kB / 1.275 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02498/0.9329, allocations: 1.587 MB / 1.276 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.221/9.154, allocations: 5.812 kB / 1.276 GB, free: 12.95 MB / 0.9825 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 15.306703796144575]