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.0008834/0.0008834, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004913/0.004914, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.208/1.208, allocations: 223.3 MB / 240.3 MB, free: 5.352 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.111/2.111, allocations: 390.9 MB / 0.6664 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003069/0.000307, allocations: 12 kB / 0.8161 GB, free: 13.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5308/0.5312, allocations: 142.4 MB / 0.9552 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.001218/0.5324, allocations: 1.248 MB / 0.9564 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002867/0.5327, allocations: 136.3 kB / 0.9565 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.146e-05/0.5327, allocations: 0 / 0.9565 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.526e-05/0.5328, allocations: 0 / 0.9565 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.471e-05/0.5328, allocations: 5.438 kB / 0.9565 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001926/0.533, allocations: 30.84 kB / 0.9565 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.993e-05/0.5331, allocations: 33.67 kB / 0.9566 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.301e-05/0.5331, allocations: 13.95 kB / 0.9566 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.305e-05/0.5332, allocations: 16.77 kB / 0.9566 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.279e-05/0.5332, allocations: 12.67 kB / 0.9566 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.044e-05/0.5332, allocations: 1.438 kB / 0.9566 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.337e-05/0.5333, allocations: 16.83 kB / 0.9566 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.119e-05/0.5333, allocations: 9.359 kB / 0.9566 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.443e-05/0.5333, allocations: 32.02 kB / 0.9567 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.947e-05/0.5334, allocations: 47.47 kB / 0.9567 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.5334, allocations: 0 / 0.9567 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.263e-06/0.5334, allocations: 0 / 0.9567 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.066e-06/0.5334, allocations: 0 / 0.9567 GB, free: 6.316 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.000312/0.5338, allocations: 349.6 kB / 0.9571 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.5338, allocations: 13.2 kB / 0.9571 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.491e-05/0.5338, allocations: 32.25 kB / 0.9571 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.969e-05/0.5339, allocations: 11.69 kB / 0.9571 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.597e-05/0.5339, allocations: 173.6 kB / 0.9573 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.5339, allocations: 5.719 kB / 0.9573 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-06/0.5339, allocations: 3.344 kB / 0.9573 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001628/0.5341, allocations: 72.2 kB / 0.9574 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.5341, allocations: 3.938 kB / 0.9574 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.5341, allocations: 0 / 0.9574 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.217e-06/0.5342, allocations: 5.156 kB / 0.9574 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.5343, allocations: 53.95 kB / 0.9574 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002601/0.5346, allocations: 278.6 kB / 0.9577 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002684/0.5349, allocations: 76.44 kB / 0.9577 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.271e-05/0.535, allocations: 32.58 kB / 0.9578 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001463/0.5351, allocations: 396.8 kB / 0.9582 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.021e-05/0.5352, allocations: 35.53 kB / 0.9582 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.563e-06/0.5352, allocations: 3.984 kB / 0.9582 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003403/0.5355, allocations: 117.9 kB / 0.9583 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.349e-05/0.5355, allocations: 51.41 kB / 0.9584 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.722e-05/0.5356, allocations: 108.1 kB / 0.9585 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.153e-06/0.5356, allocations: 25.7 kB / 0.9585 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.218e-05/0.5356, allocations: 90.48 kB / 0.9586 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.718e-06/0.5356, allocations: 1.188 kB / 0.9586 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.97e-05/0.5357, allocations: 14.75 kB / 0.9586 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.161e-05/0.5357, allocations: 323.8 kB / 0.9589 GB, free: 4 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.714e-05/0.5358, allocations: 28.11 kB / 0.9589 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.894e-05/0.5359, allocations: 27.12 kB / 0.9589 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001578/0.536, allocations: 57.11 kB / 0.959 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.536, allocations: 0 / 0.959 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001932/0.5362, allocations: 91.64 kB / 0.9591 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.5363, allocations: 6.688 kB / 0.9591 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-06/0.5363, allocations: 4 kB / 0.9591 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.939e-06/0.5363, allocations: 0 / 0.9591 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.398e-05/0.5364, allocations: 14.2 kB / 0.9591 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.5364, allocations: 0 / 0.9591 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.448e-05/0.5364, allocations: 10.12 kB / 0.9591 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.909e-06/0.5364, allocations: 1.281 kB / 0.9591 GB, free: 3.879 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.515e-05/0.5365, allocations: 124.6 kB / 0.9592 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.259e-05/0.5365, allocations: 1.281 kB / 0.9592 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002258/0.5367, allocations: 97.67 kB / 0.9593 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.5368, allocations: 1.344 kB / 0.9593 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.5368, allocations: 0 / 0.9593 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.5368, allocations: 4 kB / 0.9593 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001012/0.5369, allocations: 173.5 kB / 0.9595 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.5369, allocations: 1.281 kB / 0.9595 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.885e-05/0.537, allocations: 13.58 kB / 0.9595 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.537, allocations: 0 / 0.9595 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.537, allocations: 1.156 kB / 0.9595 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.537, allocations: 4 kB / 0.9595 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.537, allocations: 1.219 kB / 0.9595 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002164/0.5372, allocations: 192.4 kB / 0.9597 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.37e-05/0.5372, allocations: 78.45 kB / 0.9598 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.5373, allocations: 1.703 kB / 0.9598 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.096e-05/0.5373, allocations: 13.45 kB / 0.9598 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.524e-05/0.5374, allocations: 6.781 kB / 0.9598 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.5374, allocations: 9.297 kB / 0.9598 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.1e-05/0.5374, allocations: 81.84 kB / 0.9599 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5374, allocations: 0 / 0.9599 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002094/0.5376, allocations: 12.78 kB / 0.9599 GB, free: 3.098 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.0003719/0.538, allocations: 0.7274 MB / 0.9606 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001952/0.5382, allocations: 63.77 kB / 0.9607 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.5382, allocations: 0 / 0.9607 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.165e-05/0.5383, allocations: 32.16 kB / 0.9607 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.5386, allocations: 8.109 kB / 0.9607 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009867/0.5396, allocations: 1.32 MB / 0.962 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.508e-05/0.5396, allocations: 0.6801 MB / 0.9627 GB, free: 408 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.697e-05/0.5397, allocations: 2.75 kB / 0.9627 GB, free: 408 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.958e-05/0.5397, allocations: 12.8 kB / 0.9627 GB, free: 396 kB / 0.7169 GB Notification: Performance of SimCode: time 6.11e-07/0.5397, allocations: 0 / 0.9627 GB, free: 396 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009555/0.5493, allocations: 1.411 MB / 0.9641 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002014/0.5495, allocations: 196.8 kB / 0.9642 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.794/2.344, allocations: 4.5 kB / 0.9643 GB, free: 15.46 MB / 0.7325 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