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.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.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.0009562/0.0009562, 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.006977/0.006977, 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.197/1.197, allocations: 223.3 MB / 240.3 MB, free: 5.355 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.092/2.092, allocations: 390.9 MB / 0.6664 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002979/0.0002979, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5575/0.5578, allocations: 142.4 MB / 0.9552 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001159/0.559, allocations: 1.227 MB / 0.9564 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002476/0.5592, allocations: 120.8 kB / 0.9565 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.722e-05/0.5593, allocations: 0 / 0.9565 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.267e-05/0.5593, allocations: 1.125 kB / 0.9565 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.612e-05/0.5593, allocations: 3.938 kB / 0.9565 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001198/0.5594, allocations: 29.91 kB / 0.9565 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.131e-05/0.5595, allocations: 23.64 kB / 0.9565 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.831e-05/0.5595, allocations: 16.08 kB / 0.9566 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.47e-05/0.5596, allocations: 8.219 kB / 0.9566 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.266e-05/0.5596, allocations: 15.41 kB / 0.9566 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.277e-06/0.5596, allocations: 2.438 kB / 0.9566 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.58e-05/0.5597, allocations: 8.188 kB / 0.9566 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.077e-06/0.5597, allocations: 5.328 kB / 0.9566 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.048e-05/0.5597, allocations: 39.92 kB / 0.9566 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.265e-05/0.5598, allocations: 29.16 kB / 0.9567 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.5598, allocations: 0 / 0.9567 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.72e-07/0.5598, allocations: 0 / 0.9567 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.295e-06/0.5598, allocations: 4 kB / 0.9567 GB, free: 6.5 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.0002709/0.5601, allocations: 347.9 kB / 0.957 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.5601, allocations: 9.281 kB / 0.957 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.753e-05/0.5601, allocations: 31.75 kB / 0.957 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.546e-05/0.5602, allocations: 2.875 kB / 0.957 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.285e-05/0.5602, allocations: 174.2 kB / 0.9572 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.5602, allocations: 5.375 kB / 0.9572 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.07e-05/0.5603, allocations: 6.406 kB / 0.9572 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001484/0.5604, allocations: 57.92 kB / 0.9573 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.23e-06/0.5604, allocations: 7.875 kB / 0.9573 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.832e-06/0.5604, allocations: 4 kB / 0.9573 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.036e-06/0.5604, allocations: 1.125 kB / 0.9573 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001721/0.5606, allocations: 52.2 kB / 0.9573 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002146/0.5608, allocations: 261.6 kB / 0.9576 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/0.5611, allocations: 67.81 kB / 0.9576 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.241e-05/0.5612, allocations: 33.91 kB / 0.9577 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.278e-05/0.5613, allocations: 84.5 kB / 0.9578 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.026e-05/0.5613, allocations: 31.78 kB / 0.9578 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.5613, allocations: 0 / 0.9578 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003287/0.5616, allocations: 108.2 kB / 0.9579 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.435e-05/0.5617, allocations: 52.72 kB / 0.9579 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.05e-05/0.5617, allocations: 111.3 kB / 0.958 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.943e-06/0.5617, allocations: 25.7 kB / 0.9581 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.939e-05/0.5618, allocations: 85.02 kB / 0.9582 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.09e-05/0.5618, allocations: 5.219 kB / 0.9582 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.065e-05/0.5618, allocations: 19.3 kB / 0.9582 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.349e-05/0.5618, allocations: 320.5 kB / 0.9585 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.769e-05/0.5619, allocations: 26.33 kB / 0.9585 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.992e-05/0.562, allocations: 31.8 kB / 0.9585 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/0.5622, allocations: 52.52 kB / 0.9586 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.5622, allocations: 4 kB / 0.9586 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001993/0.5624, allocations: 85.86 kB / 0.9587 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.5624, allocations: 5.625 kB / 0.9587 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-06/0.5624, allocations: 0 / 0.9587 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.444e-06/0.5624, allocations: 1.062 kB / 0.9587 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.967e-05/0.5625, allocations: 21.2 kB / 0.9587 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.835e-06/0.5625, allocations: 5.375 kB / 0.9587 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.492e-05/0.5626, allocations: 5.344 kB / 0.9587 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.5626, allocations: 5.266 kB / 0.9587 GB, free: 4.473 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.909e-05/0.5626, allocations: 116.5 kB / 0.9588 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.225e-05/0.5627, allocations: 1.062 kB / 0.9588 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002227/0.5629, allocations: 92.23 kB / 0.9589 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.5629, allocations: 1.156 kB / 0.9589 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.5629, allocations: 0 / 0.9589 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.5629, allocations: 5.188 kB / 0.9589 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.563, allocations: 167.9 kB / 0.9591 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.563, allocations: 0 / 0.9591 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.051e-05/0.5631, allocations: 18.7 kB / 0.9591 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.5631, allocations: 0 / 0.9591 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-06/0.5631, allocations: 0 / 0.9591 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.5631, allocations: 5.344 kB / 0.9591 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.5631, allocations: 0 / 0.9591 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002107/0.5633, allocations: 189.3 kB / 0.9593 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.32e-05/0.5634, allocations: 81.05 kB / 0.9594 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.738e-06/0.5634, allocations: 1.781 kB / 0.9594 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.039e-05/0.5635, allocations: 9.766 kB / 0.9594 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.512e-05/0.5635, allocations: 5.844 kB / 0.9594 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.5635, allocations: 1.969 kB / 0.9594 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.76e-05/0.5635, allocations: 87.39 kB / 0.9595 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5635, allocations: 0 / 0.9595 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002046/0.5638, allocations: 7.125 kB / 0.9595 GB, free: 3.715 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.0003638/0.5641, allocations: 0.7263 MB / 0.9602 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001955/0.5643, allocations: 57.72 kB / 0.9602 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.5643, allocations: 5.156 kB / 0.9602 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.344e-05/0.5644, allocations: 28.11 kB / 0.9603 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.5647, allocations: 13.36 kB / 0.9603 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002927/0.565, allocations: 152.3 kB / 0.9604 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.413e-05/0.565, allocations: 0.6823 MB / 0.9611 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.532e-05/0.5651, allocations: 1.844 kB / 0.9611 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.613e-05/0.5651, allocations: 9.312 kB / 0.9611 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.5651, allocations: 0 / 0.9611 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.008401/0.5735, allocations: 1.287 MB / 0.9624 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001328/0.5737, allocations: 202.5 kB / 0.9626 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/2.198, allocations: 0 / 0.9626 GB, free: 1.203 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