Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.FallingFactorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_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.004728/0.004728, allocations: 99.48 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 192.9 kB / 16.67 MB, free: 5.977 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.288/1.288, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.403/2.403, allocations: 437.1 MB / 0.7106 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 63.91 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.247, allocations: 151.6 MB / 1.166 GB, free: 7.301 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002274/0.2494, allocations: 1.548 MB / 1.168 GB, free: 5.73 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003074/0.2497, allocations: 124.5 kB / 1.168 GB, free: 5.605 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.711e-05/0.2497, allocations: 3.938 kB / 1.168 GB, free: 5.602 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.385e-05/0.2497, allocations: 3.938 kB / 1.168 GB, free: 5.598 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.011e-05/0.2498, allocations: 7.938 kB / 1.168 GB, free: 5.59 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002251/0.25, allocations: 35.89 kB / 1.168 GB, free: 5.555 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.356e-05/0.2501, allocations: 27.92 kB / 1.168 GB, free: 5.527 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.015e-05/0.2502, allocations: 19.98 kB / 1.168 GB, free: 5.508 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 2.49e-05/0.2502, allocations: 11.94 kB / 1.168 GB, free: 5.496 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.66e-05/0.2503, allocations: 27.91 kB / 1.168 GB, free: 5.469 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.256e-05/0.2503, allocations: 7.938 kB / 1.168 GB, free: 5.461 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.509e-05/0.2503, allocations: 23.97 kB / 1.168 GB, free: 5.438 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.637e-05/0.2504, allocations: 4 kB / 1.168 GB, free: 5.434 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.445e-05/0.2504, allocations: 11.94 kB / 1.168 GB, free: 5.422 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.2505, allocations: 52.02 kB / 1.168 GB, free: 5.371 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2505, allocations: 4 kB / 1.168 GB, free: 5.367 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.042e-06/0.2505, allocations: 0 / 1.168 GB, free: 5.367 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.686e-06/0.2505, allocations: 4 kB / 1.168 GB, free: 5.363 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004157/0.251, allocations: 351.3 kB / 1.168 GB, free: 4.969 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 2.874e-05/0.251, allocations: 8.031 kB / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.271e-05/0.251, allocations: 38.73 kB / 1.168 GB, free: 4.914 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.975e-05/0.2511, allocations: 0.9375 kB / 1.168 GB, free: 4.914 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.2512, allocations: 172.3 kB / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.2512, allocations: 384 / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.124e-05/0.2512, allocations: 4.375 kB / 1.169 GB, free: 4.703 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.2514, allocations: 70.16 kB / 1.169 GB, free: 4.629 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.2514, allocations: 3.938 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.2514, allocations: 0 / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.2514, allocations: 0 / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001704/0.2516, allocations: 43.95 kB / 1.169 GB, free: 4.582 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003374/0.2519, allocations: 280.8 kB / 1.169 GB, free: 4.258 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002769/0.2522, allocations: 66.47 kB / 1.169 GB, free: 4.184 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.113e-05/0.2523, allocations: 24.91 kB / 1.169 GB, free: 4.156 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000269/0.2526, allocations: 401.5 kB / 1.169 GB, free: 3.672 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.2526, allocations: 30.56 kB / 1.169 GB, free: 3.633 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.2526, allocations: 0 / 1.169 GB, free: 3.633 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003483/0.253, allocations: 105.6 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/0.253, allocations: 55.34 kB / 1.17 GB, free: 3.457 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.771e-05/0.2531, allocations: 109.8 kB / 1.17 GB, free: 3.34 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.2531, allocations: 29.7 kB / 1.17 GB, free: 3.305 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.279e-05/0.2532, allocations: 84.08 kB / 1.17 GB, free: 3.219 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.36e-05/0.2532, allocations: 11.95 kB / 1.17 GB, free: 3.207 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.251e-05/0.2532, allocations: 13.72 kB / 1.17 GB, free: 3.188 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.2534, allocations: 326.8 kB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.082e-05/0.2535, allocations: 15.92 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.118e-05/0.2535, allocations: 23.97 kB / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001594/0.2537, allocations: 44.83 kB / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2537, allocations: 0 / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002064/0.2539, allocations: 89.53 kB / 1.17 GB, free: 2.68 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 9.438e-06/0.2539, allocations: 4 kB / 1.17 GB, free: 2.676 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.2539, allocations: 0 / 1.17 GB, free: 2.676 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.254, allocations: 0 / 1.17 GB, free: 2.676 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.288e-05/0.254, allocations: 11.98 kB / 1.17 GB, free: 2.664 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.586e-06/0.254, allocations: 0 / 1.17 GB, free: 2.664 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.45e-05/0.2541, allocations: 8 kB / 1.17 GB, free: 2.656 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.2541, allocations: 3.984 kB / 1.17 GB, free: 2.652 MB / 0.92 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 (falFac.y,rea2Int.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 7.724e-05/0.2542, allocations: 121.7 kB / 1.17 GB, free: 2.523 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.146e-05/0.2542, allocations: 0 / 1.17 GB, free: 2.523 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002418/0.2545, allocations: 85.86 kB / 1.171 GB, free: 2.43 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.2545, allocations: 0 / 1.171 GB, free: 2.43 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.2545, allocations: 3.938 kB / 1.171 GB, free: 2.426 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.2545, allocations: 0 / 1.171 GB, free: 2.426 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.2547, allocations: 169.6 kB / 1.171 GB, free: 2.211 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.2547, allocations: 4 kB / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.618e-05/0.2548, allocations: 11.98 kB / 1.171 GB, free: 2.195 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.2548, allocations: 0 / 1.171 GB, free: 2.195 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.2548, allocations: 4 kB / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2548, allocations: 0 / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2548, allocations: 3.984 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002502/0.255, allocations: 179.4 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.246e-05/0.2551, allocations: 77.11 kB / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.116e-05/0.2551, allocations: 0 / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.78e-05/0.2552, allocations: 7.984 kB / 1.171 GB, free: 1.895 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.973e-05/0.2552, allocations: 12.41 kB / 1.171 GB, free: 1.883 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.2552, allocations: 0 / 1.171 GB, free: 1.883 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.689e-05/0.2553, allocations: 91.22 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2553, allocations: 3.938 kB / 1.171 GB, free: 1.789 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002034/0.2555, allocations: 8 kB / 1.171 GB, free: 1.781 MB / 0.92 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 (rea2Int.y,falFac.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.0005445/0.2561, allocations: 0.7202 MB / 1.172 GB, free: 1.035 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002084/0.2563, allocations: 43.95 kB / 1.172 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2563, allocations: 4 kB / 1.172 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.753e-05/0.2564, allocations: 27.91 kB / 1.172 GB, free: 0.9609 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.2566, allocations: 11.94 kB / 1.172 GB, free: 0.9492 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.2579, allocations: 1.276 MB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002566/0.2582, allocations: 0.6807 MB / 1.174 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.699e-05/0.2582, allocations: 8 kB / 1.174 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.197e-05/0.2583, allocations: 11.44 kB / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of SimCode: time 2.61e-07/0.2583, allocations: 4 kB / 1.174 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.711/4.97, allocations: 1.7 MB / 1.176 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/16.05, allocations: 19.94 kB / 1.176 GB, free: 13.23 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches