Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.21/1.21, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.109/2.109, allocations: 390.3 MB / 0.6647 GB, free: 264 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 67.89 kB / 0.8127 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5017/0.5028, allocations: 140.4 MB / 0.9497 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0015/0.5044, allocations: 0.5728 MB / 0.9503 GB, free: 8.789 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002079/0.5046, allocations: 53.7 kB / 0.9503 GB, free: 8.75 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.577e-05/0.5046, allocations: 0 / 0.9503 GB, free: 8.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.359e-05/0.5046, allocations: 0 / 0.9503 GB, free: 8.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.067e-06/0.5047, allocations: 0 / 0.9503 GB, free: 8.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002279/0.5049, allocations: 22.81 kB / 0.9504 GB, free: 8.734 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.829e-05/0.505, allocations: 35.28 kB / 0.9504 GB, free: 8.715 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.173e-05/0.505, allocations: 1.562 kB / 0.9504 GB, free: 8.715 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.596e-05/0.505, allocations: 14.52 kB / 0.9504 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.194e-05/0.5051, allocations: 13.95 kB / 0.9504 GB, free: 8.699 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.152e-05/0.5051, allocations: 1.344 kB / 0.9504 GB, free: 8.699 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.238e-05/0.5051, allocations: 15.8 kB / 0.9504 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.299e-05/0.5052, allocations: 17.92 kB / 0.9505 GB, free: 8.68 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.669e-05/0.5052, allocations: 15.61 kB / 0.9505 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.535e-05/0.5053, allocations: 32.7 kB / 0.9505 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.5053, allocations: 0 / 0.9505 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.273e-06/0.5053, allocations: 0 / 0.9505 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.5053, allocations: 0 / 0.9505 GB, free: 8.648 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0002062/0.5055, allocations: 336.9 kB / 0.9508 GB, free: 8.281 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.5055, allocations: 9.781 kB / 0.9508 GB, free: 8.281 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.384e-05/0.5056, allocations: 40.14 kB / 0.9509 GB, free: 8.234 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.334e-05/0.5056, allocations: 11.69 kB / 0.9509 GB, free: 8.227 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.185e-05/0.5056, allocations: 166.6 kB / 0.951 GB, free: 8.027 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.5057, allocations: 7.094 kB / 0.9511 GB, free: 8.023 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.5057, allocations: 7.5 kB / 0.9511 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001117/0.5058, allocations: 66.56 kB / 0.9511 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.5058, allocations: 4.938 kB / 0.9511 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.044e-06/0.5058, allocations: 0 / 0.9511 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.5058, allocations: 2.75 kB / 0.9511 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001094/0.5059, allocations: 98.28 kB / 0.9512 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001061/0.506, allocations: 176.8 kB / 0.9514 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.294e-05/0.5061, allocations: 82.77 kB / 0.9515 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.847e-05/0.5062, allocations: 31.59 kB / 0.9515 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001925/0.5064, allocations: 406.3 kB / 0.9519 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.497e-05/0.5064, allocations: 31.47 kB / 0.9519 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.112e-06/0.5064, allocations: 3.938 kB / 0.9519 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002008/0.5066, allocations: 114.4 kB / 0.952 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.482e-05/0.5066, allocations: 52.66 kB / 0.9521 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.628e-05/0.5067, allocations: 95.14 kB / 0.9522 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.5067, allocations: 29.7 kB / 0.9522 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.217e-06/0.5067, allocations: 81.23 kB / 0.9523 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.044e-05/0.5067, allocations: 27.17 kB / 0.9523 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/0.5068, allocations: 28.14 kB / 0.9523 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.565e-05/0.5068, allocations: 317.2 kB / 0.9526 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.336e-05/0.5068, allocations: 19.42 kB / 0.9527 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.92e-05/0.5069, allocations: 24.64 kB / 0.9527 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.039e-05/0.5069, allocations: 64.14 kB / 0.9527 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.507, allocations: 0 / 0.9527 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001097/0.5071, allocations: 89.89 kB / 0.9528 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/0.5071, allocations: 8.875 kB / 0.9528 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.5071, allocations: 3.938 kB / 0.9528 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.5071, allocations: 1.469 kB / 0.9528 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.487e-05/0.5072, allocations: 22.98 kB / 0.9529 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.5072, allocations: 1.438 kB / 0.9529 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.846e-05/0.5072, allocations: 9.281 kB / 0.9529 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-06/0.5072, allocations: 3.344 kB / 0.9529 GB, free: 6.266 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 7.757e-05/0.5073, allocations: 124.7 kB / 0.953 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.12e-05/0.5073, allocations: 5.406 kB / 0.953 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000172/0.5075, allocations: 126.9 kB / 0.9531 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.5075, allocations: 1.5 kB / 0.9531 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.5075, allocations: 0 / 0.9531 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.5075, allocations: 1.469 kB / 0.9531 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.183e-05/0.5076, allocations: 183.2 kB / 0.9533 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.5076, allocations: 0 / 0.9533 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.015e-05/0.5077, allocations: 18.08 kB / 0.9533 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.5077, allocations: 5 kB / 0.9533 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.5077, allocations: 6.125 kB / 0.9533 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.5077, allocations: 3.938 kB / 0.9533 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.5077, allocations: 1.156 kB / 0.9533 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.5078, allocations: 126 kB / 0.9534 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.478e-05/0.5079, allocations: 90.31 kB / 0.9535 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.131e-05/0.5079, allocations: 1.312 kB / 0.9535 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.426e-05/0.5079, allocations: 5.062 kB / 0.9535 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.131e-05/0.5079, allocations: 12.92 kB / 0.9536 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-06/0.5079, allocations: 1.688 kB / 0.9536 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.02e-05/0.508, allocations: 76.84 kB / 0.9536 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.508, allocations: 0 / 0.9536 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001846/0.5081, allocations: 13.69 kB / 0.9536 GB, free: 5.52 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0003087/0.5085, allocations: 0.6796 MB / 0.9543 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001263/0.5086, allocations: 61.53 kB / 0.9544 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.5086, allocations: 0 / 0.9544 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.53e-05/0.5087, allocations: 43.2 kB / 0.9544 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.5088, allocations: 7.359 kB / 0.9544 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002902/0.5091, allocations: 180.8 kB / 0.9546 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.439e-05/0.5092, allocations: 0.6851 MB / 0.9553 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.36e-05/0.5092, allocations: 39.12 kB / 0.9553 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.826e-05/0.5093, allocations: 21.14 kB / 0.9553 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.5093, allocations: 0 / 0.9553 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01585/0.5251, allocations: 1.526 MB / 0.9568 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.623/7.148, allocations: 8.031 kB / 0.9568 GB, free: 3.082 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches