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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 102.7 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00178/0.00178, allocations: 192.6 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.633/2.633, allocations: 443.5 MB / 0.7287 GB, free: 13.26 MB / 0.5919 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 71.88 kB / 1.056 GB, free: 5.898 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9573/0.9593, allocations: 160.7 MB / 1.213 GB, free: 3.891 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003505/0.9628, allocations: 1.521 MB / 1.214 GB, free: 2.703 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0005016/0.9633, allocations: 133.2 kB / 1.215 GB, free: 2.598 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.348e-05/0.9634, allocations: 0 / 1.215 GB, free: 2.598 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.825e-05/0.9634, allocations: 5.031 kB / 1.215 GB, free: 2.594 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.275e-05/0.9635, allocations: 0 / 1.215 GB, free: 2.594 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003294/0.9638, allocations: 30.58 kB / 1.215 GB, free: 2.57 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001129/0.9639, allocations: 31.95 kB / 1.215 GB, free: 2.551 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.964, allocations: 6.688 kB / 1.215 GB, free: 2.547 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.978e-05/0.9641, allocations: 12.61 kB / 1.215 GB, free: 2.539 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.609e-05/0.9642, allocations: 17.39 kB / 1.215 GB, free: 2.527 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.916e-05/0.9642, allocations: 2.188 kB / 1.215 GB, free: 2.527 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.494e-05/0.9643, allocations: 10.72 kB / 1.215 GB, free: 2.523 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.041e-05/0.9643, allocations: 9.047 kB / 1.215 GB, free: 2.516 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.012e-05/0.9643, allocations: 15.33 kB / 1.215 GB, free: 2.504 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001649/0.9645, allocations: 30.27 kB / 1.215 GB, free: 2.484 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.9645, allocations: 0 / 1.215 GB, free: 2.484 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.204e-06/0.9645, allocations: 1.062 kB / 1.215 GB, free: 2.484 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.373e-06/0.9645, allocations: 4 kB / 1.215 GB, free: 2.48 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.0006148/0.9651, allocations: 351.1 kB / 1.215 GB, free: 2.102 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/0.9652, allocations: 10.81 kB / 1.215 GB, free: 2.102 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.556e-05/0.9652, allocations: 30.75 kB / 1.215 GB, free: 2.062 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.714e-05/0.9653, allocations: 7.516 kB / 1.215 GB, free: 2.059 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001778/0.9655, allocations: 165.7 kB / 1.215 GB, free: 1.859 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.9655, allocations: 1.25 kB / 1.215 GB, free: 1.859 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.832e-05/0.9655, allocations: 5.906 kB / 1.215 GB, free: 1.855 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.9657, allocations: 64.59 kB / 1.215 GB, free: 1.801 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.9657, allocations: 5 kB / 1.215 GB, free: 1.797 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.9658, allocations: 0 / 1.215 GB, free: 1.797 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.9658, allocations: 1.094 kB / 1.215 GB, free: 1.797 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002043/0.966, allocations: 45.48 kB / 1.215 GB, free: 1.773 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004567/0.9664, allocations: 266.8 kB / 1.216 GB, free: 1.477 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003408/0.9668, allocations: 60.52 kB / 1.216 GB, free: 1.43 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.842e-05/0.9669, allocations: 27.67 kB / 1.216 GB, free: 1.41 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001347/0.967, allocations: 80.45 kB / 1.216 GB, free: 1.316 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.967, allocations: 31.31 kB / 1.216 GB, free: 1.277 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.967, allocations: 4.625 kB / 1.216 GB, free: 1.273 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0004127/0.9674, allocations: 98.05 kB / 1.216 GB, free: 1.207 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.9675, allocations: 55.34 kB / 1.216 GB, free: 1.141 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.9676, allocations: 103.9 kB / 1.216 GB, free: 1.035 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.9676, allocations: 25.7 kB / 1.216 GB, free: 1.004 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.64e-05/0.9677, allocations: 85.36 kB / 1.216 GB, free: 0.918 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.9677, allocations: 5.016 kB / 1.216 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.819e-05/0.9678, allocations: 21.28 kB / 1.216 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000164/0.9679, allocations: 319.5 kB / 1.216 GB, free: 0.5703 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.538e-05/0.968, allocations: 19.45 kB / 1.217 GB, free: 0.5625 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.178e-05/0.9681, allocations: 18.16 kB / 1.217 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001708/0.9683, allocations: 51.59 kB / 1.217 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.9683, allocations: 0 / 1.217 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002322/0.9685, allocations: 83.55 kB / 1.217 GB, free: 472 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.9685, allocations: 5.125 kB / 1.217 GB, free: 472 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.9685, allocations: 1.062 kB / 1.217 GB, free: 472 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.9685, allocations: 0 / 1.217 GB, free: 472 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.376e-05/0.9686, allocations: 11.48 kB / 1.217 GB, free: 468 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.9686, allocations: 0.7188 kB / 1.217 GB, free: 468 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.891e-05/0.9687, allocations: 7.891 kB / 1.217 GB, free: 464 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/0.9687, allocations: 1.062 kB / 1.217 GB, free: 464 kB / 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 0.00011/0.9688, allocations: 124.1 kB / 1.217 GB, free: 332 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.431e-05/0.9688, allocations: 1.312 kB / 1.217 GB, free: 332 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002816/0.9691, allocations: 78.08 kB / 1.217 GB, free: 268 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.9691, allocations: 0.9688 kB / 1.217 GB, free: 268 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.9691, allocations: 5.062 kB / 1.217 GB, free: 264 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.9691, allocations: 0 / 1.217 GB, free: 264 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001991/0.9693, allocations: 168.1 kB / 1.217 GB, free: 52 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.9693, allocations: 0 / 1.217 GB, free: 52 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.241e-05/0.9694, allocations: 15.61 kB / 1.217 GB, free: 44 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.9694, allocations: 1.094 kB / 1.217 GB, free: 44 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.9694, allocations: 0 / 1.217 GB, free: 44 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.9694, allocations: 1.125 kB / 1.217 GB, free: 44 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.9694, allocations: 0 / 1.217 GB, free: 44 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003254/0.9698, allocations: 170.9 kB / 1.217 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.483e-05/0.9698, allocations: 86.17 kB / 1.217 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.9698, allocations: 5.156 kB / 1.217 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.355e-05/0.9699, allocations: 2.781 kB / 1.217 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.405e-05/0.97, allocations: 11.02 kB / 1.217 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-06/0.97, allocations: 1.094 kB / 1.217 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.614e-05/0.97, allocations: 78.56 kB / 1.217 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.97, allocations: 5.188 kB / 1.217 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002461/0.9703, allocations: 14.47 kB / 1.217 GB, free: 15.69 MB / 0.9356 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.0007499/0.971, allocations: 0.7135 MB / 1.218 GB, free: 14.99 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002607/0.9713, allocations: 56.88 kB / 1.218 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.9713, allocations: 0 / 1.218 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.9714, allocations: 22.3 kB / 1.218 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.9717, allocations: 9.062 kB / 1.218 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000585/0.9723, allocations: 147 kB / 1.218 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.9726, allocations: 0.6827 MB / 1.219 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.077e-05/0.9727, allocations: 6.156 kB / 1.219 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.101e-05/0.9727, allocations: 9.906 kB / 1.219 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of SimCode: time 5.71e-07/0.9727, allocations: 0 / 1.219 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02628/0.999, allocations: 1.582 MB / 1.221 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.099/10.1, allocations: 11.27 kB / 1.221 GB, free: 13.18 MB / 0.9356 GB " [Timeout remaining time 290] (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 --stepSize=0.0052 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 420.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 16.053437987342477]