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.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.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.001269/0.001269, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001278/0.001278, allocations: 192 kB / 16.25 MB, free: 6.637 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.326/1.326, allocations: 222.9 MB / 239.9 MB, free: 4.504 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.447/2.447, allocations: 437 MB / 0.7101 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 67.91 kB / 0.8688 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4705/0.472, allocations: 151.6 MB / 1.017 GB, free: 2.68 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002118/0.4741, allocations: 1.579 MB / 1.018 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002695/0.4744, allocations: 120.5 kB / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.535e-05/0.4744, allocations: 0 / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.622e-05/0.4745, allocations: 0 / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.641e-05/0.4745, allocations: 3.938 kB / 1.019 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000184/0.4747, allocations: 27.97 kB / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.421e-05/0.4748, allocations: 27.92 kB / 1.019 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.243e-05/0.4748, allocations: 12 kB / 1.019 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.494e-05/0.4749, allocations: 15.92 kB / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.851e-05/0.4749, allocations: 19.91 kB / 1.019 GB, free: 0.8633 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.022e-05/0.4749, allocations: 4 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 4.585e-05/0.475, allocations: 12 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 9.107e-06/0.475, allocations: 0 / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.363e-05/0.475, allocations: 15.92 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.653e-05/0.4751, allocations: 31.89 kB / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.4751, allocations: 0 / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.322e-06/0.4751, allocations: 0 / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.4751, allocations: 0 / 1.019 GB, free: 0.8008 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.0003651/0.4755, allocations: 353.7 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.4756, allocations: 12.03 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.638e-05/0.4756, allocations: 34.75 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.316e-05/0.4756, allocations: 4.844 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.165e-05/0.4757, allocations: 168.3 kB / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.4757, allocations: 384 / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-06/0.4757, allocations: 384 / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001626/0.4759, allocations: 70.16 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.4759, allocations: 3.938 kB / 1.019 GB, free: 68 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-06/0.4759, allocations: 4 kB / 1.019 GB, free: 64 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.4759, allocations: 0 / 1.019 GB, free: 64 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/0.4761, allocations: 43.95 kB / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002923/0.4764, allocations: 260.9 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.4767, allocations: 62.48 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.077e-05/0.4768, allocations: 32.89 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.731e-05/0.4769, allocations: 81.11 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.586e-05/0.4769, allocations: 30.56 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.4769, allocations: 0 / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003285/0.4773, allocations: 97.53 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.615e-05/0.4773, allocations: 55.34 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.317e-05/0.4774, allocations: 105.8 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.4774, allocations: 25.7 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.311e-05/0.4774, allocations: 92.02 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.168e-05/0.4774, allocations: 3.906 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.188e-05/0.4775, allocations: 21.72 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.326e-05/0.4775, allocations: 318.8 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.397e-05/0.4776, allocations: 15.98 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.366e-05/0.4777, allocations: 19.97 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.4779, allocations: 44.77 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.4779, allocations: 0 / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000193/0.4781, allocations: 86.05 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.4781, allocations: 5.406 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-06/0.4781, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.007e-06/0.4781, allocations: 4.047 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.428e-05/0.4782, allocations: 11.97 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.4782, allocations: 4 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.169e-05/0.4783, allocations: 4 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.139e-06/0.4783, allocations: 0 / 1.021 GB, free: 14.52 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.054e-05/0.4783, allocations: 122.3 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.384e-05/0.4784, allocations: 4 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002238/0.4786, allocations: 81.05 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.4786, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.4786, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.4786, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001331/0.4788, allocations: 169.5 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.4788, allocations: 4 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.253e-05/0.4788, allocations: 15.98 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.4789, allocations: 0 / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.271e-06/0.4789, allocations: 0 / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.4789, allocations: 0 / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4789, allocations: 4 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002197/0.4791, allocations: 167.5 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.048e-05/0.4791, allocations: 93.03 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.165e-05/0.4792, allocations: 0 / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.968e-05/0.4792, allocations: 4 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/0.4793, allocations: 7.984 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.842e-06/0.4793, allocations: 4 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.846e-05/0.4793, allocations: 83.22 kB / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.4793, allocations: 0 / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002088/0.4795, allocations: 4 kB / 1.021 GB, free: 13.67 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.0004342/0.48, allocations: 0.7201 MB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001943/0.4802, allocations: 47.94 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4802, allocations: 7.938 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.897e-05/0.4803, allocations: 27.92 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002191/0.4805, allocations: 0 / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003444/0.4809, allocations: 147.7 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00017/0.4811, allocations: 0.6768 MB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.961e-05/0.4811, allocations: 8 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.937e-05/0.4811, allocations: 7.438 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of SimCode: time 2.01e-07/0.4811, allocations: 0 / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8612/1.342, allocations: 1.419 MB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002299/1.343, allocations: 194.1 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/3.13, allocations: 0 / 1.025 GB, free: 10.36 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