Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.Factorial.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.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Factorial",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.001058/0.001058, allocations: 108 kB / 15.61 MB, free: 152 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.001105/0.001105, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.252/1.252, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.214/2.214, allocations: 390.3 MB / 0.6647 GB, free: 472 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 67.91 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6007/0.6019, allocations: 140.4 MB / 0.9497 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001963/0.6039, allocations: 1.498 MB / 0.9512 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000261/0.6042, allocations: 132.5 kB / 0.9513 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.836e-05/0.6043, allocations: 1.688 kB / 0.9513 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.933e-05/0.6043, allocations: 0 / 0.9513 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.452e-05/0.6043, allocations: 7.922 kB / 0.9513 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000169/0.6045, allocations: 30.52 kB / 0.9513 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.991e-05/0.6046, allocations: 23.73 kB / 0.9514 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.441e-05/0.6047, allocations: 12.86 kB / 0.9514 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.174e-05/0.6047, allocations: 8.594 kB / 0.9514 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.784e-05/0.6047, allocations: 20.12 kB / 0.9514 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.119e-05/0.6047, allocations: 2.719 kB / 0.9514 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.742e-05/0.6048, allocations: 15.77 kB / 0.9514 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.039e-05/0.6048, allocations: 7.938 kB / 0.9514 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.09e-05/0.6048, allocations: 11.31 kB / 0.9514 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.016e-05/0.6049, allocations: 36.81 kB / 0.9515 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.6049, allocations: 0 / 0.9515 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.533e-06/0.6049, allocations: 0 / 0.9515 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.6049, allocations: 5.219 kB / 0.9515 GB, free: 7.773 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000311/0.6053, allocations: 341.1 kB / 0.9518 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.783e-05/0.6053, allocations: 8.906 kB / 0.9518 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.865e-05/0.6053, allocations: 35.81 kB / 0.9518 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.096e-05/0.6053, allocations: 11.3 kB / 0.9519 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.843e-05/0.6054, allocations: 169.5 kB / 0.952 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.6054, allocations: 5.656 kB / 0.952 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.898e-06/0.6054, allocations: 1.719 kB / 0.952 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001471/0.6056, allocations: 57.8 kB / 0.9521 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.6056, allocations: 3.938 kB / 0.9521 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.6056, allocations: 3.984 kB / 0.9521 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.6056, allocations: 1.281 kB / 0.9521 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000162/0.6058, allocations: 41.47 kB / 0.9521 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000233/0.606, allocations: 267.1 kB / 0.9524 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002627/0.6063, allocations: 57.75 kB / 0.9524 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.557e-05/0.6064, allocations: 24.12 kB / 0.9525 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.579e-05/0.6065, allocations: 88.84 kB / 0.9525 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.338e-06/0.6065, allocations: 34.56 kB / 0.9526 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.6065, allocations: 1.531 kB / 0.9526 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003237/0.6068, allocations: 85.14 kB / 0.9527 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.469e-05/0.6068, allocations: 51.41 kB / 0.9527 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.72e-05/0.6069, allocations: 107.4 kB / 0.9528 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.382e-06/0.6069, allocations: 25.7 kB / 0.9528 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.96e-05/0.6069, allocations: 89.58 kB / 0.9529 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.074e-05/0.6069, allocations: 9.156 kB / 0.9529 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.759e-05/0.607, allocations: 21.73 kB / 0.953 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.03e-05/0.607, allocations: 312.5 kB / 0.9533 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.246e-05/0.6071, allocations: 21.91 kB / 0.9533 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.21e-05/0.6072, allocations: 18.8 kB / 0.9533 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001496/0.6073, allocations: 54.22 kB / 0.9533 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.6073, allocations: 1.562 kB / 0.9533 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001848/0.6075, allocations: 74.67 kB / 0.9534 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.427e-06/0.6075, allocations: 9.406 kB / 0.9534 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.6075, allocations: 1.375 kB / 0.9534 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.6076, allocations: 0 / 0.9534 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.299e-05/0.6076, allocations: 11.83 kB / 0.9534 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.6077, allocations: 7.984 kB / 0.9534 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.177e-05/0.6077, allocations: 7.641 kB / 0.9535 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.6077, allocations: 1.25 kB / 0.9535 GB, free: 5.754 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 (rea2Int.y,fac.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 3.892e-05/0.6078, allocations: 120 kB / 0.9536 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.314e-05/0.6078, allocations: 1.094 kB / 0.9536 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000214/0.608, allocations: 78.83 kB / 0.9536 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.608, allocations: 5.281 kB / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.608, allocations: 0 / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.608, allocations: 0 / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.889e-05/0.6081, allocations: 172 kB / 0.9538 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.6081, allocations: 0 / 0.9538 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.811e-05/0.6082, allocations: 19.86 kB / 0.9538 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.6082, allocations: 1.375 kB / 0.9538 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.6082, allocations: 0 / 0.9538 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.6082, allocations: 0 / 0.9538 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.6082, allocations: 1.219 kB / 0.9538 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001958/0.6084, allocations: 178.8 kB / 0.954 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.353e-05/0.6085, allocations: 82.36 kB / 0.9541 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.098e-05/0.6085, allocations: 0 / 0.9541 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.798e-05/0.6086, allocations: 8.266 kB / 0.9541 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.092e-05/0.6086, allocations: 6.469 kB / 0.9541 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-06/0.6086, allocations: 5.203 kB / 0.9541 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.719e-05/0.6086, allocations: 82.41 kB / 0.9542 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6086, allocations: 0 / 0.9542 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002035/0.6088, allocations: 7.781 kB / 0.9542 GB, free: 4.992 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 (fac.y,rea2Int.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.0003424/0.6092, allocations: 0.7085 MB / 0.9549 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001988/0.6094, allocations: 53.62 kB / 0.9549 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.6094, allocations: 0 / 0.9549 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.858e-05/0.6095, allocations: 31.56 kB / 0.955 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002132/0.6097, allocations: 5.375 kB / 0.955 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003139/0.61, allocations: 147.8 kB / 0.9551 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.357e-05/0.6101, allocations: 0.6858 MB / 0.9558 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.568e-05/0.6102, allocations: 2.25 kB / 0.9558 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.758e-05/0.6102, allocations: 14.61 kB / 0.9558 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.6102, allocations: 0 / 0.9558 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09809/0.7083, allocations: 1.543 MB / 0.9573 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.193/7.901, allocations: 16.31 kB / 0.9573 GB, free: 2.488 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches