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.005849/0.005849, allocations: 96.94 kB / 15.73 MB, free: 6.484 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.001583/0.001583, allocations: 192 kB / 16.67 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 4.301 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.427/2.427, allocations: 437.1 MB / 0.7106 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 75.86 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2497, allocations: 151.6 MB / 1.166 GB, free: 7.34 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002336/0.2521, allocations: 1.511 MB / 1.168 GB, free: 5.805 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003089/0.2524, allocations: 120.5 kB / 1.168 GB, free: 5.684 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.667e-05/0.2525, allocations: 7.938 kB / 1.168 GB, free: 5.676 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.179e-05/0.2525, allocations: 0 / 1.168 GB, free: 5.676 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.098e-05/0.2525, allocations: 3.938 kB / 1.168 GB, free: 5.672 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001739/0.2527, allocations: 19.97 kB / 1.168 GB, free: 5.652 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.397e-05/0.2528, allocations: 35.86 kB / 1.168 GB, free: 5.617 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 7.517e-05/0.2529, allocations: 11.98 kB / 1.168 GB, free: 5.605 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.037e-05/0.2529, allocations: 8 kB / 1.168 GB, free: 5.598 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.421e-05/0.253, allocations: 15.92 kB / 1.168 GB, free: 5.582 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.262e-05/0.253, allocations: 4 kB / 1.168 GB, free: 5.578 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 5.033e-05/0.253, allocations: 11.98 kB / 1.168 GB, free: 5.566 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.534e-05/0.2531, allocations: 11.98 kB / 1.168 GB, free: 5.555 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.479e-05/0.2531, allocations: 11.94 kB / 1.168 GB, free: 5.543 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001066/0.2532, allocations: 44.05 kB / 1.168 GB, free: 5.5 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.2532, allocations: 4 kB / 1.168 GB, free: 5.496 MB / 0.92 GB Notification: Performance of FrontEnd: time 9.52e-07/0.2532, allocations: 0 / 1.168 GB, free: 5.496 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.253e-06/0.2532, allocations: 0 / 1.168 GB, free: 5.496 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004194/0.2537, allocations: 343.4 kB / 1.168 GB, free: 5.109 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.2537, allocations: 8.031 kB / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.708e-05/0.2537, allocations: 42.73 kB / 1.168 GB, free: 5.051 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.297e-05/0.2538, allocations: 8.891 kB / 1.168 GB, free: 5.043 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.2539, allocations: 168.3 kB / 1.169 GB, free: 4.84 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.2539, allocations: 384 / 1.169 GB, free: 4.84 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.443e-06/0.2539, allocations: 8.375 kB / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.2541, allocations: 58.23 kB / 1.169 GB, free: 4.77 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.2541, allocations: 7.922 kB / 1.169 GB, free: 4.762 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.2541, allocations: 0 / 1.169 GB, free: 4.762 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.2541, allocations: 0 / 1.169 GB, free: 4.762 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.2543, allocations: 43.89 kB / 1.169 GB, free: 4.719 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003181/0.2546, allocations: 264.9 kB / 1.169 GB, free: 4.41 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000287/0.2549, allocations: 54.53 kB / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.602e-05/0.255, allocations: 24.91 kB / 1.169 GB, free: 4.32 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000105/0.2551, allocations: 81.09 kB / 1.169 GB, free: 4.223 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.2552, allocations: 42.5 kB / 1.169 GB, free: 4.172 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.2552, allocations: 4 kB / 1.169 GB, free: 4.168 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003505/0.2555, allocations: 89.59 kB / 1.169 GB, free: 4.074 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.2556, allocations: 59.33 kB / 1.169 GB, free: 4.004 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.377e-05/0.2557, allocations: 97.86 kB / 1.169 GB, free: 3.898 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.2557, allocations: 25.7 kB / 1.169 GB, free: 3.867 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.535e-05/0.2557, allocations: 84.14 kB / 1.169 GB, free: 3.781 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.2558, allocations: 15.94 kB / 1.169 GB, free: 3.766 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-05/0.2558, allocations: 13.72 kB / 1.169 GB, free: 3.746 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.2559, allocations: 314.8 kB / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.997e-05/0.256, allocations: 19.97 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.319e-05/0.2561, allocations: 19.92 kB / 1.17 GB, free: 3.391 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.2563, allocations: 53.22 kB / 1.17 GB, free: 3.336 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.2563, allocations: 4 kB / 1.17 GB, free: 3.332 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002034/0.2565, allocations: 69.64 kB / 1.17 GB, free: 3.258 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/0.2565, allocations: 8 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.2565, allocations: 0 / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.919e-06/0.2565, allocations: 3.938 kB / 1.17 GB, free: 3.246 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.556e-05/0.2566, allocations: 15.98 kB / 1.17 GB, free: 3.23 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.2566, allocations: 0 / 1.17 GB, free: 3.23 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.466e-05/0.2567, allocations: 11.94 kB / 1.17 GB, free: 3.219 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.129e-06/0.2567, allocations: 4 kB / 1.17 GB, free: 3.215 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 (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 7.941e-05/0.2568, allocations: 117.7 kB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.139e-05/0.2568, allocations: 0 / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002409/0.257, allocations: 85.14 kB / 1.17 GB, free: 3 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.2571, allocations: 0 / 1.17 GB, free: 3 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.2571, allocations: 0 / 1.17 GB, free: 3 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.2571, allocations: 4 kB / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001643/0.2572, allocations: 169.6 kB / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.2573, allocations: 0 / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.763e-05/0.2573, allocations: 7.984 kB / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-06/0.2573, allocations: 4 kB / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.2573, allocations: 0 / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2573, allocations: 0 / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2574, allocations: 0 / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002574/0.2576, allocations: 183.4 kB / 1.17 GB, free: 2.574 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.26e-05/0.2577, allocations: 85 kB / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.047e-05/0.2577, allocations: 0 / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.018e-05/0.2578, allocations: 7.984 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.351e-05/0.2578, allocations: 7.984 kB / 1.171 GB, free: 2.457 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.2578, allocations: 0 / 1.171 GB, free: 2.457 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.991e-05/0.2579, allocations: 83.28 kB / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2579, allocations: 0 / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002042/0.2581, allocations: 12 kB / 1.171 GB, free: 2.363 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 (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.0005665/0.2587, allocations: 0.7123 MB / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002128/0.2589, allocations: 43.95 kB / 1.171 GB, free: 1.578 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2589, allocations: 4 kB / 1.171 GB, free: 1.574 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.46e-05/0.259, allocations: 24.39 kB / 1.171 GB, free: 1.551 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/0.2592, allocations: 8 kB / 1.171 GB, free: 1.543 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003689/0.2596, allocations: 143 kB / 1.172 GB, free: 1.363 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00027/0.2599, allocations: 0.6729 MB / 1.172 GB, free: 0.6641 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 2.849e-05/0.2599, allocations: 11.98 kB / 1.172 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.424e-05/0.2599, allocations: 15.44 kB / 1.172 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of SimCode: time 2.4e-07/0.26, allocations: 0 / 1.172 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6115/0.8714, allocations: 1.586 MB / 1.174 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/11.49, allocations: 0 / 1.174 GB, free: 15.12 MB / 0.9356 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=400 --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