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.001575/0.001575, 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.001901/0.001901, 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.339/1.339, 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.42/2.42, allocations: 390.2 MB / 0.6647 GB, free: 500 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 63.91 kB / 0.8126 GB, free: 14.4 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6501/0.6515, 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.00234/0.6539, allocations: 1.502 MB / 0.9512 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002966/0.6542, allocations: 128.4 kB / 0.9513 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.376e-05/0.6542, allocations: 1.469 kB / 0.9513 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.534e-05/0.6542, allocations: 7.875 kB / 0.9513 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.227e-05/0.6543, allocations: 0 / 0.9513 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001935/0.6545, allocations: 26.02 kB / 0.9513 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.633e-05/0.6546, allocations: 33 kB / 0.9514 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.389e-05/0.6546, allocations: 12.39 kB / 0.9514 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.431e-05/0.6547, allocations: 3.906 kB / 0.9514 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.284e-05/0.6547, allocations: 21.27 kB / 0.9514 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.6548, allocations: 2.875 kB / 0.9514 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.602e-05/0.6548, allocations: 10.75 kB / 0.9514 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.428e-05/0.6548, allocations: 13.61 kB / 0.9514 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.331e-05/0.6549, allocations: 14.89 kB / 0.9514 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.209e-05/0.655, allocations: 28.02 kB / 0.9515 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.655, allocations: 0 / 0.9515 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.292e-06/0.655, allocations: 0 / 0.9515 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.655, allocations: 1.531 kB / 0.9515 GB, free: 7.781 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.000367/0.6554, allocations: 348.6 kB / 0.9518 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.6554, allocations: 9.25 kB / 0.9518 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.813e-05/0.6554, allocations: 35.97 kB / 0.9519 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.522e-05/0.6555, allocations: 6.312 kB / 0.9519 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.983e-05/0.6555, allocations: 173.6 kB / 0.952 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.6556, allocations: 1.812 kB / 0.952 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.6556, allocations: 6.938 kB / 0.952 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001673/0.6557, allocations: 56.86 kB / 0.9521 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.6558, allocations: 3.938 kB / 0.9521 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.6558, allocations: 4 kB / 0.9521 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.6558, allocations: 1.406 kB / 0.9521 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001798/0.656, allocations: 37.83 kB / 0.9521 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002737/0.6562, allocations: 270.4 kB / 0.9524 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003045/0.6566, allocations: 61.75 kB / 0.9524 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.449e-05/0.6567, allocations: 24.41 kB / 0.9525 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.917e-05/0.6568, allocations: 80.77 kB / 0.9525 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.289e-05/0.6568, allocations: 38.55 kB / 0.9526 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.6568, allocations: 1.156 kB / 0.9526 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003546/0.6571, allocations: 89.8 kB / 0.9527 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/0.6572, allocations: 55.34 kB / 0.9527 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.481e-05/0.6572, allocations: 107.9 kB / 0.9528 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.685e-06/0.6572, allocations: 25.7 kB / 0.9529 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.287e-05/0.6573, allocations: 85.36 kB / 0.9529 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.367e-05/0.6573, allocations: 9.188 kB / 0.9529 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-05/0.6573, allocations: 17.61 kB / 0.953 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.099e-05/0.6574, allocations: 314.8 kB / 0.9533 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.891e-05/0.6575, allocations: 19.77 kB / 0.9533 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.029e-05/0.6575, allocations: 21.97 kB / 0.9533 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000163/0.6577, allocations: 50.06 kB / 0.9533 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.6577, allocations: 1.406 kB / 0.9533 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001949/0.6579, allocations: 75.53 kB / 0.9534 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.6579, allocations: 5.219 kB / 0.9534 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.259e-06/0.658, allocations: 0 / 0.9534 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.658, allocations: 5.141 kB / 0.9534 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-05/0.658, allocations: 19.31 kB / 0.9534 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.6581, allocations: 0 / 0.9534 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.414e-05/0.6581, allocations: 8.859 kB / 0.9535 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.6581, allocations: 1.188 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 4.867e-05/0.6582, allocations: 110.9 kB / 0.9536 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.6582, allocations: 6.438 kB / 0.9536 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002339/0.6585, allocations: 82.73 kB / 0.9536 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.6585, allocations: 0 / 0.9536 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.6585, allocations: 3.938 kB / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.6585, allocations: 1.406 kB / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.6586, allocations: 167.1 kB / 0.9538 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.6586, allocations: 1.469 kB / 0.9538 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.335e-05/0.6587, allocations: 18.89 kB / 0.9538 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.6587, allocations: 0 / 0.9538 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.6587, allocations: 1.219 kB / 0.9538 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.6587, allocations: 0 / 0.9538 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.6587, allocations: 1.156 kB / 0.9538 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002147/0.6589, allocations: 174 kB / 0.954 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.593e-05/0.659, allocations: 82.14 kB / 0.9541 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.659, allocations: 5.312 kB / 0.9541 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.2e-05/0.6591, allocations: 7.672 kB / 0.9541 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.913e-05/0.6591, allocations: 2.531 kB / 0.9541 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.658e-06/0.6591, allocations: 1.25 kB / 0.9541 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.105e-05/0.6591, allocations: 87.02 kB / 0.9542 GB, free: 5 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6592, allocations: 3.938 kB / 0.9542 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002198/0.6594, allocations: 7 kB / 0.9542 GB, free: 4.996 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.0003893/0.6598, allocations: 0.7098 MB / 0.9549 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002156/0.66, allocations: 44.48 kB / 0.9549 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.66, allocations: 7.875 kB / 0.9549 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.72e-05/0.6601, allocations: 30.56 kB / 0.955 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/0.6604, allocations: 6.719 kB / 0.955 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003654/0.6607, allocations: 139.2 kB / 0.9551 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.053e-05/0.6608, allocations: 0.6824 MB / 0.9558 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.903e-05/0.6609, allocations: 6.094 kB / 0.9558 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.204e-05/0.6609, allocations: 18.45 kB / 0.9558 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.6609, allocations: 0 / 0.9558 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01587/0.6768, allocations: 1.555 MB / 0.9573 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.184/7.861, allocations: 2.969 kB / 0.9573 GB, free: 2.496 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 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.csv","/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