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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001361/0.001361, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001372/0.001372, allocations: 193.5 kB / 16.13 MB, free: 6.703 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.324/1.324, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.279/2.279, allocations: 390.2 MB / 0.6643 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 71.89 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7178/0.7197, allocations: 140.4 MB / 0.949 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.00218/0.7219, allocations: 1.592 MB / 0.9506 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003109/0.7223, allocations: 133.5 kB / 0.9507 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.876e-05/0.7223, allocations: 0 / 0.9507 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.98e-05/0.7223, allocations: 5.312 kB / 0.9507 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.961e-05/0.7224, allocations: 7.922 kB / 0.9507 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002065/0.7226, allocations: 22.86 kB / 0.9508 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.312e-05/0.7227, allocations: 39.03 kB / 0.9508 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.697e-05/0.7227, allocations: 13.5 kB / 0.9508 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.666e-05/0.7228, allocations: 17.42 kB / 0.9508 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.353e-05/0.7228, allocations: 16.05 kB / 0.9508 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.254e-05/0.7228, allocations: 2.75 kB / 0.9508 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.98e-05/0.7229, allocations: 13.61 kB / 0.9509 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.39e-05/0.7229, allocations: 9.359 kB / 0.9509 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.535e-05/0.7229, allocations: 14.67 kB / 0.9509 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.326e-05/0.723, allocations: 38.83 kB / 0.9509 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.723, allocations: 0 / 0.9509 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of FrontEnd: time 5.81e-07/0.723, allocations: 1.375 kB / 0.9509 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.236e-06/0.7231, allocations: 0 / 0.9509 GB, free: 7.598 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.0003723/0.7234, allocations: 363.2 kB / 0.9513 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.7235, allocations: 9.344 kB / 0.9513 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.421e-05/0.7235, allocations: 32.28 kB / 0.9513 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.628e-05/0.7235, allocations: 7.562 kB / 0.9513 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.62e-05/0.7236, allocations: 173.7 kB / 0.9515 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.7236, allocations: 6.078 kB / 0.9515 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.7236, allocations: 1.594 kB / 0.9515 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001718/0.7238, allocations: 68.11 kB / 0.9515 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.7238, allocations: 7.922 kB / 0.9516 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-06/0.7238, allocations: 1.188 kB / 0.9516 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.7239, allocations: 1.469 kB / 0.9516 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.724, allocations: 42.89 kB / 0.9516 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002875/0.7243, allocations: 283.5 kB / 0.9519 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002885/0.7246, allocations: 62.14 kB / 0.9519 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.771e-05/0.7247, allocations: 28.33 kB / 0.952 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001641/0.7249, allocations: 396.4 kB / 0.9523 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.29e-05/0.7249, allocations: 31.72 kB / 0.9524 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.7249, allocations: 0 / 0.9524 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003418/0.7253, allocations: 102.6 kB / 0.9525 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.852e-05/0.7253, allocations: 52.69 kB / 0.9525 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.723e-05/0.7253, allocations: 108 kB / 0.9526 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.174e-06/0.7254, allocations: 29.7 kB / 0.9526 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.292e-05/0.7254, allocations: 85.33 kB / 0.9527 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.143e-05/0.7254, allocations: 9.234 kB / 0.9527 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/0.7254, allocations: 25.83 kB / 0.9528 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.721e-05/0.7255, allocations: 316.1 kB / 0.9531 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.224e-05/0.7256, allocations: 22.41 kB / 0.9531 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.207e-05/0.7256, allocations: 18.95 kB / 0.9531 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.7258, allocations: 50.53 kB / 0.9531 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.7258, allocations: 0 / 0.9531 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001835/0.726, allocations: 77.66 kB / 0.9532 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.726, allocations: 7.031 kB / 0.9532 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.726, allocations: 0 / 0.9532 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.726, allocations: 1.656 kB / 0.9532 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.269e-05/0.7261, allocations: 10.89 kB / 0.9532 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.7261, allocations: 0 / 0.9532 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.369e-05/0.7262, allocations: 12.45 kB / 0.9532 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.7262, allocations: 1.031 kB / 0.9532 GB, free: 5.16 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.529e-05/0.7262, allocations: 116 kB / 0.9534 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.513e-05/0.7263, allocations: 6.531 kB / 0.9534 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002169/0.7265, allocations: 86.98 kB / 0.9534 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.7265, allocations: 1.719 kB / 0.9534 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.7265, allocations: 0 / 0.9534 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.7265, allocations: 0 / 0.9534 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001082/0.7266, allocations: 181.9 kB / 0.9536 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.7266, allocations: 4 kB / 0.9536 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.136e-05/0.7267, allocations: 16.31 kB / 0.9536 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.7267, allocations: 0 / 0.9536 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.832e-06/0.7267, allocations: 0 / 0.9536 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.7267, allocations: 1.562 kB / 0.9536 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.7267, allocations: 0 / 0.9536 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.7269, allocations: 174.9 kB / 0.9538 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.723e-05/0.727, allocations: 86.56 kB / 0.9539 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.727, allocations: 1.094 kB / 0.9539 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.981e-05/0.7271, allocations: 4.094 kB / 0.9539 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.984e-05/0.7271, allocations: 14.83 kB / 0.9539 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.7271, allocations: 1.188 kB / 0.9539 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.562e-05/0.7271, allocations: 88.95 kB / 0.954 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of sort global known variables: time 5.81e-07/0.7272, allocations: 0 / 0.954 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002101/0.7274, allocations: 13.44 kB / 0.954 GB, free: 4.375 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.000367/0.7277, allocations: 0.7106 MB / 0.9547 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002035/0.728, allocations: 44.86 kB / 0.9547 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.728, allocations: 4 kB / 0.9548 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.267e-05/0.7281, allocations: 27.47 kB / 0.9548 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002287/0.7283, allocations: 6.312 kB / 0.9548 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.7293, allocations: 1.288 MB / 0.956 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.284e-05/0.7294, allocations: 0.6797 MB / 0.9567 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.038e-05/0.7294, allocations: 6.469 kB / 0.9567 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.24e-05/0.7295, allocations: 17.86 kB / 0.9567 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.7295, allocations: 0 / 0.9567 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5957/1.325, allocations: 1.457 MB / 0.9582 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001896/1.325, allocations: 205.9 kB / 0.9583 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.64/2.965, allocations: 11.88 kB / 0.9584 GB, free: 0.668 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