Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_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.0008805/0.0008805, allocations: 91.84 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.005196/0.005196, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.274/1.274, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.521/2.521, allocations: 462.6 MB / 0.7364 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003085/0.0003085, allocations: 14.84 kB / 0.9029 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2524, allocations: 159.6 MB / 1.059 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.000671/0.2531, allocations: 326.9 kB / 1.059 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002703/0.2534, allocations: 55.73 kB / 1.059 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.018e-05/0.2534, allocations: 0 / 1.059 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.026e-05/0.2534, allocations: 0 / 1.059 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.33e-06/0.2534, allocations: 0 / 1.059 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001788/0.2536, allocations: 15.97 kB / 1.059 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.415e-05/0.2536, allocations: 0 / 1.059 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.957e-05/0.2537, allocations: 4 kB / 1.059 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.41e-05/0.2537, allocations: 0 / 1.059 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.383e-05/0.2537, allocations: 0 / 1.059 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.987e-06/0.2538, allocations: 4 kB / 1.059 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.517e-05/0.2538, allocations: 8 kB / 1.059 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.927e-06/0.2538, allocations: 0 / 1.059 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.111e-05/0.2539, allocations: 37.67 kB / 1.059 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.794e-05/0.254, allocations: 11.94 kB / 1.059 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.254, allocations: 0 / 1.059 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.152e-06/0.254, allocations: 0 / 1.059 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.254, allocations: 0 / 1.059 GB, free: 4.465 MB / 0.8106 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.0002344/0.2542, allocations: 311.6 kB / 1.06 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.2543, allocations: 15.97 kB / 1.06 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.356e-05/0.2543, allocations: 34.75 kB / 1.06 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.85e-05/0.2543, allocations: 0.9375 kB / 1.06 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.136e-05/0.2544, allocations: 164.3 kB / 1.06 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.2544, allocations: 384 / 1.06 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.2545, allocations: 8.375 kB / 1.06 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.819e-05/0.2545, allocations: 30.25 kB / 1.06 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.2546, allocations: 7.938 kB / 1.06 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-06/0.2546, allocations: 3.938 kB / 1.06 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.2546, allocations: 0 / 1.06 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.894e-05/0.2546, allocations: 4 kB / 1.06 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001283/0.2547, allocations: 153.7 kB / 1.06 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.694e-05/0.2548, allocations: 26.53 kB / 1.06 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.852e-05/0.2548, allocations: 8.922 kB / 1.06 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001514/0.255, allocations: 85.11 kB / 1.06 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.255, allocations: 42.55 kB / 1.06 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.21e-07/0.255, allocations: 0 / 1.06 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001222/0.2552, allocations: 41.64 kB / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/0.2552, allocations: 55.41 kB / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.438e-05/0.2552, allocations: 89.86 kB / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.2553, allocations: 25.7 kB / 1.06 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.571e-05/0.2553, allocations: 88.08 kB / 1.06 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.541e-05/0.2553, allocations: 3.938 kB / 1.06 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.606e-05/0.2553, allocations: 13.7 kB / 1.06 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.426e-05/0.2554, allocations: 310.8 kB / 1.061 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.209e-05/0.2554, allocations: 12.12 kB / 1.061 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.423e-06/0.2555, allocations: 0 / 1.061 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.888e-05/0.2555, allocations: 8.859 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2555, allocations: 4 kB / 1.061 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.057e-05/0.2556, allocations: 45.59 kB / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.2556, allocations: 4 kB / 1.061 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2556, allocations: 3.938 kB / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.536e-06/0.2556, allocations: 0 / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.147e-05/0.2557, allocations: 12.03 kB / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.888e-06/0.2557, allocations: 0 / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.358e-05/0.2557, allocations: 288 / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-06/0.2557, allocations: 0 / 1.061 GB, free: 2.629 MB / 0.8106 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.223e-05/0.2558, allocations: 109.8 kB / 1.061 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.336e-06/0.2558, allocations: 3.984 kB / 1.061 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.187e-05/0.2559, allocations: 48.7 kB / 1.061 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2559, allocations: 0 / 1.061 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2559, allocations: 0 / 1.061 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.2559, allocations: 4.031 kB / 1.061 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.296e-05/0.256, allocations: 153.7 kB / 1.061 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.256, allocations: 0 / 1.061 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.233e-05/0.256, allocations: 0 / 1.061 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.256, allocations: 4 kB / 1.061 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.256, allocations: 3.938 kB / 1.061 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.256, allocations: 3.938 kB / 1.061 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.256, allocations: 3.984 kB / 1.061 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.696e-05/0.2561, allocations: 65.08 kB / 1.061 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.091e-05/0.2561, allocations: 77.11 kB / 1.061 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.2562, allocations: 7.922 kB / 1.061 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.103e-05/0.2562, allocations: 4 kB / 1.061 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.057e-05/0.2562, allocations: 0 / 1.061 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.2562, allocations: 0 / 1.061 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.184e-05/0.2562, allocations: 75.28 kB / 1.061 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.533e-06/0.2562, allocations: 0 / 1.061 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001848/0.2564, allocations: 7.938 kB / 1.061 GB, free: 1.969 MB / 0.8106 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.0003333/0.2568, allocations: 0.6146 MB / 1.062 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.135e-05/0.2568, allocations: 11.98 kB / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2569, allocations: 0 / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.382e-05/0.2569, allocations: 4.094 kB / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001183/0.257, allocations: 4.062 kB / 1.062 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002605/0.2573, allocations: 116.3 kB / 1.062 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.2575, allocations: 0.6731 MB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.359e-05/0.2575, allocations: 4 kB / 1.063 GB, free: 456 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.945e-05/0.2575, allocations: 11.44 kB / 1.063 GB, free: 444 kB / 0.8106 GB Notification: Performance of SimCode: time 3.31e-07/0.2575, allocations: 0 / 1.063 GB, free: 444 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009678/0.2672, allocations: 0.8613 MB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/0.2674, allocations: 217.7 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.137/2.404, allocations: 2.531 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches