Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_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.0009321/0.0009318, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.005849/0.005849, allocations: 170.8 kB / 16.26 MB, free: 6.613 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.255/1.255, allocations: 223.3 MB / 240.3 MB, free: 5.328 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.125/2.125, allocations: 390.9 MB / 0.6664 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003238/0.0003239, allocations: 12 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5533/0.5536, allocations: 142.4 MB / 0.9552 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0005505/0.5542, allocations: 331.8 kB / 0.9555 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002145/0.5544, allocations: 47.91 kB / 0.9555 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.827e-06/0.5545, allocations: 0 / 0.9555 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.929e-06/0.5545, allocations: 0 / 0.9555 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.018e-06/0.5545, allocations: 0 / 0.9555 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001436/0.5546, allocations: 7.219 kB / 0.9555 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.151e-05/0.5547, allocations: 2.25 kB / 0.9555 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.075e-05/0.5547, allocations: 0.9688 kB / 0.9555 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.158e-05/0.5547, allocations: 1.25 kB / 0.9555 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.001e-05/0.5547, allocations: 9.109 kB / 0.9556 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.325e-06/0.5548, allocations: 1.188 kB / 0.9556 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.948e-05/0.5548, allocations: 15.25 kB / 0.9556 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.196e-06/0.5548, allocations: 5.453 kB / 0.9556 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.432e-05/0.5549, allocations: 25.7 kB / 0.9556 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.021e-05/0.5549, allocations: 8.266 kB / 0.9556 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.5549, allocations: 0 / 0.9556 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.582e-06/0.555, allocations: 1.062 kB / 0.9556 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.815e-06/0.555, allocations: 0 / 0.9556 GB, free: 7.379 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0001608/0.5551, allocations: 310 kB / 0.9559 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.5552, allocations: 10.09 kB / 0.9559 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.991e-05/0.5552, allocations: 34.69 kB / 0.9559 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.717e-05/0.5552, allocations: 9.812 kB / 0.956 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.102e-05/0.5553, allocations: 164.4 kB / 0.9561 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.165e-06/0.5553, allocations: 1.344 kB / 0.9561 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.69e-06/0.5553, allocations: 1.531 kB / 0.9561 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.147e-05/0.5554, allocations: 33.08 kB / 0.9561 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.5554, allocations: 5.031 kB / 0.9562 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.971e-06/0.5554, allocations: 3.984 kB / 0.9562 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.5554, allocations: 0 / 0.9562 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.757e-05/0.5554, allocations: 7.047 kB / 0.9562 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.155e-05/0.5555, allocations: 151.7 kB / 0.9563 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.595e-05/0.5556, allocations: 28.23 kB / 0.9563 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.451e-05/0.5556, allocations: 10.97 kB / 0.9563 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001124/0.5557, allocations: 79.7 kB / 0.9564 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.258e-05/0.5557, allocations: 31.66 kB / 0.9565 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.21e-07/0.5557, allocations: 1.094 kB / 0.9565 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.000104/0.5558, allocations: 53.75 kB / 0.9565 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.769e-05/0.5559, allocations: 56.41 kB / 0.9566 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.389e-05/0.5559, allocations: 89.86 kB / 0.9566 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.949e-06/0.5559, allocations: 29.64 kB / 0.9567 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.025e-06/0.5559, allocations: 85.23 kB / 0.9568 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.422e-05/0.5559, allocations: 1.531 kB / 0.9568 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.638e-05/0.5559, allocations: 9.719 kB / 0.9568 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.207e-05/0.556, allocations: 312.2 kB / 0.9571 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.578e-06/0.556, allocations: 5.562 kB / 0.9571 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.613e-06/0.556, allocations: 5.422 kB / 0.9571 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.38e-05/0.556, allocations: 14.05 kB / 0.9571 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.556, allocations: 1.281 kB / 0.9571 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.7e-05/0.5561, allocations: 33.45 kB / 0.9571 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.027e-06/0.5561, allocations: 8.781 kB / 0.9571 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.5561, allocations: 3.938 kB / 0.9571 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.117e-06/0.5561, allocations: 1.094 kB / 0.9571 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.521e-05/0.5562, allocations: 11.02 kB / 0.9571 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.5562, allocations: 4.094 kB / 0.9571 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.362e-05/0.5562, allocations: 3.219 kB / 0.9571 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-06/0.5562, allocations: 0.9688 kB / 0.9571 GB, free: 5.625 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.396e-05/0.5562, allocations: 106.7 kB / 0.9573 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.031e-06/0.5562, allocations: 5.125 kB / 0.9573 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.493e-05/0.5563, allocations: 48.16 kB / 0.9573 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.5563, allocations: 0 / 0.9573 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.5563, allocations: 1.188 kB / 0.9573 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.5563, allocations: 4.031 kB / 0.9573 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.313e-05/0.5564, allocations: 148.2 kB / 0.9574 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.5564, allocations: 0 / 0.9574 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.017e-05/0.5564, allocations: 6.562 kB / 0.9575 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.5564, allocations: 1.188 kB / 0.9575 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.869e-06/0.5564, allocations: 3.938 kB / 0.9575 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.5564, allocations: 0.9688 kB / 0.9575 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.5564, allocations: 0 / 0.9575 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.988e-05/0.5565, allocations: 69.78 kB / 0.9575 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.25e-05/0.5565, allocations: 82.55 kB / 0.9576 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.155e-06/0.5565, allocations: 3.938 kB / 0.9576 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.026e-05/0.5565, allocations: 1.375 kB / 0.9576 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.859e-05/0.5566, allocations: 1.312 kB / 0.9576 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.5566, allocations: 3.984 kB / 0.9576 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.717e-06/0.5566, allocations: 76.78 kB / 0.9577 GB, free: 5 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5566, allocations: 0 / 0.9577 GB, free: 5 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002008/0.5568, allocations: 4.125 kB / 0.9577 GB, free: 5 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001968/0.557, allocations: 0.6068 MB / 0.9583 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.074e-05/0.5571, allocations: 14.91 kB / 0.9583 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.5571, allocations: 0 / 0.9583 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.316e-05/0.5571, allocations: 7.688 kB / 0.9583 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001307/0.5572, allocations: 6.469 kB / 0.9583 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000205/0.5574, allocations: 118.8 kB / 0.9584 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.513e-05/0.5575, allocations: 0.6718 MB / 0.9591 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.203e-05/0.5575, allocations: 9.172 kB / 0.9591 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.366e-05/0.5575, allocations: 9 kB / 0.9591 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of SimCode: time 3.11e-07/0.5575, allocations: 0 / 0.9591 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.008859/0.5664, allocations: 0.8683 MB / 0.9599 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/0.5666, allocations: 204.6 kB / 0.9601 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.497/2.064, allocations: 0 / 0.9601 GB, free: 2.859 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches