Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001087/0.001087, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001159/0.001159, allocations: 193 kB / 16.14 MB, free: 6.656 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.447/1.447, allocations: 222.9 MB / 239.8 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.852/2.852, allocations: 472.6 MB / 0.7447 GB, free: 4.965 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 63.72 kB / 0.9113 GB, free: 33.7 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3453, allocations: 159.9 MB / 1.068 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002746/0.3481, allocations: 1.6 MB / 1.069 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003909/0.3485, allocations: 131.6 kB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.519e-05/0.3486, allocations: 0 / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.344e-05/0.3486, allocations: 4 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.753e-05/0.3487, allocations: 7.938 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002477/0.3489, allocations: 23.97 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.399e-05/0.349, allocations: 35.91 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.609e-05/0.3491, allocations: 11.94 kB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.951e-05/0.3491, allocations: 19.92 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.015e-05/0.3492, allocations: 15.92 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.3492, allocations: 4 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.663e-05/0.3493, allocations: 15.98 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.637e-05/0.3493, allocations: 11.92 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.883e-05/0.3493, allocations: 15.92 kB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.3494, allocations: 47.88 kB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3495, allocations: 0 / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.82e-07/0.3495, allocations: 0 / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.3495, allocations: 0 / 1.069 GB, free: 9.012 MB / 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.0004641/0.3499, allocations: 351.7 kB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.35, allocations: 8.031 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.145e-05/0.35, allocations: 0.9375 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.3501, allocations: 172.3 kB / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.872e-05/0.3502, allocations: 8.312 kB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.3502, allocations: 4.375 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.3504, allocations: 62.22 kB / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.3504, allocations: 192 / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.3504, allocations: 3.938 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.3504, allocations: 4 kB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001902/0.3506, allocations: 51.89 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000382/0.351, allocations: 284.6 kB / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.3513, allocations: 58.53 kB / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.455e-05/0.3514, allocations: 24.91 kB / 1.07 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002668/0.3517, allocations: 405.5 kB / 1.071 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.3518, allocations: 30.56 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.3518, allocations: 0 / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003664/0.3521, allocations: 97.56 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.806e-05/0.3522, allocations: 55.41 kB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.764e-05/0.3523, allocations: 113.8 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.3523, allocations: 25.7 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.126e-05/0.3523, allocations: 88.14 kB / 1.071 GB, free: 6.906 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.498e-05/0.3523, allocations: 7.969 kB / 1.071 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.739e-05/0.3524, allocations: 17.72 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.655e-05/0.3525, allocations: 318.8 kB / 1.071 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.324e-05/0.3526, allocations: 19.98 kB / 1.072 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.44e-05/0.3527, allocations: 27.97 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001612/0.3528, allocations: 40.83 kB / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3528, allocations: 0 / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002118/0.3531, allocations: 81.48 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.3531, allocations: 5.406 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3531, allocations: 3.938 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.3531, allocations: 0 / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.612e-05/0.3532, allocations: 15.98 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.3532, allocations: 0 / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.646e-05/0.3533, allocations: 8.328 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.3533, allocations: 7.984 kB / 1.072 GB, free: 6.34 MB / 0.8262 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 6.697e-05/0.3534, allocations: 109.8 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.627e-05/0.3534, allocations: 7.984 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002543/0.3536, allocations: 89.48 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.3537, allocations: 4 kB / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.3537, allocations: 0 / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3537, allocations: 0 / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.3538, allocations: 165.6 kB / 1.072 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3538, allocations: 3.938 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.51e-05/0.3539, allocations: 11.98 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.562e-06/0.3539, allocations: 0 / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.3539, allocations: 4 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3539, allocations: 0 / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.354, allocations: 4 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002472/0.3542, allocations: 175.3 kB / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.067e-05/0.3542, allocations: 81.11 kB / 1.072 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.3543, allocations: 0 / 1.072 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.352e-05/0.3544, allocations: 11.92 kB / 1.072 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.02e-05/0.3544, allocations: 7.984 kB / 1.072 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.3544, allocations: 12 kB / 1.072 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.555e-05/0.3545, allocations: 79.28 kB / 1.072 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3545, allocations: 0 / 1.072 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002238/0.3547, allocations: 16 kB / 1.072 GB, free: 5.465 MB / 0.8262 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.0001485/0.3549, allocations: 107.2 kB / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002205/0.3551, allocations: 43.95 kB / 1.073 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3551, allocations: 4 kB / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.574e-05/0.3552, allocations: 19.98 kB / 1.073 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.3555, allocations: 19.8 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003113/0.3558, allocations: 139 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000217/0.356, allocations: 0.677 MB / 1.073 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.26e-05/0.3561, allocations: 8 kB / 1.073 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.797e-05/0.3561, allocations: 15.42 kB / 1.073 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.3561, allocations: 0 / 1.073 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of Templates: time 0.002869/0.359, allocations: 0.6703 MB / 1.074 GB, free: 3.707 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_3.0.0_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)