Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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: translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_9_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.001017/0.001018, allocations: 87.3 kB / 15.06 MB, free: 1.082 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.0009433/0.0009434, allocations: 176.7 kB / 15.96 MB, free: 196 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 223.3 MB / 240 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.487/2.487, allocations: 390.9 MB / 0.666 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005098/0.0005099, allocations: 8 kB / 0.8153 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7572/0.7577, allocations: 142.4 MB / 0.9544 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.001516/0.7593, allocations: 1.235 MB / 0.9556 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000345/0.7597, allocations: 128.5 kB / 0.9558 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.349e-05/0.7597, allocations: 1.156 kB / 0.9558 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.578e-05/0.7597, allocations: 3.938 kB / 0.9558 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.873e-05/0.7598, allocations: 5.219 kB / 0.9558 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002572/0.76, allocations: 27.39 kB / 0.9558 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.596e-05/0.7601, allocations: 31.02 kB / 0.9558 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.991e-05/0.7602, allocations: 13.19 kB / 0.9558 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.516e-05/0.7603, allocations: 8.828 kB / 0.9558 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.12e-05/0.7603, allocations: 20.56 kB / 0.9559 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.119e-05/0.7603, allocations: 1.5 kB / 0.9559 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.104e-05/0.7604, allocations: 16.8 kB / 0.9559 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.678e-06/0.7604, allocations: 0.625 kB / 0.9559 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.968e-05/0.7604, allocations: 40.58 kB / 0.9559 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.983e-05/0.7605, allocations: 23.3 kB / 0.9559 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.7605, allocations: 0 / 0.9559 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7605, allocations: 1.406 kB / 0.9559 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.7606, allocations: 0 / 0.9559 GB, free: 6.535 MB / 0.7169 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.0003739/0.7609, allocations: 348.9 kB / 0.9563 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.761, allocations: 9.5 kB / 0.9563 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.172e-05/0.761, allocations: 13.2 kB / 0.9563 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.819e-05/0.7611, allocations: 165 kB / 0.9565 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/0.7611, allocations: 10.23 kB / 0.9565 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.7612, allocations: 2.219 kB / 0.9565 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001868/0.7613, allocations: 66.97 kB / 0.9565 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.7614, allocations: 0 / 0.9565 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.7614, allocations: 5.344 kB / 0.9565 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.7614, allocations: 1.469 kB / 0.9565 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000188/0.7616, allocations: 64.89 kB / 0.9566 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003307/0.7619, allocations: 271.7 kB / 0.9569 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.7622, allocations: 74.53 kB / 0.9569 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.484e-05/0.7623, allocations: 33.86 kB / 0.957 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001891/0.7625, allocations: 395.9 kB / 0.9573 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.883e-05/0.7626, allocations: 43.39 kB / 0.9574 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.392e-06/0.7626, allocations: 3.938 kB / 0.9574 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000382/0.7629, allocations: 113.2 kB / 0.9575 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/0.763, allocations: 52.69 kB / 0.9575 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.437e-05/0.7631, allocations: 107.3 kB / 0.9576 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.628e-06/0.7631, allocations: 25.7 kB / 0.9577 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.461e-05/0.7631, allocations: 91.56 kB / 0.9578 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.7631, allocations: 4.906 kB / 0.9578 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.499e-06/0.7631, allocations: 0 / 0.9578 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.811e-05/0.7632, allocations: 316.6 kB / 0.9581 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.95e-05/0.7633, allocations: 31.38 kB / 0.9581 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.102e-05/0.7634, allocations: 24 kB / 0.9581 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.432e-05/0.7635, allocations: 27.66 kB / 0.9581 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.7635, allocations: 4 kB / 0.9581 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002/0.7637, allocations: 86.44 kB / 0.9582 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.7637, allocations: 4.75 kB / 0.9582 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.7637, allocations: 7.922 kB / 0.9582 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.7637, allocations: 0 / 0.9582 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.068e-05/0.7638, allocations: 15.33 kB / 0.9583 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.7638, allocations: 0 / 0.9583 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.559e-05/0.7639, allocations: 14.42 kB / 0.9583 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-06/0.7639, allocations: 5.219 kB / 0.9583 GB, free: 4.172 MB / 0.7169 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,falFac.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.815e-05/0.764, allocations: 116.1 kB / 0.9584 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.395e-05/0.764, allocations: 2.906 kB / 0.9584 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002554/0.7643, allocations: 92.42 kB / 0.9585 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.7643, allocations: 5.703 kB / 0.9585 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.7643, allocations: 0 / 0.9585 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.7643, allocations: 0 / 0.9585 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.7644, allocations: 170.7 kB / 0.9586 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.7644, allocations: 3.984 kB / 0.9586 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.938e-05/0.7645, allocations: 13 kB / 0.9587 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.7645, allocations: 1.75 kB / 0.9587 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.7645, allocations: 3.984 kB / 0.9587 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.7645, allocations: 0 / 0.9587 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.7645, allocations: 5.734 kB / 0.9587 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002201/0.7648, allocations: 192.4 kB / 0.9589 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.136e-05/0.7648, allocations: 78.33 kB / 0.9589 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.7648, allocations: 3.984 kB / 0.9589 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.258e-05/0.7649, allocations: 6.719 kB / 0.9589 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.165e-05/0.765, allocations: 10.06 kB / 0.9589 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.765, allocations: 1.281 kB / 0.9589 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.941e-05/0.765, allocations: 93.36 kB / 0.959 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.765, allocations: 5.656 kB / 0.959 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002357/0.7652, allocations: 10.97 kB / 0.9591 GB, free: 3.391 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001447/0.7654, allocations: 107.2 kB / 0.9592 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002327/0.7656, allocations: 59.23 kB / 0.9592 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.7657, allocations: 0 / 0.9592 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.606e-05/0.7658, allocations: 32.36 kB / 0.9592 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.7661, allocations: 14.38 kB / 0.9593 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002888/0.7663, allocations: 127.7 kB / 0.9594 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001222/0.7665, allocations: 0.6787 MB / 0.96 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.396e-05/0.7665, allocations: 3.156 kB / 0.96 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.405e-05/0.7666, allocations: 13.77 kB / 0.9601 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7666, allocations: 1 kB / 0.9601 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of Templates: time 0.00294/0.7695, allocations: 0.6389 MB / 0.9607 GB, free: 2.082 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches