Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_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.001218/0.001218, allocations: 108 kB / 15.6 MB, free: 128 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.001226/0.001226, allocations: 198.3 kB / 16.53 MB, free: 6.672 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.356/1.356, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002418/0.002418, allocations: 295 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.015/1.015, allocations: 178.6 MB / 0.5073 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002804/0.002804, allocations: 98.34 kB / 0.6066 GB, free: 24.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1568, allocations: 89.15 MB / 0.6936 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001819/0.1586, allocations: 0.5873 MB / 0.6942 GB, free: 3.645 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002559/0.1589, allocations: 55.78 kB / 0.6942 GB, free: 3.59 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.537e-05/0.1589, allocations: 4 kB / 0.6942 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.144e-05/0.159, allocations: 0 / 0.6942 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.749e-06/0.159, allocations: 0 / 0.6942 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002141/0.1592, allocations: 7.938 kB / 0.6943 GB, free: 3.578 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.316e-05/0.1592, allocations: 4.719 kB / 0.6943 GB, free: 3.574 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.318e-05/0.1593, allocations: 4 kB / 0.6943 GB, free: 3.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.471e-05/0.1593, allocations: 5.719 kB / 0.6943 GB, free: 3.566 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.251e-05/0.1593, allocations: 7.969 kB / 0.6943 GB, free: 3.559 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.057e-06/0.1593, allocations: 0 / 0.6943 GB, free: 3.559 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.456e-05/0.1594, allocations: 4 kB / 0.6943 GB, free: 3.555 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.039e-05/0.1594, allocations: 4 kB / 0.6943 GB, free: 3.551 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.89e-05/0.1595, allocations: 8 kB / 0.6943 GB, free: 3.543 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.981e-05/0.1595, allocations: 11.92 kB / 0.6943 GB, free: 3.531 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1596, allocations: 0 / 0.6943 GB, free: 3.531 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1596, allocations: 0 / 0.6943 GB, free: 3.531 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.1596, allocations: 0 / 0.6943 GB, free: 3.531 MB / 494.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.0003145/0.1599, allocations: 315.6 kB / 0.6946 GB, free: 3.172 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.1599, allocations: 16.02 kB / 0.6946 GB, free: 3.156 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.097e-05/0.16, allocations: 30.75 kB / 0.6946 GB, free: 3.117 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.133e-05/0.16, allocations: 0.9375 kB / 0.6946 GB, free: 3.117 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.1601, allocations: 164.4 kB / 0.6948 GB, free: 2.918 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.1601, allocations: 384 / 0.6948 GB, free: 2.918 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-06/0.1602, allocations: 4.312 kB / 0.6948 GB, free: 2.914 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.426e-05/0.1603, allocations: 30.27 kB / 0.6948 GB, free: 2.879 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.1603, allocations: 7.922 kB / 0.6948 GB, free: 2.871 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.595e-06/0.1603, allocations: 0 / 0.6948 GB, free: 2.871 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.1603, allocations: 3.984 kB / 0.6948 GB, free: 2.867 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.354e-05/0.1603, allocations: 8 kB / 0.6949 GB, free: 2.859 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001527/0.1605, allocations: 145.7 kB / 0.695 GB, free: 2.668 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.096e-05/0.1606, allocations: 30.59 kB / 0.695 GB, free: 2.629 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.087e-05/0.1606, allocations: 12.86 kB / 0.695 GB, free: 2.613 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001586/0.1607, allocations: 77.11 kB / 0.6951 GB, free: 2.52 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.1608, allocations: 34.56 kB / 0.6951 GB, free: 2.477 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.1608, allocations: 0 / 0.6951 GB, free: 2.477 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001447/0.1609, allocations: 45.62 kB / 0.6952 GB, free: 2.426 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.161, allocations: 55.53 kB / 0.6952 GB, free: 2.359 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.315e-05/0.161, allocations: 89.86 kB / 0.6953 GB, free: 2.262 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.1611, allocations: 25.7 kB / 0.6953 GB, free: 2.23 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.682e-05/0.1611, allocations: 80.14 kB / 0.6954 GB, free: 2.148 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.467e-05/0.1611, allocations: 20.05 kB / 0.6954 GB, free: 2.129 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.1612, allocations: 13.72 kB / 0.6955 GB, free: 2.109 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.1613, allocations: 314.8 kB / 0.6958 GB, free: 1.793 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.632e-05/0.1613, allocations: 7.938 kB / 0.6958 GB, free: 1.785 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.444e-06/0.1613, allocations: 4 kB / 0.6958 GB, free: 1.781 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.4e-05/0.1614, allocations: 16.86 kB / 0.6958 GB, free: 1.762 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1614, allocations: 7.938 kB / 0.6958 GB, free: 1.754 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.032e-05/0.1615, allocations: 41.69 kB / 0.6958 GB, free: 1.707 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.1615, allocations: 4 kB / 0.6958 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1615, allocations: 3.938 kB / 0.6958 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.1615, allocations: 0 / 0.6958 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.529e-05/0.1616, allocations: 4 kB / 0.6958 GB, free: 1.695 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.1616, allocations: 0 / 0.6958 GB, free: 1.695 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.444e-05/0.1616, allocations: 4.094 kB / 0.6958 GB, free: 1.691 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-06/0.1616, allocations: 3.938 kB / 0.6959 GB, free: 1.688 MB / 494.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 7.869e-05/0.1617, allocations: 110.5 kB / 0.696 GB, free: 1.57 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.664e-06/0.1617, allocations: 0 / 0.696 GB, free: 1.57 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.96e-05/0.1618, allocations: 48.75 kB / 0.696 GB, free: 1.52 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-06/0.1618, allocations: 0 / 0.696 GB, free: 1.52 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1618, allocations: 0 / 0.696 GB, free: 1.52 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.1618, allocations: 0 / 0.696 GB, free: 1.52 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001132/0.162, allocations: 153.7 kB / 0.6961 GB, free: 1.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.162, allocations: 0 / 0.6961 GB, free: 1.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.361e-05/0.162, allocations: 0 / 0.6961 GB, free: 1.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.162, allocations: 4 kB / 0.6962 GB, free: 1.316 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.162, allocations: 7.938 kB / 0.6962 GB, free: 1.309 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.408e-06/0.162, allocations: 0 / 0.6962 GB, free: 1.309 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.162, allocations: 0 / 0.6962 GB, free: 1.309 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.325e-05/0.1621, allocations: 65.06 kB / 0.6962 GB, free: 1.227 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.514e-05/0.1622, allocations: 81.14 kB / 0.6963 GB, free: 1.129 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.299e-05/0.1622, allocations: 7.938 kB / 0.6963 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.083e-05/0.1622, allocations: 0 / 0.6963 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.979e-05/0.1622, allocations: 3.984 kB / 0.6963 GB, free: 1.117 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.1623, allocations: 0 / 0.6963 GB, free: 1.117 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.423e-05/0.1623, allocations: 77.3 kB / 0.6964 GB, free: 1.043 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1623, allocations: 0 / 0.6964 GB, free: 1.043 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001885/0.1625, allocations: 4 kB / 0.6964 GB, free: 1.039 MB / 494.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.0004439/0.1629, allocations: 0.6124 MB / 0.697 GB, free: 404 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 7.959e-05/0.163, allocations: 8 kB / 0.697 GB, free: 396 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.163, allocations: 3.938 kB / 0.697 GB, free: 392 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.687e-05/0.1631, allocations: 11.92 kB / 0.697 GB, free: 380 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001222/0.1632, allocations: 0 / 0.697 GB, free: 380 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003085/0.1635, allocations: 118.8 kB / 0.6971 GB, free: 220 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.1638, allocations: 0.6767 MB / 0.6978 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.415e-05/0.1638, allocations: 4 kB / 0.6978 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.913e-05/0.1639, allocations: 7.438 kB / 0.6978 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1639, allocations: 0 / 0.6978 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.185, allocations: 1.044 MB / 0.6988 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.212/7.397, allocations: 8.312 kB / 0.6988 GB, free: 14.53 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)