Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/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.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_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.001961/0.001961, allocations: 103.9 kB / 16.4 MB, free: 6.492 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.00196/0.00196, allocations: 193.2 kB / 17.34 MB, free: 5.766 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.567/2.567, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 1.362/1.362, allocations: 115.3 MB / 406.5 MB, free: 6.137 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002729/0.002729, allocations: 68.78 kB / 0.5572 GB, free: 32.86 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2257, allocations: 76.18 MB / 0.6316 GB, free: 4.996 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.003399/0.2292, allocations: 0.5727 MB / 0.6322 GB, free: 4.426 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003529/0.2296, allocations: 47.8 kB / 0.6322 GB, free: 4.379 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.759e-05/0.2297, allocations: 0 / 0.6322 GB, free: 4.379 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 1.593e-05/0.2297, allocations: 0 / 0.6322 GB, free: 4.379 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 8.135e-06/0.2298, allocations: 4 kB / 0.6322 GB, free: 4.375 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002906/0.2301, allocations: 15.97 kB / 0.6322 GB, free: 4.359 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 5.998e-05/0.2301, allocations: 0 / 0.6322 GB, free: 4.359 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.426e-05/0.2302, allocations: 4 kB / 0.6323 GB, free: 4.355 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.815e-05/0.2302, allocations: 4 kB / 0.6323 GB, free: 4.352 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.789e-05/0.2303, allocations: 7.922 kB / 0.6323 GB, free: 4.344 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.341e-05/0.2303, allocations: 3.938 kB / 0.6323 GB, free: 4.34 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.004e-05/0.2304, allocations: 12 kB / 0.6323 GB, free: 4.328 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.172e-05/0.2304, allocations: 0 / 0.6323 GB, free: 4.328 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 3.201e-05/0.2304, allocations: 11.98 kB / 0.6323 GB, free: 4.316 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001054/0.2305, allocations: 7.984 kB / 0.6323 GB, free: 4.309 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.2306, allocations: 0 / 0.6323 GB, free: 4.309 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2306, allocations: 0 / 0.6323 GB, free: 4.309 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.2306, allocations: 0 / 0.6323 GB, free: 4.309 MB / 478.1 MB 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.0004398/0.231, allocations: 315.6 kB / 0.6326 GB, free: 3.949 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.788e-05/0.2311, allocations: 12.02 kB / 0.6326 GB, free: 3.938 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.533e-05/0.2312, allocations: 34.75 kB / 0.6326 GB, free: 3.895 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.437e-05/0.2312, allocations: 0.9375 kB / 0.6326 GB, free: 3.895 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.2313, allocations: 160.4 kB / 0.6328 GB, free: 3.699 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.2314, allocations: 4.312 kB / 0.6328 GB, free: 3.695 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.925e-06/0.2314, allocations: 384 / 0.6328 GB, free: 3.695 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001183/0.2315, allocations: 30.27 kB / 0.6328 GB, free: 3.66 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.2315, allocations: 11.92 kB / 0.6328 GB, free: 3.648 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.276e-06/0.2315, allocations: 0 / 0.6328 GB, free: 3.648 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.2315, allocations: 0 / 0.6328 GB, free: 3.648 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.153e-05/0.2316, allocations: 11.94 kB / 0.6329 GB, free: 3.637 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001998/0.2318, allocations: 145.7 kB / 0.633 GB, free: 3.445 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.368e-05/0.2319, allocations: 26.91 kB / 0.633 GB, free: 3.41 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.058e-05/0.2319, allocations: 4.859 kB / 0.633 GB, free: 3.402 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000211/0.2321, allocations: 85.17 kB / 0.6331 GB, free: 3.301 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.2322, allocations: 30.56 kB / 0.6331 GB, free: 3.262 MB / 478.1 MB Notification: Performance of pre-optimization done (n=2): time 1.383e-06/0.2322, allocations: 3.938 kB / 0.6331 GB, free: 3.258 MB / 478.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001829/0.2324, allocations: 53.56 kB / 0.6332 GB, free: 3.199 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.2324, allocations: 51.41 kB / 0.6332 GB, free: 3.137 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.462e-05/0.2325, allocations: 89.86 kB / 0.6333 GB, free: 3.039 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.2325, allocations: 25.7 kB / 0.6333 GB, free: 3.008 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.481e-05/0.2325, allocations: 80.14 kB / 0.6334 GB, free: 2.926 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.127e-05/0.2326, allocations: 8.031 kB / 0.6334 GB, free: 2.918 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.361e-05/0.2326, allocations: 17.72 kB / 0.6334 GB, free: 2.895 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.2328, allocations: 318.8 kB / 0.6338 GB, free: 2.574 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.628e-05/0.2328, allocations: 4 kB / 0.6338 GB, free: 2.57 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.265e-06/0.2328, allocations: 0 / 0.6338 GB, free: 2.57 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.176e-05/0.2329, allocations: 12.86 kB / 0.6338 GB, free: 2.555 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.2329, allocations: 4 kB / 0.6338 GB, free: 2.551 MB / 478.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.226e-05/0.233, allocations: 45.69 kB / 0.6338 GB, free: 2.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.233, allocations: 4 kB / 0.6338 GB, free: 2.496 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.233, allocations: 3.938 kB / 0.6338 GB, free: 2.492 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.233, allocations: 0 / 0.6338 GB, free: 2.492 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.818e-05/0.2331, allocations: 8 kB / 0.6338 GB, free: 2.484 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.2331, allocations: 0 / 0.6338 GB, free: 2.484 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.727e-05/0.2332, allocations: 2.812 kB / 0.6338 GB, free: 2.484 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.2332, allocations: 4 kB / 0.6338 GB, free: 2.48 MB / 478.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 (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 0.0001053/0.2333, allocations: 110.5 kB / 0.6339 GB, free: 2.363 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.1e-05/0.2333, allocations: 4.031 kB / 0.6339 GB, free: 2.359 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001208/0.2334, allocations: 52.69 kB / 0.634 GB, free: 2.301 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2334, allocations: 3.938 kB / 0.634 GB, free: 2.297 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2334, allocations: 0 / 0.634 GB, free: 2.297 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2335, allocations: 0 / 0.634 GB, free: 2.297 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001344/0.2336, allocations: 149.7 kB / 0.6341 GB, free: 2.102 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2336, allocations: 0 / 0.6341 GB, free: 2.102 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.796e-05/0.2336, allocations: 0 / 0.6341 GB, free: 2.102 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/0.2337, allocations: 4 kB / 0.6341 GB, free: 2.098 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.2337, allocations: 3.938 kB / 0.6341 GB, free: 2.094 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.2337, allocations: 4.031 kB / 0.6342 GB, free: 2.09 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2337, allocations: 0 / 0.6342 GB, free: 2.09 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001068/0.2338, allocations: 65.11 kB / 0.6342 GB, free: 2.008 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.431e-05/0.2339, allocations: 81.11 kB / 0.6343 GB, free: 1.91 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.217e-05/0.2339, allocations: 11.88 kB / 0.6343 GB, free: 1.898 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.252e-05/0.2339, allocations: 0 / 0.6343 GB, free: 1.898 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.234, allocations: 3.984 kB / 0.6343 GB, free: 1.895 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-06/0.234, allocations: 4.031 kB / 0.6343 GB, free: 1.891 MB / 478.1 MB Notification: Performance of sorting global known variables: time 3.231e-05/0.234, allocations: 75.28 kB / 0.6344 GB, free: 1.816 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.234, allocations: 0 / 0.6344 GB, free: 1.816 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.2342, allocations: 7.938 kB / 0.6344 GB, free: 1.809 MB / 478.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,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.0005228/0.2348, allocations: 0.6008 MB / 0.635 GB, free: 1.176 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0001107/0.2349, allocations: 19.94 kB / 0.635 GB, free: 1.156 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2349, allocations: 0 / 0.635 GB, free: 1.156 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 2.14e-05/0.2349, allocations: 7.984 kB / 0.635 GB, free: 1.148 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001624/0.2351, allocations: 1.719 kB / 0.635 GB, free: 1.148 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004207/0.2355, allocations: 118.6 kB / 0.6351 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.2359, allocations: 0.6768 MB / 0.6358 GB, free: 296 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 1.765e-05/0.2359, allocations: 0 / 0.6358 GB, free: 296 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.348e-05/0.236, allocations: 11.56 kB / 0.6358 GB, free: 284 kB / 478.1 MB Notification: Performance of SimCode: time 2.5e-07/0.236, allocations: 4 kB / 0.6358 GB, free: 280 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2221/0.4581, allocations: 1.064 MB / 0.6368 GB, free: 15.29 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.32, allocations: 6.406 kB / 0.6368 GB, free: 15.28 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)