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.001243/0.001244, allocations: 115.3 kB / 15.34 MB, free: 0.5078 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.001334/0.001334, allocations: 188.8 kB / 16.25 MB, free: 6.586 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.247/1.247, allocations: 222.9 MB / 239.9 MB, free: 4.504 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.156/2.156, allocations: 390.2 MB / 0.6644 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 75.88 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5732/0.5746, allocations: 140.4 MB / 0.9492 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002182/0.5768, allocations: 1.569 MB / 0.9508 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002561/0.5771, allocations: 120.3 kB / 0.9509 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.756e-05/0.5771, allocations: 0 / 0.9509 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.687e-05/0.5771, allocations: 1.344 kB / 0.9509 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.648e-05/0.5772, allocations: 7.875 kB / 0.9509 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001742/0.5774, allocations: 21.98 kB / 0.9509 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.054e-05/0.5774, allocations: 33.2 kB / 0.9509 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.21e-05/0.5775, allocations: 11.55 kB / 0.9509 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.27e-05/0.5775, allocations: 9.453 kB / 0.951 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.588e-05/0.5776, allocations: 16.33 kB / 0.951 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.154e-05/0.5776, allocations: 2.375 kB / 0.951 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.535e-05/0.5777, allocations: 10.22 kB / 0.951 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.021e-05/0.5777, allocations: 5.938 kB / 0.951 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.395e-05/0.5777, allocations: 22.97 kB / 0.951 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.96e-05/0.5778, allocations: 24.22 kB / 0.951 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.5778, allocations: 4 kB / 0.951 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.102e-06/0.5778, allocations: 0 / 0.951 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.147e-06/0.5778, allocations: 1.594 kB / 0.951 GB, free: 7.691 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.0003204/0.5781, allocations: 348.2 kB / 0.9514 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.5782, allocations: 10.25 kB / 0.9514 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.012e-05/0.5782, allocations: 35.78 kB / 0.9514 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.299e-05/0.5782, allocations: 6.375 kB / 0.9514 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.75e-05/0.5783, allocations: 169.8 kB / 0.9516 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.5783, allocations: 5.844 kB / 0.9516 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.5783, allocations: 1.781 kB / 0.9516 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.5785, allocations: 66.19 kB / 0.9517 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.281e-06/0.5785, allocations: 3.938 kB / 0.9517 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.5785, allocations: 1.375 kB / 0.9517 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-06/0.5785, allocations: 0 / 0.9517 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001545/0.5787, allocations: 39.11 kB / 0.9517 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000252/0.5789, allocations: 273.3 kB / 0.952 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002733/0.5792, allocations: 53.86 kB / 0.952 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.26e-05/0.5793, allocations: 29.2 kB / 0.952 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.575e-05/0.5794, allocations: 79.86 kB / 0.9521 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.118e-05/0.5794, allocations: 43.94 kB / 0.9522 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.5794, allocations: 0 / 0.9522 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003162/0.5797, allocations: 89.38 kB / 0.9522 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.94e-05/0.5798, allocations: 56.72 kB / 0.9523 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.388e-05/0.5798, allocations: 105.9 kB / 0.9524 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.905e-06/0.5798, allocations: 27.08 kB / 0.9524 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.206e-05/0.5798, allocations: 85.52 kB / 0.9525 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.32e-05/0.5799, allocations: 9.281 kB / 0.9525 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.777e-05/0.5799, allocations: 12.47 kB / 0.9525 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.699e-05/0.5799, allocations: 320.2 kB / 0.9528 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.098e-05/0.58, allocations: 15.05 kB / 0.9528 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.143e-05/0.5801, allocations: 22.06 kB / 0.9529 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.5803, allocations: 50.27 kB / 0.9529 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.5803, allocations: 1.562 kB / 0.9529 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001789/0.5804, allocations: 75.17 kB / 0.953 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.5805, allocations: 5.531 kB / 0.953 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.546e-06/0.5805, allocations: 0 / 0.953 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.5805, allocations: 1.172 kB / 0.953 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.446e-05/0.5806, allocations: 23.47 kB / 0.953 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.908e-06/0.5806, allocations: 0 / 0.953 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.188e-05/0.5806, allocations: 7.656 kB / 0.953 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.5806, allocations: 1.625 kB / 0.953 GB, free: 5.664 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 4.515e-05/0.5807, allocations: 116.7 kB / 0.9531 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.222e-05/0.5807, allocations: 1.531 kB / 0.9531 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002083/0.5809, allocations: 81.92 kB / 0.9532 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.5809, allocations: 0 / 0.9532 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.5809, allocations: 4.969 kB / 0.9532 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.581, allocations: 3.938 kB / 0.9532 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.5811, allocations: 176.7 kB / 0.9534 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.5811, allocations: 0 / 0.9534 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.773e-05/0.5811, allocations: 11.55 kB / 0.9534 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.5812, allocations: 0 / 0.9534 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.5812, allocations: 1.312 kB / 0.9534 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.5812, allocations: 0 / 0.9534 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.5812, allocations: 0 / 0.9534 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001909/0.5814, allocations: 176 kB / 0.9536 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.396e-05/0.5814, allocations: 85.03 kB / 0.9537 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.5814, allocations: 1.156 kB / 0.9537 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.746e-05/0.5815, allocations: 4.5 kB / 0.9537 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.941e-05/0.5815, allocations: 6.578 kB / 0.9537 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.5815, allocations: 1.438 kB / 0.9537 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.859e-05/0.5816, allocations: 85.66 kB / 0.9537 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of sort global known variables: time 5.81e-07/0.5816, allocations: 0 / 0.9537 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002111/0.5818, allocations: 12.03 kB / 0.9538 GB, free: 4.902 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.000353/0.5821, allocations: 0.7083 MB / 0.9545 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001925/0.5823, allocations: 49.06 kB / 0.9545 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5824, allocations: 0 / 0.9545 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.551e-05/0.5824, allocations: 27.58 kB / 0.9545 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00023/0.5827, allocations: 5.438 kB / 0.9545 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003348/0.583, allocations: 158.1 kB / 0.9547 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.637e-05/0.5831, allocations: 0.6808 MB / 0.9553 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.812e-05/0.5831, allocations: 2.688 kB / 0.9553 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.151e-05/0.5832, allocations: 14.31 kB / 0.9554 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.5832, allocations: 0 / 0.9554 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01009/0.5933, allocations: 1.409 MB / 0.9567 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001383/0.5934, allocations: 191.3 kB / 0.9569 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.749/2.342, allocations: 0 / 0.9569 GB, free: 2.305 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