Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) 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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Factorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_Factorial",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.001355/0.001355, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001677/0.001677, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.355/1.355, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.497/2.497, allocations: 437 MB / 0.7099 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001547, allocations: 67.89 kB / 0.8687 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6107/0.6123, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002681/0.615, allocations: 1.579 MB / 1.018 GB, free: 1.176 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003648/0.6154, allocations: 124.5 kB / 1.018 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.018e-05/0.6154, allocations: 8 kB / 1.018 GB, free: 1.043 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.43e-05/0.6155, allocations: 3.938 kB / 1.018 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.771e-05/0.6155, allocations: 0 / 1.018 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001765/0.6157, allocations: 11.98 kB / 1.018 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.833e-05/0.6158, allocations: 31.91 kB / 1.018 GB, free: 0.9961 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.057e-05/0.6158, allocations: 8 kB / 1.018 GB, free: 0.9883 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.233e-05/0.6159, allocations: 15.92 kB / 1.018 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.037e-05/0.6159, allocations: 7.984 kB / 1.018 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.616, allocations: 8 kB / 1.018 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.383e-05/0.616, allocations: 11.94 kB / 1.018 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.48e-05/0.616, allocations: 8 kB / 1.018 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.018e-05/0.6161, allocations: 11.91 kB / 1.018 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.415e-05/0.6162, allocations: 31.91 kB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.6162, allocations: 0 / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of FrontEnd: time 8.12e-07/0.6162, allocations: 4 kB / 1.019 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.246e-06/0.6162, allocations: 0 / 1.019 GB, free: 0.8906 MB / 0.7637 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.0003899/0.6166, allocations: 349.7 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.6166, allocations: 12.03 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.19e-05/0.6167, allocations: 34.75 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.614e-05/0.6167, allocations: 8.844 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.642e-05/0.6168, allocations: 164.3 kB / 1.019 GB, free: 244 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.6168, allocations: 384 / 1.019 GB, free: 244 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.6168, allocations: 4.375 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001711/0.617, allocations: 58.22 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.762e-06/0.617, allocations: 3.938 kB / 1.019 GB, free: 172 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.814e-06/0.617, allocations: 4 kB / 1.019 GB, free: 168 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.6171, allocations: 4 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001725/0.6172, allocations: 47.83 kB / 1.019 GB, free: 116 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003243/0.6176, allocations: 264.9 kB / 1.019 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.6179, allocations: 58.59 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.201e-05/0.618, allocations: 32.83 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.78e-05/0.6181, allocations: 81.11 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.703e-05/0.6181, allocations: 30.56 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 2.365e-06/0.6181, allocations: 0 / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003567/0.6185, allocations: 97.66 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.907e-05/0.6185, allocations: 59.41 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.247e-05/0.6186, allocations: 101.8 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.6186, allocations: 29.69 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.847e-05/0.6187, allocations: 84.14 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.551e-05/0.6187, allocations: 11.84 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/0.6187, allocations: 13.72 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.077e-05/0.6188, allocations: 318.8 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.311e-05/0.6189, allocations: 23.98 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.575e-05/0.619, allocations: 11.98 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.6192, allocations: 56.69 kB / 1.02 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.6192, allocations: 0 / 1.02 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002045/0.6194, allocations: 69.66 kB / 1.02 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.6194, allocations: 9.562 kB / 1.02 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.6194, allocations: 7.984 kB / 1.02 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.6194, allocations: 0 / 1.02 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.712e-05/0.6195, allocations: 8 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.6195, allocations: 3.984 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.6e-05/0.6196, allocations: 4 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.6196, allocations: 0 / 1.021 GB, free: 14.61 MB / 0.7794 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 6.83e-05/0.6197, allocations: 118.3 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.741e-05/0.6197, allocations: 7.891 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002369/0.6199, allocations: 85.08 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.62, allocations: 4 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.62, allocations: 4 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-06/0.62, allocations: 0 / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.6201, allocations: 161.6 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.6201, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.955e-05/0.6202, allocations: 8 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.6202, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.6202, allocations: 15.98 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.6202, allocations: 0 / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.6202, allocations: 0 / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002374/0.6205, allocations: 171.4 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.022e-05/0.6205, allocations: 81.05 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.6205, allocations: 7.922 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.263e-05/0.6206, allocations: 8 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.069e-05/0.6207, allocations: 11.98 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-06/0.6207, allocations: 432 / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.132e-05/0.6207, allocations: 83.27 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.292e-06/0.6207, allocations: 0 / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002225/0.621, allocations: 11.94 kB / 1.021 GB, free: 13.75 MB / 0.7794 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.0004879/0.6215, allocations: 0.7162 MB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002093/0.6217, allocations: 43.94 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.6217, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.388e-05/0.6218, allocations: 23.98 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002438/0.622, allocations: 12 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003742/0.6224, allocations: 137.2 kB / 1.022 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001925/0.6226, allocations: 0.677 MB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.212e-05/0.6227, allocations: 7.938 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.334e-05/0.6227, allocations: 11.44 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of SimCode: time 3.3e-07/0.6227, allocations: 8 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01051/0.6332, allocations: 1.346 MB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001922/0.6335, allocations: 203 kB / 1.024 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.635/2.269, allocations: 0 / 1.024 GB, free: 10.5 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches