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.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: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00162/0.001619, allocations: 111.6 kB / 15.99 MB, free: 6.355 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.001877/0.001878, allocations: 191.5 kB / 16.91 MB, free: 6.195 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.448/1.448, allocations: 222.9 MB / 240.6 MB, free: 15.39 MB / 206.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.539/2.539, allocations: 390.3 MB / 0.665 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 67.66 kB / 0.8127 GB, free: 33.28 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2534, allocations: 140.4 MB / 0.9498 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001896/0.2553, allocations: 0.6433 MB / 0.9504 GB, free: 8.598 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002661/0.2556, allocations: 55.83 kB / 0.9505 GB, free: 8.543 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.068e-05/0.2556, allocations: 0 / 0.9505 GB, free: 8.543 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.514e-05/0.2557, allocations: 0 / 0.9505 GB, free: 8.543 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.741e-06/0.2557, allocations: 4 kB / 0.9505 GB, free: 8.539 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.2559, allocations: 7.938 kB / 0.9505 GB, free: 8.531 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 3.665e-05/0.256, allocations: 0 / 0.9505 GB, free: 8.531 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.87e-05/0.256, allocations: 7.984 kB / 0.9505 GB, free: 8.523 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.644e-05/0.2561, allocations: 11.94 kB / 0.9505 GB, free: 8.512 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 2.042e-05/0.2561, allocations: 0 / 0.9505 GB, free: 8.512 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.04e-05/0.2561, allocations: 0 / 0.9505 GB, free: 8.512 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.247e-05/0.2562, allocations: 7.984 kB / 0.9505 GB, free: 8.504 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.465e-05/0.2562, allocations: 7.984 kB / 0.9505 GB, free: 8.496 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.316e-05/0.2562, allocations: 4 kB / 0.9505 GB, free: 8.492 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 6.03e-05/0.2563, allocations: 0 / 0.9505 GB, free: 8.492 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.126e-06/0.2563, allocations: 3.984 kB / 0.9505 GB, free: 8.488 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.823e-06/0.2563, allocations: 0 / 0.9505 GB, free: 8.488 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.2563, allocations: 4 kB / 0.9505 GB, free: 8.484 MB / 0.7325 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.0002924/0.2566, allocations: 315.6 kB / 0.9508 GB, free: 8.125 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.2567, allocations: 8.031 kB / 0.9508 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.121e-05/0.2567, allocations: 4.844 kB / 0.9508 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.626e-05/0.2568, allocations: 168.4 kB / 0.951 GB, free: 7.91 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.2568, allocations: 8.312 kB / 0.951 GB, free: 7.902 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.768e-06/0.2568, allocations: 4.375 kB / 0.951 GB, free: 7.898 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.257, allocations: 30.2 kB / 0.951 GB, free: 7.863 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.257, allocations: 4.188 kB / 0.951 GB, free: 7.859 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.257, allocations: 3.938 kB / 0.951 GB, free: 7.855 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.257, allocations: 0 / 0.951 GB, free: 7.855 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.513e-05/0.257, allocations: 15.92 kB / 0.9511 GB, free: 7.84 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001393/0.2572, allocations: 145.7 kB / 0.9512 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 5.011e-05/0.2572, allocations: 22.61 kB / 0.9512 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.212e-05/0.2573, allocations: 15.03 kB / 0.9512 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001665/0.2574, allocations: 85.09 kB / 0.9513 GB, free: 7.5 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.2575, allocations: 30.56 kB / 0.9513 GB, free: 7.461 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.2575, allocations: 7.938 kB / 0.9514 GB, free: 7.453 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0001435/0.2576, allocations: 45.62 kB / 0.9514 GB, free: 7.402 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/0.2577, allocations: 51.41 kB / 0.9514 GB, free: 7.34 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.804e-05/0.2577, allocations: 89.86 kB / 0.9515 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.2577, allocations: 29.7 kB / 0.9516 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.328e-05/0.2578, allocations: 80.14 kB / 0.9516 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.2578, allocations: 0 / 0.9516 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.167e-05/0.2578, allocations: 17.72 kB / 0.9517 GB, free: 7.102 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.98e-05/0.2579, allocations: 315 kB / 0.952 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.141e-05/0.2579, allocations: 0 / 0.952 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.176e-05/0.258, allocations: 7.984 kB / 0.952 GB, free: 6.777 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.39e-05/0.258, allocations: 16.8 kB / 0.952 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.258, allocations: 0 / 0.952 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.089e-05/0.2581, allocations: 33.7 kB / 0.952 GB, free: 6.719 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.2581, allocations: 4 kB / 0.952 GB, free: 6.715 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.2581, allocations: 0 / 0.952 GB, free: 6.715 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.2581, allocations: 12.03 kB / 0.952 GB, free: 6.703 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.757e-05/0.2582, allocations: 3.984 kB / 0.952 GB, free: 6.699 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.2582, allocations: 0 / 0.952 GB, free: 6.699 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.655e-05/0.2582, allocations: 4 kB / 0.952 GB, free: 6.695 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-06/0.2582, allocations: 0 / 0.952 GB, free: 6.695 MB / 0.7325 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 6.642e-05/0.2583, allocations: 109.8 kB / 0.9521 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.665e-06/0.2583, allocations: 0 / 0.9521 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.735e-05/0.2584, allocations: 56.88 kB / 0.9522 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.2584, allocations: 7.969 kB / 0.9522 GB, free: 6.508 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2584, allocations: 0 / 0.9522 GB, free: 6.508 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.84e-06/0.2584, allocations: 4 kB / 0.9522 GB, free: 6.504 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.2585, allocations: 149.6 kB / 0.9523 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2586, allocations: 0 / 0.9523 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.529e-05/0.2586, allocations: 4 kB / 0.9523 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.2586, allocations: 0 / 0.9523 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.2586, allocations: 3.938 kB / 0.9524 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2586, allocations: 0 / 0.9524 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/0.2586, allocations: 4 kB / 0.9524 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.614e-05/0.2587, allocations: 73.06 kB / 0.9524 GB, free: 6.207 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.644e-05/0.2587, allocations: 77.11 kB / 0.9525 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.209e-05/0.2588, allocations: 7.875 kB / 0.9525 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.185e-05/0.2588, allocations: 0 / 0.9525 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.855e-05/0.2588, allocations: 0 / 0.9525 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.2588, allocations: 4 kB / 0.9525 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 2.627e-05/0.2588, allocations: 79.28 kB / 0.9526 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2588, allocations: 0 / 0.9526 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001983/0.2591, allocations: 12.02 kB / 0.9526 GB, free: 6.012 MB / 0.7325 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.0001528/0.2592, allocations: 99.25 kB / 0.9527 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 8.263e-05/0.2593, allocations: 8 kB / 0.9527 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2593, allocations: 0 / 0.9527 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.749e-05/0.2593, allocations: 11.92 kB / 0.9527 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001358/0.2595, allocations: 4 kB / 0.9527 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001992/0.2597, allocations: 106.9 kB / 0.9528 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.2599, allocations: 0.6766 MB / 0.9535 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.968e-05/0.2599, allocations: 11.42 kB / 0.9535 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.2599, allocations: 0 / 0.9535 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of Templates: time 0.001792/0.2617, allocations: 455.7 kB / 0.9539 GB, free: 4.586 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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