Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_11_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.001501/0.001501, allocations: 108 kB / 15.6 MB, free: 132 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.001637/0.001637, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.37/1.37, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.737/2.737, allocations: 469.8 MB / 0.7424 GB, free: 7.5 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001773, allocations: 68.3 kB / 0.9087 GB, free: 34.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2521, allocations: 159.2 MB / 1.064 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002582/0.2547, allocations: 1.51 MB / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003175/0.255, allocations: 125.5 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.272e-05/0.2551, allocations: 4 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.532e-05/0.2551, allocations: 3.938 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.719e-05/0.2552, allocations: 0 / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001869/0.2554, allocations: 23.92 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.64e-05/0.2554, allocations: 31.91 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.353e-05/0.2555, allocations: 15.98 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.698e-05/0.2556, allocations: 11.94 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.5e-05/0.2556, allocations: 15.92 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.2556, allocations: 8 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.972e-05/0.2557, allocations: 7.984 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.642e-05/0.2557, allocations: 11.98 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.584e-05/0.2557, allocations: 11.92 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.616e-05/0.2558, allocations: 27.91 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2559, allocations: 0 / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2559, allocations: 4 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.2559, allocations: 0 / 1.066 GB, free: 12.4 MB / 0.8262 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.0004358/0.2563, allocations: 347.7 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.2563, allocations: 8.031 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.6e-05/0.2564, allocations: 38.73 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.297e-05/0.2564, allocations: 4.938 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.2565, allocations: 164.3 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.2566, allocations: 384 / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.2566, allocations: 8.312 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001791/0.2568, allocations: 61.97 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.2568, allocations: 0 / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.2568, allocations: 4 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.2568, allocations: 4 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.257, allocations: 39.95 kB / 1.066 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003365/0.2573, allocations: 268.8 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.2576, allocations: 66.53 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.638e-05/0.2578, allocations: 20.84 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001074/0.2579, allocations: 85.09 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.075e-05/0.2579, allocations: 30.56 kB / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2579, allocations: 4 kB / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003623/0.2583, allocations: 97.56 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.2583, allocations: 51.41 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.533e-05/0.2584, allocations: 102 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.2584, allocations: 25.7 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.052e-05/0.2585, allocations: 88.08 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.591e-05/0.2585, allocations: 15.83 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.164e-05/0.2585, allocations: 13.72 kB / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.2587, allocations: 318.8 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.938e-05/0.2587, allocations: 27.97 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.415e-05/0.2588, allocations: 11.98 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/0.259, allocations: 48.81 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.259, allocations: 0 / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002055/0.2592, allocations: 73.59 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.2592, allocations: 12 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/0.2593, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.2593, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.498e-05/0.2593, allocations: 11.98 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.2594, allocations: 0 / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.589e-05/0.2594, allocations: 11.89 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.2594, allocations: 0 / 1.068 GB, free: 10.12 MB / 0.8262 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 8.339e-05/0.2595, allocations: 117.8 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.2595, allocations: 4 kB / 1.068 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002499/0.2598, allocations: 77.14 kB / 1.068 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.2598, allocations: 7.938 kB / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.2598, allocations: 0 / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2598, allocations: 4 kB / 1.068 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.26, allocations: 161.6 kB / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.26, allocations: 0 / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.828e-05/0.2601, allocations: 15.92 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.2601, allocations: 8 kB / 1.068 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.2601, allocations: 4 kB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2601, allocations: 0 / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.2601, allocations: 3.984 kB / 1.068 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002492/0.2604, allocations: 167.5 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.96e-05/0.2604, allocations: 81.02 kB / 1.068 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.2604, allocations: 0 / 1.068 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.108e-05/0.2605, allocations: 11.98 kB / 1.068 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.2606, allocations: 11.98 kB / 1.068 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.2606, allocations: 0 / 1.068 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.285e-05/0.2606, allocations: 87.58 kB / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2606, allocations: 0 / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002092/0.2608, allocations: 8 kB / 1.069 GB, free: 9.266 MB / 0.8262 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.0005719/0.2614, allocations: 0.7125 MB / 1.069 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002174/0.2617, allocations: 47.89 kB / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2617, allocations: 0 / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.65e-05/0.2618, allocations: 27.97 kB / 1.069 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002452/0.262, allocations: 10.83 kB / 1.069 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000386/0.2624, allocations: 147.1 kB / 1.069 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.2627, allocations: 0.6729 MB / 1.07 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.111e-05/0.2627, allocations: 7.984 kB / 1.07 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.884e-05/0.2628, allocations: 11.44 kB / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2628, allocations: 0 / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.658/2.921, allocations: 1.565 MB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.364/12.29, allocations: 3.156 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches