Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_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.001551/0.001551, allocations: 95.88 kB / 15.68 MB, free: 488 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.00255/0.00255, allocations: 170.4 kB / 16.57 MB, free: 6.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.094/2.094, allocations: 223.2 MB / 240.5 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8624/0.8624, allocations: 113.7 MB / 405.3 MB, free: 4.664 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003844/0.0003848, allocations: 13.8 kB / 493 MB, free: 8.621 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1974/0.1978, allocations: 77.12 MB / 0.5567 GB, free: 11.71 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.001596/0.1995, allocations: 1.206 MB / 0.5579 GB, free: 10.5 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002703/0.1998, allocations: 124.5 kB / 0.558 GB, free: 10.38 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.083e-05/0.1998, allocations: 7.938 kB / 0.558 GB, free: 10.37 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.178e-05/0.1998, allocations: 0 / 0.558 GB, free: 10.37 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.607e-05/0.1999, allocations: 4 kB / 0.558 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001422/0.2, allocations: 11.98 kB / 0.558 GB, free: 10.35 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.86e-05/0.2001, allocations: 19.97 kB / 0.5581 GB, free: 10.33 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.646e-05/0.2002, allocations: 4 kB / 0.5581 GB, free: 10.33 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.535e-05/0.2002, allocations: 19.91 kB / 0.5581 GB, free: 10.31 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.84e-05/0.2002, allocations: 11.92 kB / 0.5581 GB, free: 10.3 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.141e-05/0.2003, allocations: 4 kB / 0.5581 GB, free: 10.29 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.564e-05/0.2003, allocations: 15.94 kB / 0.5581 GB, free: 10.28 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.762e-06/0.2003, allocations: 0 / 0.5581 GB, free: 10.28 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.35e-05/0.2004, allocations: 29.7 kB / 0.5581 GB, free: 10.24 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 5.801e-05/0.2004, allocations: 19.95 kB / 0.5582 GB, free: 10.22 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.2004, allocations: 0 / 0.5582 GB, free: 10.22 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.2004, allocations: 0 / 0.5582 GB, free: 10.22 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.146e-06/0.2004, allocations: 3.938 kB / 0.5582 GB, free: 10.22 MB / 430.1 MB 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.0004058/0.2008, allocations: 351.5 kB / 0.5585 GB, free: 9.828 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.2009, allocations: 8.031 kB / 0.5585 GB, free: 9.82 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.154e-05/0.2009, allocations: 30.56 kB / 0.5585 GB, free: 9.781 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.02e-05/0.201, allocations: 4 kB / 0.5585 GB, free: 9.777 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.2011, allocations: 171 kB / 0.5587 GB, free: 9.57 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.2011, allocations: 4 kB / 0.5587 GB, free: 9.566 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.554e-05/0.2011, allocations: 4 kB / 0.5587 GB, free: 9.562 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001681/0.2013, allocations: 61.62 kB / 0.5588 GB, free: 9.496 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.2013, allocations: 4 kB / 0.5588 GB, free: 9.492 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-06/0.2013, allocations: 0 / 0.5588 GB, free: 9.492 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.2013, allocations: 0 / 0.5588 GB, free: 9.492 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.2015, allocations: 51.95 kB / 0.5588 GB, free: 9.441 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000337/0.2018, allocations: 264.9 kB / 0.5591 GB, free: 9.133 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002821/0.2021, allocations: 62.56 kB / 0.5591 GB, free: 9.062 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.503e-05/0.2022, allocations: 85.19 kB / 0.5592 GB, free: 8.961 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.2023, allocations: 34.56 kB / 0.5593 GB, free: 8.918 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.2023, allocations: 4 kB / 0.5593 GB, free: 8.914 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003805/0.2027, allocations: 113.5 kB / 0.5594 GB, free: 8.797 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.093e-05/0.2027, allocations: 55.41 kB / 0.5594 GB, free: 8.73 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.813e-05/0.2028, allocations: 101.9 kB / 0.5595 GB, free: 8.621 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.2028, allocations: 25.7 kB / 0.5595 GB, free: 8.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.695e-05/0.2028, allocations: 84.12 kB / 0.5596 GB, free: 8.504 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.343e-05/0.2029, allocations: 7.844 kB / 0.5596 GB, free: 8.496 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.467e-06/0.2029, allocations: 0 / 0.5596 GB, free: 8.496 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.203, allocations: 318.8 kB / 0.5599 GB, free: 8.176 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.912e-05/0.2031, allocations: 27.98 kB / 0.56 GB, free: 8.148 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.434e-05/0.2032, allocations: 19.97 kB / 0.56 GB, free: 8.129 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.487e-05/0.2033, allocations: 23.98 kB / 0.56 GB, free: 8.105 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2033, allocations: 0 / 0.56 GB, free: 8.105 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002095/0.2035, allocations: 97.53 kB / 0.5601 GB, free: 8.004 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.2035, allocations: 8 kB / 0.5601 GB, free: 7.996 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-06/0.2035, allocations: 3.938 kB / 0.5601 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.506e-06/0.2035, allocations: 0.5156 kB / 0.5601 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.449e-05/0.2036, allocations: 11.98 kB / 0.5601 GB, free: 7.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.2036, allocations: 4 kB / 0.5601 GB, free: 7.977 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.324e-05/0.2037, allocations: 11.94 kB / 0.5601 GB, free: 7.965 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.2037, allocations: 0 / 0.5601 GB, free: 7.965 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.417e-05/0.2038, allocations: 117.8 kB / 0.5602 GB, free: 7.84 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.357e-05/0.2038, allocations: 7.859 kB / 0.5602 GB, free: 7.832 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002471/0.2041, allocations: 97.12 kB / 0.5603 GB, free: 7.727 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.2041, allocations: 0 / 0.5603 GB, free: 7.727 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.2041, allocations: 0 / 0.5603 GB, free: 7.727 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2041, allocations: 3.938 kB / 0.5603 GB, free: 7.723 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000155/0.2042, allocations: 161.7 kB / 0.5605 GB, free: 7.516 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2043, allocations: 0 / 0.5605 GB, free: 7.516 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.619e-05/0.2043, allocations: 23.98 kB / 0.5605 GB, free: 7.492 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2043, allocations: 0 / 0.5605 GB, free: 7.492 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.2044, allocations: 7.953 kB / 0.5605 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.2044, allocations: 0 / 0.5605 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2044, allocations: 0 / 0.5605 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002593/0.2046, allocations: 175.5 kB / 0.5607 GB, free: 7.297 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.133e-05/0.2047, allocations: 85.09 kB / 0.5608 GB, free: 7.195 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.2047, allocations: 0 / 0.5608 GB, free: 7.195 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.313e-05/0.2048, allocations: 7.953 kB / 0.5608 GB, free: 7.188 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.13e-05/0.2049, allocations: 11.98 kB / 0.5608 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.2049, allocations: 0 / 0.5608 GB, free: 7.176 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.693e-05/0.2049, allocations: 83.27 kB / 0.5609 GB, free: 7.094 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.2049, allocations: 4 kB / 0.5609 GB, free: 7.09 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002108/0.2051, allocations: 11.94 kB / 0.5609 GB, free: 7.078 MB / 430.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005632/0.2057, allocations: 0.717 MB / 0.5616 GB, free: 6.332 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002043/0.2059, allocations: 51.95 kB / 0.5616 GB, free: 6.281 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2059, allocations: 0 / 0.5616 GB, free: 6.281 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.206, allocations: 35.92 kB / 0.5617 GB, free: 6.246 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001691/0.2062, allocations: 7.953 kB / 0.5617 GB, free: 6.238 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004151/0.2066, allocations: 146.3 kB / 0.5618 GB, free: 6.059 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.2069, allocations: 0.6809 MB / 0.5625 GB, free: 5.352 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.011e-05/0.2069, allocations: 8 kB / 0.5625 GB, free: 5.344 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.39e-05/0.207, allocations: 15.42 kB / 0.5625 GB, free: 5.328 MB / 430.1 MB Notification: Performance of SimCode: time 2.01e-07/0.207, allocations: 0 / 0.5625 GB, free: 5.328 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6091/0.8161, allocations: 1.268 MB / 0.5637 GB, free: 4.188 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003974/0.8166, allocations: 174.1 kB / 0.5639 GB, free: 3.941 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.459/4.276, allocations: 0 / 0.5639 GB, free: 3.941 MB / 430.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: