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.001515/0.001515, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.278/1.278, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.28/2.28, allocations: 390.3 MB / 0.6647 GB, free: 272 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 63.91 kB / 0.8126 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5492/0.5505, allocations: 140.4 MB / 0.9497 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.00218/0.5527, allocations: 1.528 MB / 0.9512 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002998/0.553, allocations: 134.4 kB / 0.9513 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.871e-05/0.5531, allocations: 1.469 kB / 0.9513 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.344e-05/0.5531, allocations: 7.938 kB / 0.9513 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.342e-05/0.5531, allocations: 11.86 kB / 0.9514 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002374/0.5534, allocations: 25.61 kB / 0.9514 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.713e-05/0.5535, allocations: 38.41 kB / 0.9514 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.398e-05/0.5535, allocations: 13.45 kB / 0.9514 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.55e-05/0.5536, allocations: 17.48 kB / 0.9514 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.567e-05/0.5536, allocations: 18.52 kB / 0.9515 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.341e-05/0.5536, allocations: 6.219 kB / 0.9515 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.545e-05/0.5537, allocations: 18.77 kB / 0.9515 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.292e-05/0.5537, allocations: 9.109 kB / 0.9515 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.459e-05/0.5538, allocations: 11.66 kB / 0.9515 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.567e-05/0.5539, allocations: 55.11 kB / 0.9516 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.5539, allocations: 3.938 kB / 0.9516 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.92e-07/0.5539, allocations: 0 / 0.9516 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.5539, allocations: 1.531 kB / 0.9516 GB, free: 7.719 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.0003517/0.5542, allocations: 342.5 kB / 0.9519 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.5543, allocations: 17.67 kB / 0.9519 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.309e-05/0.5543, allocations: 35.97 kB / 0.9519 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.43e-05/0.5543, allocations: 7.094 kB / 0.9519 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.192e-05/0.5544, allocations: 166.4 kB / 0.9521 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.5544, allocations: 1.5 kB / 0.9521 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.5544, allocations: 2.656 kB / 0.9521 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001796/0.5546, allocations: 64 kB / 0.9522 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.5546, allocations: 3.938 kB / 0.9522 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.5546, allocations: 0.9062 kB / 0.9522 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.5547, allocations: 5.094 kB / 0.9522 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.5548, allocations: 47.7 kB / 0.9522 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002657/0.5551, allocations: 274.6 kB / 0.9525 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002858/0.5554, allocations: 63.31 kB / 0.9526 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.177e-05/0.5555, allocations: 31.92 kB / 0.9526 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001585/0.5557, allocations: 404 kB / 0.953 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.159e-05/0.5557, allocations: 31.97 kB / 0.953 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.5557, allocations: 0 / 0.953 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003471/0.5561, allocations: 90.47 kB / 0.9531 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.795e-05/0.5561, allocations: 56.53 kB / 0.9531 GB, free: 6 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.625e-05/0.5561, allocations: 111.8 kB / 0.9532 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.404e-06/0.5561, allocations: 25.7 kB / 0.9533 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.395e-05/0.5562, allocations: 93.7 kB / 0.9534 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.257e-05/0.5562, allocations: 5.469 kB / 0.9534 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.946e-05/0.5562, allocations: 21.64 kB / 0.9534 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.583e-05/0.5563, allocations: 320.1 kB / 0.9537 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.683e-05/0.5564, allocations: 25.67 kB / 0.9537 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.767e-05/0.5564, allocations: 19.97 kB / 0.9537 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.5566, allocations: 46.55 kB / 0.9538 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.5566, allocations: 0 / 0.9538 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001968/0.5568, allocations: 77.55 kB / 0.9539 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.5568, allocations: 8.844 kB / 0.9539 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.646e-06/0.5568, allocations: 0 / 0.9539 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.5569, allocations: 0.8125 kB / 0.9539 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.726e-05/0.5569, allocations: 11.75 kB / 0.9539 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.557, allocations: 3.938 kB / 0.9539 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.577e-05/0.557, allocations: 16.03 kB / 0.9539 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.557, allocations: 1.656 kB / 0.9539 GB, free: 5.289 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 4.592e-05/0.5571, allocations: 116.5 kB / 0.954 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.5571, allocations: 5.094 kB / 0.954 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002317/0.5573, allocations: 84.05 kB / 0.9541 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.5574, allocations: 1.469 kB / 0.9541 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.5574, allocations: 0 / 0.9541 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.5574, allocations: 0 / 0.9541 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001106/0.5575, allocations: 168.9 kB / 0.9543 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.5575, allocations: 1.562 kB / 0.9543 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.25e-05/0.5576, allocations: 10.7 kB / 0.9543 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.5576, allocations: 4 kB / 0.9543 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.5576, allocations: 1.406 kB / 0.9543 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.5576, allocations: 3.938 kB / 0.9543 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.5576, allocations: 1.406 kB / 0.9543 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002145/0.5578, allocations: 171.6 kB / 0.9544 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.728e-05/0.5578, allocations: 86.39 kB / 0.9545 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.5579, allocations: 0 / 0.9545 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.34e-05/0.5579, allocations: 11.77 kB / 0.9545 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.507e-05/0.558, allocations: 6.234 kB / 0.9545 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.558, allocations: 2.094 kB / 0.9545 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.466e-05/0.558, allocations: 89.06 kB / 0.9546 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5581, allocations: 0 / 0.9546 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002219/0.5583, allocations: 8.688 kB / 0.9546 GB, free: 4.527 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.0003882/0.5587, allocations: 0.7181 MB / 0.9553 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002142/0.5589, allocations: 50.44 kB / 0.9554 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.5589, allocations: 0 / 0.9554 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.394e-05/0.559, allocations: 26.55 kB / 0.9554 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000247/0.5593, allocations: 7.266 kB / 0.9554 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.5603, allocations: 1.28 MB / 0.9567 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.235e-05/0.5604, allocations: 0.6837 MB / 0.9573 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.91e-05/0.5604, allocations: 10.62 kB / 0.9573 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.31e-05/0.5605, allocations: 14.56 kB / 0.9574 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.5605, allocations: 0 / 0.9574 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02819/0.5887, allocations: 1.677 MB / 0.959 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.984/7.572, allocations: 3.828 kB / 0.959 GB, free: 0.8906 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