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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001285/0.001285, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.243/1.243, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.115/2.115, allocations: 390.2 MB / 0.6644 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001082, allocations: 67.91 kB / 0.8122 GB, free: 14.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5616/0.5627, allocations: 140.4 MB / 0.9492 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.00266/0.5654, allocations: 1.582 MB / 0.9508 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003462/0.5657, allocations: 132 kB / 0.9509 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.338e-05/0.5658, allocations: 1.281 kB / 0.9509 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.467e-05/0.5658, allocations: 7.875 kB / 0.9509 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.417e-05/0.5659, allocations: 0 / 0.9509 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002875/0.5662, allocations: 28.77 kB / 0.9509 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.694e-05/0.5663, allocations: 31.05 kB / 0.951 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.426e-05/0.5664, allocations: 26.78 kB / 0.951 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.245e-05/0.5664, allocations: 12.72 kB / 0.951 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.261e-05/0.5665, allocations: 25.22 kB / 0.951 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.454e-05/0.5665, allocations: 3.25 kB / 0.951 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.7e-05/0.5666, allocations: 10.06 kB / 0.951 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.445e-05/0.5666, allocations: 9.266 kB / 0.9511 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.785e-05/0.5666, allocations: 19.7 kB / 0.9511 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001118/0.5667, allocations: 43.62 kB / 0.9511 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.5668, allocations: 4 kB / 0.9511 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.132e-06/0.5668, allocations: 0 / 0.9511 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.166e-05/0.5668, allocations: 0 / 0.9511 GB, free: 7.645 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.0003785/0.5672, allocations: 351.8 kB / 0.9515 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.5672, allocations: 10.38 kB / 0.9515 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.858e-05/0.5672, allocations: 34.73 kB / 0.9515 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.118e-05/0.5673, allocations: 7.438 kB / 0.9515 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.392e-05/0.5674, allocations: 170.9 kB / 0.9517 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.5674, allocations: 9.625 kB / 0.9517 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.5674, allocations: 6.5 kB / 0.9517 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001761/0.5676, allocations: 71.77 kB / 0.9518 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.5676, allocations: 3.938 kB / 0.9518 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.806e-06/0.5676, allocations: 0 / 0.9518 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.5676, allocations: 1.531 kB / 0.9518 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.5678, allocations: 44.39 kB / 0.9518 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002975/0.5681, allocations: 282.5 kB / 0.9521 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.5684, allocations: 62.69 kB / 0.9521 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.54e-05/0.5685, allocations: 24.56 kB / 0.9522 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001656/0.5687, allocations: 400.3 kB / 0.9525 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.386e-05/0.5687, allocations: 35.81 kB / 0.9526 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.5687, allocations: 0 / 0.9526 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000356/0.5691, allocations: 94.72 kB / 0.9527 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.938e-05/0.5691, allocations: 51.41 kB / 0.9527 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.71e-05/0.5691, allocations: 116.2 kB / 0.9528 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.388e-06/0.5692, allocations: 25.7 kB / 0.9528 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.85e-05/0.5692, allocations: 93.33 kB / 0.9529 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.27e-05/0.5692, allocations: 9.156 kB / 0.9529 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.12e-05/0.5692, allocations: 18.28 kB / 0.953 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.236e-05/0.5693, allocations: 320.1 kB / 0.9533 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.333e-05/0.5694, allocations: 18.92 kB / 0.9533 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.318e-05/0.5695, allocations: 22.81 kB / 0.9533 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.5696, allocations: 42.55 kB / 0.9533 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.5696, allocations: 0 / 0.9533 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001918/0.5698, allocations: 77.17 kB / 0.9534 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.5698, allocations: 4.375 kB / 0.9534 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.5699, allocations: 5.062 kB / 0.9534 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.5699, allocations: 336 / 0.9534 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.621e-05/0.5699, allocations: 11.77 kB / 0.9534 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.57, allocations: 0.9375 kB / 0.9534 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.798e-05/0.57, allocations: 15.97 kB / 0.9535 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.57, allocations: 0.9375 kB / 0.9535 GB, free: 5.207 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 (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 5.356e-05/0.5701, allocations: 120.5 kB / 0.9536 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.5701, allocations: 5.375 kB / 0.9536 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002296/0.5704, allocations: 83.39 kB / 0.9537 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.5704, allocations: 1.25 kB / 0.9537 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.5704, allocations: 4 kB / 0.9537 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.5704, allocations: 1.312 kB / 0.9537 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.5705, allocations: 164.2 kB / 0.9538 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.5705, allocations: 1.062 kB / 0.9538 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.005e-05/0.5706, allocations: 18.67 kB / 0.9538 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.5706, allocations: 1.438 kB / 0.9538 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.5706, allocations: 4 kB / 0.9538 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.5706, allocations: 1.469 kB / 0.9538 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.5706, allocations: 0 / 0.9538 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002104/0.5708, allocations: 175 kB / 0.954 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.76e-05/0.5709, allocations: 82.42 kB / 0.9541 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.5709, allocations: 5.281 kB / 0.9541 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.972e-05/0.571, allocations: 7.797 kB / 0.9541 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.545e-05/0.571, allocations: 6.062 kB / 0.9541 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.571, allocations: 5.828 kB / 0.9541 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.009e-05/0.5711, allocations: 94.25 kB / 0.9542 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of sort global known variables: time 5.81e-07/0.5711, allocations: 0 / 0.9542 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002361/0.5713, allocations: 11.62 kB / 0.9542 GB, free: 4.426 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 (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.0003956/0.5717, allocations: 0.7115 MB / 0.9549 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001991/0.5719, allocations: 44.86 kB / 0.955 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.5719, allocations: 0 / 0.955 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.562e-05/0.572, allocations: 31.75 kB / 0.955 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.5723, allocations: 8.906 kB / 0.955 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.5733, allocations: 1.286 MB / 0.9562 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.644e-05/0.5734, allocations: 0.6835 MB / 0.9569 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.215e-05/0.5735, allocations: 6.641 kB / 0.9569 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.568e-05/0.5735, allocations: 14.22 kB / 0.9569 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of SimCode: time 3.91e-07/0.5735, allocations: 0 / 0.9569 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01019/0.5837, allocations: 1.527 MB / 0.9584 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001213/0.5838, allocations: 202 kB / 0.9586 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.561/2.145, allocations: 0 / 0.9586 GB, free: 0.6953 MB / 0.7169 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches