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.001295/0.001295, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001321/0.001321, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.296/1.296, allocations: 222.9 MB / 239.8 MB, free: 4.527 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.25/2.25, allocations: 390.2 MB / 0.6643 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 63.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5448/0.5461, allocations: 140.4 MB / 0.9491 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001447/0.5476, allocations: 0.6471 MB / 0.9497 GB, free: 8.598 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002104/0.5478, allocations: 48.17 kB / 0.9497 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.724e-06/0.5478, allocations: 0 / 0.9497 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.399e-05/0.5478, allocations: 4 kB / 0.9497 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.138e-06/0.5478, allocations: 0 / 0.9497 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001497/0.548, allocations: 4.125 kB / 0.9497 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 2.854e-05/0.548, allocations: 9.312 kB / 0.9498 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.056e-05/0.5481, allocations: 1.375 kB / 0.9498 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.219e-05/0.5481, allocations: 9.344 kB / 0.9498 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 1.536e-05/0.5481, allocations: 1.375 kB / 0.9498 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.535e-06/0.5481, allocations: 0 / 0.9498 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.346e-05/0.5482, allocations: 12.12 kB / 0.9498 GB, free: 8.535 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.394e-06/0.5482, allocations: 0 / 0.9498 GB, free: 8.535 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.417e-05/0.5482, allocations: 1.375 kB / 0.9498 GB, free: 8.535 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.937e-05/0.5483, allocations: 16.05 kB / 0.9498 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.5483, allocations: 0 / 0.9498 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.72e-07/0.5483, allocations: 0 / 0.9498 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.236e-06/0.5483, allocations: 1.375 kB / 0.9498 GB, free: 8.523 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.0001673/0.5485, allocations: 311.7 kB / 0.9501 GB, free: 8.172 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.5485, allocations: 13.61 kB / 0.9501 GB, free: 8.168 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.003e-05/0.5485, allocations: 30.75 kB / 0.9501 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.826e-05/0.5486, allocations: 10.19 kB / 0.9501 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 3.79e-05/0.5486, allocations: 160.4 kB / 0.9503 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.933e-06/0.5486, allocations: 4.375 kB / 0.9503 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.1e-06/0.5486, allocations: 1.75 kB / 0.9503 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.875e-05/0.5487, allocations: 37 kB / 0.9503 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.5487, allocations: 9.297 kB / 0.9503 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.949e-06/0.5487, allocations: 0 / 0.9503 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-06/0.5487, allocations: 0 / 0.9503 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.376e-05/0.5487, allocations: 4.125 kB / 0.9504 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.523e-05/0.5488, allocations: 151 kB / 0.9505 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.4e-05/0.5489, allocations: 32 kB / 0.9505 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.308e-05/0.5489, allocations: 6.234 kB / 0.9505 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001026/0.549, allocations: 81.23 kB / 0.9506 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.43e-05/0.549, allocations: 34.56 kB / 0.9506 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.549, allocations: 1.375 kB / 0.9506 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 9.96e-05/0.5491, allocations: 45.78 kB / 0.9507 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.548e-05/0.5491, allocations: 55.47 kB / 0.9507 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.43e-05/0.5492, allocations: 94.95 kB / 0.9508 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.45e-06/0.5492, allocations: 29.7 kB / 0.9509 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.384e-06/0.5492, allocations: 80.14 kB / 0.9509 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.312e-05/0.5492, allocations: 1.062 kB / 0.9509 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.112e-05/0.5492, allocations: 16.45 kB / 0.951 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.2e-05/0.5493, allocations: 312.2 kB / 0.9512 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.477e-06/0.5493, allocations: 1.469 kB / 0.9513 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.844e-06/0.5493, allocations: 6.344 kB / 0.9513 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.53e-05/0.5493, allocations: 13.42 kB / 0.9513 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.5493, allocations: 5.094 kB / 0.9513 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.819e-05/0.5494, allocations: 41.41 kB / 0.9513 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.5494, allocations: 4.594 kB / 0.9513 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.636e-06/0.5494, allocations: 8.906 kB / 0.9513 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-06/0.5494, allocations: 0 / 0.9513 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.376e-05/0.5495, allocations: 3.031 kB / 0.9513 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.5495, allocations: 1.25 kB / 0.9513 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.246e-05/0.5495, allocations: 2.281 kB / 0.9513 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.968e-06/0.5495, allocations: 5.062 kB / 0.9513 GB, free: 6.77 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.294e-05/0.5495, allocations: 107 kB / 0.9514 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.993e-06/0.5495, allocations: 1.219 kB / 0.9514 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.485e-05/0.5496, allocations: 47.25 kB / 0.9515 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.5496, allocations: 1.344 kB / 0.9515 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.5496, allocations: 0 / 0.9515 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.5496, allocations: 1.312 kB / 0.9515 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.05e-05/0.5497, allocations: 150.9 kB / 0.9516 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.5497, allocations: 11.97 kB / 0.9516 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.113e-05/0.5497, allocations: 7.031 kB / 0.9517 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.5497, allocations: 1.188 kB / 0.9517 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.24e-06/0.5497, allocations: 3.938 kB / 0.9517 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.5497, allocations: 1.094 kB / 0.9517 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.5497, allocations: 0 / 0.9517 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.009e-05/0.5498, allocations: 66.59 kB / 0.9517 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.061e-05/0.5498, allocations: 81.14 kB / 0.9518 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.826e-06/0.5498, allocations: 5.312 kB / 0.9518 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.037e-05/0.5498, allocations: 3.984 kB / 0.9518 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.827e-05/0.5499, allocations: 1.375 kB / 0.9518 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.5499, allocations: 1 kB / 0.9518 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.736e-06/0.5499, allocations: 75.28 kB / 0.9519 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5499, allocations: 1.062 kB / 0.9519 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001761/0.5501, allocations: 3.219 kB / 0.9519 GB, free: 6.141 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.0002065/0.5503, allocations: 0.6125 MB / 0.9525 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.322e-05/0.5503, allocations: 6.5 kB / 0.9525 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.5503, allocations: 3.938 kB / 0.9525 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.352e-05/0.5504, allocations: 7.953 kB / 0.9525 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000115/0.5505, allocations: 5.25 kB / 0.9525 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000205/0.5507, allocations: 109.8 kB / 0.9526 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.791e-05/0.5508, allocations: 0.6756 MB / 0.9533 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.138e-05/0.5508, allocations: 1.219 kB / 0.9533 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.492e-05/0.5508, allocations: 8.688 kB / 0.9533 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.5508, allocations: 0 / 0.9533 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009437/0.5602, allocations: 0.9342 MB / 0.9542 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001189/0.5604, allocations: 200.8 kB / 0.9544 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/2.2, allocations: 0.75 kB / 0.9544 GB, free: 3.926 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