Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 105.9 kB / 16.27 MB, free: 6.41 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.001663/0.001663, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.432/1.432, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.777/2.777, allocations: 482.4 MB / 0.7553 GB, free: 6.984 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 64.12 kB / 0.9245 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9164/0.9184, allocations: 162.2 MB / 1.083 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003332/0.9218, allocations: 1.536 MB / 1.084 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0004213/0.9222, allocations: 141.8 kB / 1.085 GB, free: 468 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.296e-05/0.9223, allocations: 1.438 kB / 1.085 GB, free: 468 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.348e-05/0.9223, allocations: 0.6562 kB / 1.085 GB, free: 468 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.773e-05/0.9224, allocations: 5.688 kB / 1.085 GB, free: 464 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003517/0.9227, allocations: 31.66 kB / 1.085 GB, free: 448 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.527e-05/0.9228, allocations: 34.69 kB / 1.085 GB, free: 432 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.923, allocations: 16.92 kB / 1.085 GB, free: 424 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.708e-05/0.923, allocations: 15.09 kB / 1.085 GB, free: 416 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.498e-05/0.9231, allocations: 21.95 kB / 1.085 GB, free: 404 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.887e-05/0.9231, allocations: 3.844 kB / 1.085 GB, free: 404 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.594e-05/0.9232, allocations: 17.09 kB / 1.085 GB, free: 400 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.947e-05/0.9232, allocations: 7.375 kB / 1.085 GB, free: 396 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.435e-05/0.9232, allocations: 17.03 kB / 1.085 GB, free: 384 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.9234, allocations: 53.53 kB / 1.085 GB, free: 356 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.9234, allocations: 0 / 1.085 GB, free: 356 kB / 0.8262 GB Notification: Performance of FrontEnd: time 2.474e-06/0.9234, allocations: 0 / 1.085 GB, free: 356 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.323e-06/0.9234, allocations: 0 / 1.085 GB, free: 356 kB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005049/0.9239, allocations: 348.1 kB / 1.085 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.924, allocations: 9.625 kB / 1.085 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.948e-05/0.924, allocations: 3.5 kB / 1.085 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001734/0.9242, allocations: 175.3 kB / 1.085 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.9243, allocations: 1.688 kB / 1.085 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.9243, allocations: 10.72 kB / 1.085 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002429/0.9245, allocations: 63.16 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.9245, allocations: 192 / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.9246, allocations: 5.25 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.9246, allocations: 3.938 kB / 1.085 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.9248, allocations: 45.3 kB / 1.085 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004594/0.9252, allocations: 281.3 kB / 1.086 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003505/0.9256, allocations: 55.39 kB / 1.086 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.9257, allocations: 27.47 kB / 1.086 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003756/0.9261, allocations: 400.6 kB / 1.086 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.9261, allocations: 40.22 kB / 1.086 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.9262, allocations: 0.75 kB / 1.086 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0004264/0.9266, allocations: 101.3 kB / 1.086 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.9266, allocations: 52.02 kB / 1.086 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.9268, allocations: 107.8 kB / 1.086 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.9268, allocations: 25.7 kB / 1.086 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.006e-05/0.9269, allocations: 91 kB / 1.087 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.609e-05/0.9269, allocations: 5.406 kB / 1.087 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.08e-05/0.9269, allocations: 20.33 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001587/0.9271, allocations: 317.4 kB / 1.087 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.9272, allocations: 20.17 kB / 1.087 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.624e-05/0.9273, allocations: 28.38 kB / 1.087 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.9275, allocations: 45.66 kB / 1.087 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.9275, allocations: 3.938 kB / 1.087 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002403/0.9278, allocations: 78.06 kB / 1.087 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.9278, allocations: 5.312 kB / 1.087 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.9278, allocations: 0.6094 kB / 1.087 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.9278, allocations: 1.281 kB / 1.087 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.703e-05/0.9279, allocations: 10.47 kB / 1.087 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.9279, allocations: 1.891 kB / 1.087 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.101e-05/0.928, allocations: 13.61 kB / 1.087 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.928, allocations: 1.031 kB / 1.087 GB, free: 14.1 MB / 0.8419 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 (falFac.y,rea2Int.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.0001185/0.9281, allocations: 117.5 kB / 1.087 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.9282, allocations: 3.344 kB / 1.087 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002923/0.9285, allocations: 88.16 kB / 1.087 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.9285, allocations: 0 / 1.087 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.9285, allocations: 5.344 kB / 1.087 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.9285, allocations: 0.9375 kB / 1.087 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002123/0.9287, allocations: 164.6 kB / 1.087 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.9287, allocations: 0 / 1.087 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.135e-05/0.9288, allocations: 12.66 kB / 1.087 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.9288, allocations: 0 / 1.087 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.9288, allocations: 1.344 kB / 1.087 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.9289, allocations: 1.406 kB / 1.087 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.9289, allocations: 3.938 kB / 1.087 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003307/0.9292, allocations: 185.3 kB / 1.088 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.391e-05/0.9293, allocations: 83.22 kB / 1.088 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.805e-05/0.9293, allocations: 2.062 kB / 1.088 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.455e-05/0.9294, allocations: 5.156 kB / 1.088 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.64e-05/0.9294, allocations: 9.359 kB / 1.088 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.493e-06/0.9295, allocations: 1.531 kB / 1.088 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.055e-05/0.9295, allocations: 96.45 kB / 1.088 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9295, allocations: 0.8125 kB / 1.088 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002337/0.9298, allocations: 12.78 kB / 1.088 GB, free: 13.38 MB / 0.8419 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 (rea2Int.y,falFac.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.000207/0.93, allocations: 100.4 kB / 1.088 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002594/0.9303, allocations: 46.94 kB / 1.088 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.9303, allocations: 0 / 1.088 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.9304, allocations: 33 kB / 1.088 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.9307, allocations: 6.469 kB / 1.088 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003996/0.9311, allocations: 149.4 kB / 1.088 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.9314, allocations: 0.6837 MB / 1.089 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.307e-05/0.9315, allocations: 10.36 kB / 1.089 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of SimCode: time 3.01e-07/0.9315, allocations: 0 / 1.089 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of Templates: time 0.002841/0.9343, allocations: 0.8055 MB / 1.09 GB, free: 12.35 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches