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: translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_9_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.001433/0.001433, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001566/0.001566, allocations: 194.8 kB / 16.14 MB, free: 6.645 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.44/1.44, allocations: 222.9 MB / 239.8 MB, free: 4.602 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.603/2.603, allocations: 390.2 MB / 0.6642 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001246, allocations: 63.89 kB / 0.8118 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.811/0.8122, allocations: 140.4 MB / 0.9489 GB, free: 9.297 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003658/0.8159, allocations: 1.598 MB / 0.9505 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005072/0.8165, allocations: 128.2 kB / 0.9506 GB, free: 7.941 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.688e-05/0.8166, allocations: 0.9688 kB / 0.9506 GB, free: 7.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.949e-05/0.8166, allocations: 7.938 kB / 0.9506 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.253e-05/0.8167, allocations: 1.094 kB / 0.9506 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003321/0.8171, allocations: 30.66 kB / 0.9506 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.666e-05/0.8172, allocations: 34.17 kB / 0.9507 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.8173, allocations: 14.14 kB / 0.9507 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.277e-05/0.8174, allocations: 12.78 kB / 0.9507 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.329e-05/0.8174, allocations: 25.52 kB / 0.9507 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.8174, allocations: 2.656 kB / 0.9507 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.964e-05/0.8175, allocations: 15.97 kB / 0.9507 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.812e-05/0.8176, allocations: 6.203 kB / 0.9507 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.051e-05/0.8176, allocations: 11.25 kB / 0.9507 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001389/0.8178, allocations: 50.58 kB / 0.9508 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.8178, allocations: 0 / 0.9508 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.182e-06/0.8178, allocations: 3.938 kB / 0.9508 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.8178, allocations: 1.344 kB / 0.9508 GB, free: 7.793 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.0004892/0.8183, allocations: 351.2 kB / 0.9511 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.8183, allocations: 8.375 kB / 0.9511 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.907e-05/0.8184, allocations: 11.41 kB / 0.9512 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.8185, allocations: 170.8 kB / 0.9513 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.825e-05/0.8185, allocations: 1.625 kB / 0.9513 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.8186, allocations: 6.906 kB / 0.9513 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002208/0.8188, allocations: 63.12 kB / 0.9514 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.8188, allocations: 192 / 0.9514 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.8189, allocations: 13.17 kB / 0.9514 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.8189, allocations: 1.219 kB / 0.9514 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002004/0.8191, allocations: 51.02 kB / 0.9514 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004076/0.8195, allocations: 278.9 kB / 0.9517 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003437/0.8198, allocations: 54.72 kB / 0.9518 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.548e-05/0.8199, allocations: 28.81 kB / 0.9518 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002659/0.8202, allocations: 403.9 kB / 0.9522 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.8203, allocations: 35.55 kB / 0.9522 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.8203, allocations: 1 kB / 0.9522 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004094/0.8207, allocations: 91.14 kB / 0.9523 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.585e-05/0.8207, allocations: 51.41 kB / 0.9523 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.311e-05/0.8208, allocations: 111 kB / 0.9525 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.416e-05/0.8208, allocations: 26.83 kB / 0.9525 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.2e-05/0.8209, allocations: 93.25 kB / 0.9526 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.8209, allocations: 5 kB / 0.9526 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-05/0.8209, allocations: 17.88 kB / 0.9526 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.66e-05/0.821, allocations: 315.8 kB / 0.9529 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.428e-05/0.8211, allocations: 26.97 kB / 0.9529 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.972e-05/0.8212, allocations: 26.45 kB / 0.9529 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.8214, allocations: 43.28 kB / 0.953 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.8214, allocations: 0 / 0.953 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002223/0.8216, allocations: 73.09 kB / 0.9531 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.8216, allocations: 5.469 kB / 0.9531 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.8216, allocations: 0 / 0.9531 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.8217, allocations: 7.984 kB / 0.9531 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.282e-05/0.8218, allocations: 8.344 kB / 0.9531 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.8218, allocations: 0 / 0.9531 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.248e-05/0.8218, allocations: 15.64 kB / 0.9531 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.8219, allocations: 1.219 kB / 0.9531 GB, free: 5.406 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 6.579e-05/0.8219, allocations: 120.6 kB / 0.9532 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.895e-05/0.822, allocations: 5.281 kB / 0.9532 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002664/0.8222, allocations: 88.42 kB / 0.9533 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.8222, allocations: 5.281 kB / 0.9533 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.8223, allocations: 0 / 0.9533 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.8223, allocations: 4.031 kB / 0.9533 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001439/0.8224, allocations: 170.3 kB / 0.9535 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.8224, allocations: 0 / 0.9535 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.763e-05/0.8225, allocations: 11.55 kB / 0.9535 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.8225, allocations: 0 / 0.9535 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/0.8225, allocations: 1.594 kB / 0.9535 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.8225, allocations: 4 kB / 0.9535 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.8225, allocations: 0 / 0.9535 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002576/0.8228, allocations: 179.8 kB / 0.9537 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.763e-05/0.8228, allocations: 82.14 kB / 0.9537 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.8229, allocations: 1.156 kB / 0.9537 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.42e-05/0.823, allocations: 7.047 kB / 0.9537 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.669e-05/0.823, allocations: 7.344 kB / 0.9537 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.823, allocations: 1.031 kB / 0.9537 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.576e-05/0.8231, allocations: 93.53 kB / 0.9538 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8231, allocations: 1.094 kB / 0.9538 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002334/0.8233, allocations: 7.375 kB / 0.9538 GB, free: 4.629 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.0001599/0.8235, allocations: 104.1 kB / 0.9539 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002386/0.8237, allocations: 53.52 kB / 0.954 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.8237, allocations: 0 / 0.954 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001022/0.8238, allocations: 27.09 kB / 0.954 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000336/0.8242, allocations: 11.81 kB / 0.954 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003759/0.8246, allocations: 125.3 kB / 0.9542 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000154/0.8247, allocations: 0.6834 MB / 0.9548 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.189e-05/0.8248, allocations: 3.438 kB / 0.9548 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.83e-05/0.8248, allocations: 9.625 kB / 0.9548 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of SimCode: time 7.31e-07/0.8248, allocations: 0 / 0.9548 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of Templates: time 0.003706/0.8285, allocations: 0.6759 MB / 0.9555 GB, free: 3.305 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches