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) 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 11.1.0-maint.11.x/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 108.6 kB / 15.73 MB, free: 76 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.001864/0.001864, allocations: 187.4 kB / 16.66 MB, free: 6.59 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.698/2.698, allocations: 469.8 MB / 0.7425 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 59.91 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2761, allocations: 159.1 MB / 1.22 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002309/0.2785, allocations: 1.523 MB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.000308/0.2788, allocations: 119.6 kB / 1.222 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.833e-05/0.2788, allocations: 0 / 1.222 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.337e-05/0.2789, allocations: 4 kB / 1.222 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.238e-05/0.2789, allocations: 3.938 kB / 1.222 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001848/0.2791, allocations: 23.97 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.105e-05/0.2792, allocations: 35.91 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.359e-05/0.2793, allocations: 4 kB / 1.222 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.933e-05/0.2793, allocations: 15.92 kB / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.527e-05/0.2794, allocations: 15.92 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.2794, allocations: 4 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.198e-05/0.2794, allocations: 16 kB / 1.222 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.422e-05/0.2795, allocations: 4 kB / 1.222 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.619e-05/0.2795, allocations: 19.91 kB / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.2796, allocations: 31.84 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2796, allocations: 0 / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.352e-06/0.2796, allocations: 0 / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.695e-06/0.2796, allocations: 0 / 1.222 GB, free: 12.48 MB / 0.9825 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.0004254/0.28, allocations: 347.4 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.2801, allocations: 8.031 kB / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.973e-05/0.2801, allocations: 38.75 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.326e-05/0.2801, allocations: 8.891 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.2803, allocations: 164.4 kB / 1.222 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.2803, allocations: 384 / 1.222 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.394e-06/0.2803, allocations: 384 / 1.222 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001673/0.2805, allocations: 62.22 kB / 1.223 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.2805, allocations: 3.938 kB / 1.223 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.2805, allocations: 0 / 1.223 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.2805, allocations: 0 / 1.223 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.2807, allocations: 47.89 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003258/0.281, allocations: 276.8 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002865/0.2813, allocations: 50.55 kB / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.898e-05/0.2814, allocations: 28.89 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001083/0.2815, allocations: 85.11 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.2816, allocations: 42.5 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 2.746e-06/0.2816, allocations: 0 / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0003574/0.282, allocations: 97.55 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.282, allocations: 51.41 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.897e-05/0.2821, allocations: 109.8 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.2821, allocations: 29.7 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.297e-05/0.2821, allocations: 80.14 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.305e-05/0.2822, allocations: 7.953 kB / 1.223 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.098e-05/0.2822, allocations: 13.72 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.2823, allocations: 318.8 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.745e-05/0.2824, allocations: 15.98 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.427e-05/0.2825, allocations: 27.92 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001681/0.2827, allocations: 48.75 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.2827, allocations: 0 / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000209/0.2829, allocations: 77.59 kB / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.2829, allocations: 6.031 kB / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.2829, allocations: 0 / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.207e-06/0.2829, allocations: 0 / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.538e-05/0.283, allocations: 19.98 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.047e-06/0.283, allocations: 0 / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.087e-05/0.2831, allocations: 4 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.2831, allocations: 7.984 kB / 1.224 GB, free: 10.19 MB / 0.9825 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 8.425e-05/0.2832, allocations: 117.7 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.348e-05/0.2832, allocations: 4 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002434/0.2835, allocations: 85.14 kB / 1.224 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2835, allocations: 0 / 1.224 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2835, allocations: 0 / 1.224 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.2835, allocations: 0 / 1.224 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001589/0.2837, allocations: 165.6 kB / 1.224 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.2837, allocations: 0 / 1.224 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.99e-05/0.2837, allocations: 11.98 kB / 1.224 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.2837, allocations: 0 / 1.224 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-06/0.2838, allocations: 0 / 1.224 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.2838, allocations: 0 / 1.224 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2838, allocations: 4 kB / 1.224 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002558/0.284, allocations: 176 kB / 1.224 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.335e-05/0.2841, allocations: 92.98 kB / 1.225 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.071e-05/0.2841, allocations: 0 / 1.225 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.817e-05/0.2842, allocations: 4 kB / 1.225 GB, free: 9.441 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/0.2842, allocations: 3.984 kB / 1.225 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-06/0.2842, allocations: 12 kB / 1.225 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.21e-05/0.2843, allocations: 83.31 kB / 1.225 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2843, allocations: 4 kB / 1.225 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002045/0.2845, allocations: 4 kB / 1.225 GB, free: 9.336 MB / 0.9825 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.0005584/0.2851, allocations: 0.7245 MB / 1.225 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002142/0.2853, allocations: 47.94 kB / 1.225 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.2853, allocations: 0 / 1.225 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.608e-05/0.2854, allocations: 23.98 kB / 1.225 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.2856, allocations: 7.938 kB / 1.225 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003642/0.286, allocations: 146.9 kB / 1.226 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.2863, allocations: 0.6807 MB / 1.226 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.44e-05/0.2863, allocations: 0 / 1.226 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.277e-05/0.2863, allocations: 15.44 kB / 1.226 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of SimCode: time 2.11e-07/0.2863, allocations: 0 / 1.226 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7847/1.071, allocations: 1.577 MB / 1.228 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.797/10.87, allocations: 0 / 1.228 GB, free: 6.086 MB / 0.9825 GB (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 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) 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/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches