Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007991/0.0007991, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008668/0.0008668, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9373/0.9373, allocations: 177.1 MB / 202.8 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.759/1.759, allocations: 377.8 MB / 0.6221 GB, free: 8.672 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 6.71e-07/6.71e-07, allocations: 0 / 0.981 GB, free: 2.602 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.041e-05/1.108e-05, allocations: 2.281 kB / 0.981 GB, free: 2.598 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001682/0.001694, allocations: 1.539 MB / 0.9825 GB, free: 1.047 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0001874/0.001881, allocations: 127.5 kB / 0.9826 GB, free: 0.9219 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.745e-05/0.001898, allocations: 0 / 0.9826 GB, free: 0.9219 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 1.432e-05/0.001913, allocations: 3.938 kB / 0.9826 GB, free: 0.918 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 2.245e-05/0.001935, allocations: 7.922 kB / 0.9826 GB, free: 0.9102 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001151/0.00205, allocations: 23.92 kB / 0.9826 GB, free: 0.8867 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 4.149e-05/0.002092, allocations: 27.92 kB / 0.9826 GB, free: 0.8594 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 4.775e-05/0.00214, allocations: 11.98 kB / 0.9827 GB, free: 0.8477 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 2.598e-05/0.002166, allocations: 15.97 kB / 0.9827 GB, free: 0.832 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 2.615e-05/0.002192, allocations: 15.98 kB / 0.9827 GB, free: 0.8164 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 8.566e-06/0.0022, allocations: 4 kB / 0.9827 GB, free: 0.8125 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 3.028e-05/0.002231, allocations: 8 kB / 0.9827 GB, free: 0.8047 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 9.668e-06/0.00224, allocations: 11.92 kB / 0.9827 GB, free: 0.793 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.142e-05/0.002252, allocations: 8 kB / 0.9827 GB, free: 0.7852 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 6.556e-05/0.002317, allocations: 39.88 kB / 0.9828 GB, free: 0.7461 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.322e-06/0.002319, allocations: 0 / 0.9828 GB, free: 0.7461 MB / 0.9323 GB Notification: Performance of FrontEnd: time 6.11e-07/0.002319, allocations: 3.938 kB / 0.9828 GB, free: 0.7422 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 2.886e-06/0.002322, allocations: 4 kB / 0.9828 GB, free: 0.7383 MB / 0.9323 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.0002128/0.002535, allocations: 262.3 kB / 0.983 GB, free: 460 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.002564, allocations: 12.03 kB / 0.983 GB, free: 448 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.871e-05/0.002583, allocations: 38.73 kB / 0.9831 GB, free: 400 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.447e-05/0.002597, allocations: 8.891 kB / 0.9831 GB, free: 392 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.565e-05/0.002643, allocations: 105.8 kB / 0.9832 GB, free: 260 kB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.002654, allocations: 8.375 kB / 0.9832 GB, free: 252 kB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.142e-06/0.00266, allocations: 4.312 kB / 0.9832 GB, free: 248 kB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.705e-05/0.002747, allocations: 54.23 kB / 0.9832 GB, free: 188 kB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.226e-06/0.00275, allocations: 192 / 0.9832 GB, free: 188 kB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.71e-06/0.002756, allocations: 4.375 kB / 0.9832 GB, free: 184 kB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-06/0.002759, allocations: 4.125 kB / 0.9832 GB, free: 180 kB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.622e-05/0.002846, allocations: 43.95 kB / 0.9833 GB, free: 136 kB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002/0.003046, allocations: 232 kB / 0.9835 GB, free: 15.86 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001713/0.003217, allocations: 62.42 kB / 0.9836 GB, free: 15.79 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.545e-05/0.003262, allocations: 28.89 kB / 0.9836 GB, free: 15.76 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.21e-05/0.003304, allocations: 7.938 kB / 0.9836 GB, free: 15.75 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.156e-05/0.003316, allocations: 30.56 kB / 0.9836 GB, free: 15.71 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 8.21e-07/0.003317, allocations: 4 kB / 0.9836 GB, free: 15.71 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0001748/0.003492, allocations: 89.62 kB / 0.9837 GB, free: 15.62 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.042e-05/0.003512, allocations: 59.34 kB / 0.9838 GB, free: 15.55 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.784e-05/0.00355, allocations: 101.8 kB / 0.9839 GB, free: 15.44 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 8.496e-06/0.003558, allocations: 25.7 kB / 0.9839 GB, free: 15.41 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 2.528e-05/0.003584, allocations: 84.14 kB / 0.984 GB, free: 15.32 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 8.516e-06/0.003592, allocations: 3.953 kB / 0.984 GB, free: 15.32 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.473e-05/0.003617, allocations: 21.7 kB / 0.984 GB, free: 15.29 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 6.131e-05/0.003678, allocations: 318.8 kB / 0.9843 GB, free: 14.97 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.904e-05/0.003717, allocations: 15.98 kB / 0.9843 GB, free: 14.95 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.771e-05/0.003755, allocations: 19.97 kB / 0.9843 GB, free: 14.93 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.878e-05/0.003834, allocations: 44.83 kB / 0.9844 GB, free: 14.89 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.01e-07/0.003835, allocations: 0 / 0.9844 GB, free: 14.89 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000105/0.003939, allocations: 89.88 kB / 0.9845 GB, free: 14.79 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.764e-06/0.003947, allocations: 10.5 kB / 0.9845 GB, free: 14.79 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-06/0.00395, allocations: 4 kB / 0.9845 GB, free: 14.78 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.899e-06/0.003959, allocations: 0 / 0.9845 GB, free: 14.78 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.586e-05/0.003995, allocations: 11.98 kB / 0.9845 GB, free: 14.77 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.013e-06/0.003997, allocations: 0 / 0.9845 GB, free: 14.77 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.386e-05/0.004021, allocations: 7.938 kB / 0.9845 GB, free: 14.76 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.817e-06/0.004025, allocations: 3.984 kB / 0.9845 GB, free: 14.76 MB / 0.948 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 0.0001635/0.004188, allocations: 117.9 kB / 0.9846 GB, free: 14.63 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.202e-05/0.0042, allocations: 3.938 kB / 0.9846 GB, free: 14.63 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.004321, allocations: 81.33 kB / 0.9847 GB, free: 14.54 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.004323, allocations: 4 kB / 0.9847 GB, free: 14.54 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.004325, allocations: 0 / 0.9847 GB, free: 14.54 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.004326, allocations: 0 / 0.9847 GB, free: 14.54 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.692e-05/0.004413, allocations: 124.8 kB / 0.9848 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.004415, allocations: 8 kB / 0.9848 GB, free: 14.37 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.934e-05/0.004444, allocations: 15.86 kB / 0.9848 GB, free: 14.35 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.004446, allocations: 4 kB / 0.9848 GB, free: 14.35 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.16e-06/0.004451, allocations: 8 kB / 0.9849 GB, free: 14.34 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.004451, allocations: 0 / 0.9849 GB, free: 14.34 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-07/0.004452, allocations: 0 / 0.9849 GB, free: 14.34 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001205/0.004572, allocations: 167.5 kB / 0.985 GB, free: 14.16 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.442e-06/0.004579, allocations: 7.891 kB / 0.985 GB, free: 14.15 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.055e-06/0.004587, allocations: 4 kB / 0.985 GB, free: 14.15 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.964e-05/0.004626, allocations: 7.984 kB / 0.985 GB, free: 14.14 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.224e-05/0.004649, allocations: 3.938 kB / 0.985 GB, free: 14.14 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-06/0.004653, allocations: 11.98 kB / 0.985 GB, free: 14.12 MB / 0.948 GB Notification: Performance of sorting global known variables: time 1.954e-05/0.004673, allocations: 79.28 kB / 0.9851 GB, free: 14.05 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.004673, allocations: 0 / 0.9851 GB, free: 14.05 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001387/0.004811, allocations: 8 kB / 0.9851 GB, free: 14.04 MB / 0.948 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.0002947/0.005106, allocations: 0.7085 MB / 0.9858 GB, free: 13.3 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000103/0.005209, allocations: 43.95 kB / 0.9859 GB, free: 13.26 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 8.22e-07/0.00521, allocations: 0 / 0.9859 GB, free: 13.26 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.575e-05/0.005256, allocations: 35.84 kB / 0.9859 GB, free: 13.23 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001456/0.005401, allocations: 4 kB / 0.9859 GB, free: 13.22 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002357/0.005637, allocations: 141.7 kB / 0.986 GB, free: 13.05 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.191e-05/0.005669, allocations: 67.28 kB / 0.9861 GB, free: 12.96 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 1.591e-05/0.005685, allocations: 0 / 0.9861 GB, free: 12.96 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.553e-05/0.00571, allocations: 20.95 kB / 0.9861 GB, free: 12.94 MB / 0.948 GB Notification: Performance of SimCode: time 2.9e-07/0.005711, allocations: 4 kB / 0.9861 GB, free: 12.94 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01368/0.01939, allocations: 2.26 MB / 0.9883 GB, free: 10.8 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.807/6.826, allocations: 5.797 kB / 0.9883 GB, free: 10.8 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.884901658631861]