Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_11_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.001658/0.001658, allocations: 102.6 kB / 15.98 MB, free: 6.344 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.001815/0.001815, allocations: 199.5 kB / 16.91 MB, free: 6.184 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.448/1.448, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.719/2.719, allocations: 469.8 MB / 0.7427 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 71.91 kB / 0.9087 GB, free: 14.26 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3469, allocations: 159.1 MB / 1.064 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003202/0.3501, allocations: 1.6 MB / 1.066 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003748/0.3505, allocations: 131.6 kB / 1.066 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.645e-05/0.3506, allocations: 0 / 1.066 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.181e-05/0.3506, allocations: 0 / 1.066 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.694e-05/0.3507, allocations: 3.938 kB / 1.066 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003042/0.351, allocations: 31.95 kB / 1.066 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.8e-05/0.3511, allocations: 35.92 kB / 1.066 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.3512, allocations: 16 kB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.342e-05/0.3512, allocations: 15.92 kB / 1.066 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.763e-05/0.3513, allocations: 19.91 kB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.445e-05/0.3513, allocations: 4 kB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.153e-05/0.3514, allocations: 19.98 kB / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.585e-05/0.3514, allocations: 7.938 kB / 1.066 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.6e-05/0.3514, allocations: 19.92 kB / 1.066 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001008/0.3515, allocations: 31.94 kB / 1.066 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3515, allocations: 0 / 1.066 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3515, allocations: 0 / 1.066 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.606e-06/0.3516, allocations: 0 / 1.066 GB, free: 13.19 MB / 0.8419 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.0005385/0.3521, allocations: 351.7 kB / 1.066 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.3522, allocations: 8.031 kB / 1.066 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.3522, allocations: 12.88 kB / 1.066 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.3524, allocations: 172.3 kB / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.3524, allocations: 384 / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.392e-05/0.3524, allocations: 4.375 kB / 1.067 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/0.3526, allocations: 62.17 kB / 1.067 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.3526, allocations: 4.188 kB / 1.067 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.918e-05/0.3527, allocations: 11.92 kB / 1.067 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.3527, allocations: 3.938 kB / 1.067 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.3529, allocations: 43.95 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004535/0.3533, allocations: 272.8 kB / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003394/0.3537, allocations: 66.47 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.3538, allocations: 24.91 kB / 1.067 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003541/0.3541, allocations: 397.5 kB / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.3542, allocations: 34.55 kB / 1.067 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3542, allocations: 0 / 1.067 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0004202/0.3546, allocations: 105.5 kB / 1.068 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.3547, allocations: 51.41 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.3548, allocations: 109.8 kB / 1.068 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.3548, allocations: 25.7 kB / 1.068 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.092e-05/0.3549, allocations: 92.19 kB / 1.068 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.794e-05/0.3549, allocations: 7.906 kB / 1.068 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.83e-05/0.3549, allocations: 13.72 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001671/0.3551, allocations: 322.8 kB / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-05/0.3552, allocations: 19.97 kB / 1.068 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.907e-05/0.3553, allocations: 19.98 kB / 1.068 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001826/0.3555, allocations: 44.81 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3555, allocations: 0 / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002219/0.3557, allocations: 81.59 kB / 1.068 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.3557, allocations: 4 kB / 1.068 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3558, allocations: 0 / 1.068 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.3558, allocations: 7.984 kB / 1.068 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-05/0.3559, allocations: 4 kB / 1.068 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.3559, allocations: 8 kB / 1.068 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.204e-05/0.356, allocations: 11.89 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.356, allocations: 0 / 1.068 GB, free: 10.52 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.000117/0.3561, allocations: 116 kB / 1.068 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.551e-05/0.3561, allocations: 8 kB / 1.068 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002767/0.3564, allocations: 94.09 kB / 1.069 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.3564, allocations: 0 / 1.069 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.3564, allocations: 0 / 1.069 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3564, allocations: 0 / 1.069 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.3566, allocations: 173.5 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3566, allocations: 3.938 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.685e-05/0.3567, allocations: 15.98 kB / 1.069 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3567, allocations: 0 / 1.069 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.3568, allocations: 0 / 1.069 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3568, allocations: 0 / 1.069 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3568, allocations: 3.984 kB / 1.069 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002761/0.357, allocations: 175.3 kB / 1.069 GB, free: 9.859 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.305e-05/0.3571, allocations: 85.11 kB / 1.069 GB, free: 9.758 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.3571, allocations: 0 / 1.069 GB, free: 9.758 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.704e-05/0.3572, allocations: 11.98 kB / 1.069 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.129e-05/0.3573, allocations: 7.938 kB / 1.069 GB, free: 9.738 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.3573, allocations: 0 / 1.069 GB, free: 9.738 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.732e-05/0.3573, allocations: 87.27 kB / 1.069 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.3574, allocations: 0 / 1.069 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002372/0.3576, allocations: 12 kB / 1.069 GB, free: 9.641 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.0001844/0.3578, allocations: 107.2 kB / 1.069 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002444/0.358, allocations: 43.95 kB / 1.069 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3581, allocations: 0 / 1.069 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.3582, allocations: 27.97 kB / 1.069 GB, free: 9.457 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/0.3585, allocations: 15.75 kB / 1.069 GB, free: 9.441 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003604/0.3588, allocations: 163.2 kB / 1.069 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003306/0.3592, allocations: 0.6768 MB / 1.07 GB, free: 8.543 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.854e-05/0.3592, allocations: 11.44 kB / 1.07 GB, free: 8.535 MB / 0.8419 GB Notification: Performance of SimCode: time 3.01e-07/0.3592, allocations: 0 / 1.07 GB, free: 8.535 MB / 0.8419 GB Notification: Performance of Templates: time 0.002569/0.3618, allocations: 0.8008 MB / 1.071 GB, free: 7.738 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches