Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_10_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.0009985/0.0009985, allocations: 110.8 kB / 16.37 MB, free: 6.469 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.001001/0.001001, allocations: 189.8 kB / 17.3 MB, free: 5.828 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.186/1.186, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.182/2.182, allocations: 437.1 MB / 0.7112 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 63.94 kB / 0.8707 GB, free: 1.488 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2526, allocations: 151.6 MB / 1.019 GB, free: 9.887 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002443/0.2551, allocations: 1.535 MB / 1.02 GB, free: 8.336 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0003214/0.2554, allocations: 136.4 kB / 1.02 GB, free: 8.199 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.895e-05/0.2555, allocations: 0 / 1.02 GB, free: 8.199 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.743e-05/0.2555, allocations: 3.984 kB / 1.02 GB, free: 8.195 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.846e-05/0.2555, allocations: 7.938 kB / 1.02 GB, free: 8.188 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002463/0.2558, allocations: 27.92 kB / 1.02 GB, free: 8.16 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.414e-05/0.2559, allocations: 39.84 kB / 1.02 GB, free: 8.121 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.56e-05/0.256, allocations: 19.98 kB / 1.021 GB, free: 8.102 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.603e-05/0.256, allocations: 11.98 kB / 1.021 GB, free: 8.09 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.848e-05/0.256, allocations: 19.92 kB / 1.021 GB, free: 8.07 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.207e-05/0.2561, allocations: 4 kB / 1.021 GB, free: 8.066 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.643e-05/0.2561, allocations: 15.98 kB / 1.021 GB, free: 8.051 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.653e-05/0.2562, allocations: 15.91 kB / 1.021 GB, free: 8.035 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.559e-05/0.2562, allocations: 11.94 kB / 1.021 GB, free: 8.023 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001017/0.2563, allocations: 39.89 kB / 1.021 GB, free: 7.984 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2563, allocations: 0 / 1.021 GB, free: 7.984 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.026e-06/0.2563, allocations: 4 kB / 1.021 GB, free: 7.98 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.2563, allocations: 7.938 kB / 1.021 GB, free: 7.973 MB / 0.795 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.0004192/0.2567, allocations: 355.3 kB / 1.021 GB, free: 7.574 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.2568, allocations: 8.922 kB / 1.021 GB, free: 7.566 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.11e-05/0.2568, allocations: 4.938 kB / 1.021 GB, free: 7.562 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.2569, allocations: 172.3 kB / 1.021 GB, free: 7.355 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.257, allocations: 4.375 kB / 1.021 GB, free: 7.352 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.257, allocations: 384 / 1.021 GB, free: 7.352 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001725/0.2571, allocations: 70.22 kB / 1.021 GB, free: 7.277 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.2572, allocations: 192 / 1.021 GB, free: 7.277 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.2572, allocations: 3.938 kB / 1.021 GB, free: 7.273 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.2572, allocations: 3.984 kB / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.2574, allocations: 43.95 kB / 1.021 GB, free: 7.227 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003686/0.2577, allocations: 288.6 kB / 1.022 GB, free: 6.895 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000289/0.258, allocations: 58.61 kB / 1.022 GB, free: 6.828 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.212e-05/0.2581, allocations: 30.36 kB / 1.022 GB, free: 6.797 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002537/0.2584, allocations: 397.5 kB / 1.022 GB, free: 6.316 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/0.2584, allocations: 30.56 kB / 1.022 GB, free: 6.277 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.2584, allocations: 4 kB / 1.022 GB, free: 6.273 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.000348/0.2588, allocations: 105.5 kB / 1.022 GB, free: 6.164 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.2588, allocations: 51.41 kB / 1.022 GB, free: 6.102 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.787e-05/0.2589, allocations: 105.8 kB / 1.022 GB, free: 5.988 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.2589, allocations: 33.7 kB / 1.022 GB, free: 5.949 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 3.443e-05/0.259, allocations: 80.14 kB / 1.022 GB, free: 5.867 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.3e-05/0.259, allocations: 3.906 kB / 1.022 GB, free: 5.863 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.371e-05/0.259, allocations: 25.7 kB / 1.022 GB, free: 5.832 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.2591, allocations: 314.8 kB / 1.023 GB, free: 5.516 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.511e-05/0.2592, allocations: 23.97 kB / 1.023 GB, free: 5.492 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.916e-05/0.2593, allocations: 19.98 kB / 1.023 GB, free: 5.473 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/0.2595, allocations: 48.75 kB / 1.023 GB, free: 5.422 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2595, allocations: 3.938 kB / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001848/0.2597, allocations: 77.66 kB / 1.023 GB, free: 5.336 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.2597, allocations: 8 kB / 1.023 GB, free: 5.328 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.2597, allocations: 0 / 1.023 GB, free: 5.328 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.2597, allocations: 0 / 1.023 GB, free: 5.328 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.286e-05/0.2598, allocations: 11.98 kB / 1.023 GB, free: 5.316 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.2598, allocations: 0 / 1.023 GB, free: 5.316 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.198e-05/0.2598, allocations: 7.984 kB / 1.023 GB, free: 5.309 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.2599, allocations: 0 / 1.023 GB, free: 5.309 MB / 0.795 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.656e-05/0.2599, allocations: 117.8 kB / 1.023 GB, free: 5.184 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.533e-05/0.26, allocations: 3.906 kB / 1.023 GB, free: 5.18 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002238/0.2602, allocations: 89.48 kB / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2602, allocations: 0 / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.2602, allocations: 0 / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.2602, allocations: 0 / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.2604, allocations: 178 kB / 1.023 GB, free: 4.863 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2604, allocations: 4 kB / 1.023 GB, free: 4.859 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.607e-05/0.2604, allocations: 8 kB / 1.023 GB, free: 4.852 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.2604, allocations: 3.984 kB / 1.023 GB, free: 4.848 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.2605, allocations: 4 kB / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.2605, allocations: 4 kB / 1.023 GB, free: 4.84 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2605, allocations: 0 / 1.023 GB, free: 4.84 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002247/0.2607, allocations: 179.4 kB / 1.023 GB, free: 4.648 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.459e-05/0.2607, allocations: 81.02 kB / 1.024 GB, free: 4.551 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.309e-05/0.2608, allocations: 3.984 kB / 1.024 GB, free: 4.547 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.705e-05/0.2608, allocations: 4 kB / 1.024 GB, free: 4.543 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.2609, allocations: 11.98 kB / 1.024 GB, free: 4.531 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.2609, allocations: 0 / 1.024 GB, free: 4.531 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.699e-05/0.2609, allocations: 95.2 kB / 1.024 GB, free: 4.438 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2609, allocations: 0 / 1.024 GB, free: 4.438 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002114/0.2612, allocations: 8 kB / 1.024 GB, free: 4.43 MB / 0.795 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.0001294/0.2613, allocations: 107.2 kB / 1.024 GB, free: 4.312 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002023/0.2615, allocations: 43.95 kB / 1.024 GB, free: 4.27 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2615, allocations: 4 kB / 1.024 GB, free: 4.266 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.657e-05/0.2616, allocations: 27.91 kB / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.2619, allocations: 15.81 kB / 1.024 GB, free: 4.223 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002548/0.2621, allocations: 117.6 kB / 1.024 GB, free: 4.082 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002003/0.2623, allocations: 0.6807 MB / 1.025 GB, free: 3.375 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.75e-05/0.2624, allocations: 3.984 kB / 1.025 GB, free: 3.371 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.327e-05/0.2624, allocations: 11.44 kB / 1.025 GB, free: 3.359 MB / 0.795 GB Notification: Performance of SimCode: time 1.8e-07/0.2624, allocations: 0 / 1.025 GB, free: 3.359 MB / 0.795 GB Notification: Performance of Templates: time 0.002559/0.265, allocations: 0.7717 MB / 1.025 GB, free: 2.594 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches