Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001717/0.001717, allocations: 113.8 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 219.8 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.472/1.472, allocations: 230.6 MB / 256.8 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8644/0.8644, allocations: 134 MB / 447.2 MB, free: 10.23 MB / 350.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00295/0.00295, allocations: 66.52 kB / 0.6194 GB, free: 7.18 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2034, allocations: 85.9 MB / 0.7032 GB, free: 1.355 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001744/0.2052, allocations: 0.5849 MB / 0.7038 GB, free: 0.7734 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0002683/0.2055, allocations: 56.19 kB / 0.7039 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.399e-05/0.2055, allocations: 0 / 0.7039 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 1.616e-05/0.2055, allocations: 0 / 0.7039 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 6.041e-06/0.2055, allocations: 0 / 0.7039 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002183/0.2057, allocations: 11.94 kB / 0.7039 GB, free: 0.707 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 3.856e-05/0.2057, allocations: 0 / 0.7039 GB, free: 0.707 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.963e-05/0.2058, allocations: 7.984 kB / 0.7039 GB, free: 0.6992 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 1.394e-05/0.2058, allocations: 3.984 kB / 0.7039 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 1.884e-05/0.2058, allocations: 0 / 0.7039 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.305e-06/0.2058, allocations: 4 kB / 0.7039 GB, free: 0.6914 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.868e-05/0.2059, allocations: 12 kB / 0.7039 GB, free: 0.6797 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.205e-06/0.2059, allocations: 0 / 0.7039 GB, free: 0.6797 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.047e-05/0.2059, allocations: 11.92 kB / 0.7039 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 7.669e-05/0.206, allocations: 7.984 kB / 0.7039 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.206, allocations: 0 / 0.7039 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.072e-06/0.206, allocations: 0 / 0.7039 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.796e-06/0.206, allocations: 0 / 0.7039 GB, free: 0.6602 MB / 0.5137 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.0002843/0.2063, allocations: 250.6 kB / 0.7042 GB, free: 392 kB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.2063, allocations: 12.03 kB / 0.7042 GB, free: 380 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.418e-05/0.2063, allocations: 4.188 kB / 0.7042 GB, free: 376 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.775e-05/0.2064, allocations: 34.69 kB / 0.7042 GB, free: 332 kB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.465e-05/0.2064, allocations: 4.891 kB / 0.7042 GB, free: 328 kB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.419e-05/0.2065, allocations: 106.5 kB / 0.7043 GB, free: 196 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.795e-06/0.2065, allocations: 384 / 0.7043 GB, free: 196 kB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.707e-06/0.2065, allocations: 384 / 0.7043 GB, free: 196 kB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000103/0.2066, allocations: 42 kB / 0.7044 GB, free: 148 kB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.2066, allocations: 0 / 0.7044 GB, free: 148 kB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.236e-06/0.2066, allocations: 4 kB / 0.7044 GB, free: 144 kB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.2066, allocations: 4 kB / 0.7044 GB, free: 140 kB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.095e-05/0.2067, allocations: 4 kB / 0.7044 GB, free: 136 kB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001542/0.2068, allocations: 124.8 kB / 0.7045 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.557e-05/0.2069, allocations: 22.52 kB / 0.7045 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.969e-05/0.2069, allocations: 4.859 kB / 0.7045 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.207, allocations: 4.062 kB / 0.7045 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.207, allocations: 46.48 kB / 0.7046 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.207, allocations: 0 / 0.7046 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001381/0.2072, allocations: 37.7 kB / 0.7046 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/0.2072, allocations: 55.34 kB / 0.7047 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.044e-05/0.2073, allocations: 93.8 kB / 0.7047 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.2073, allocations: 29.7 kB / 0.7048 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.831e-05/0.2073, allocations: 80.14 kB / 0.7048 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.731e-05/0.2074, allocations: 0 / 0.7048 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.869e-05/0.2074, allocations: 17.83 kB / 0.7049 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2075, allocations: 314.8 kB / 0.7052 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.632e-05/0.2076, allocations: 8 kB / 0.7052 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.993e-06/0.2076, allocations: 0 / 0.7052 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.671e-05/0.2076, allocations: 8.859 kB / 0.7052 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2076, allocations: 0 / 0.7052 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.572e-05/0.2077, allocations: 41.69 kB / 0.7052 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.2077, allocations: 15.88 kB / 0.7052 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.2077, allocations: 4.094 kB / 0.7052 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.2077, allocations: 0 / 0.7052 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.895e-05/0.2078, allocations: 4 kB / 0.7052 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.2078, allocations: 0 / 0.7052 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.341e-05/0.2078, allocations: 0 / 0.7052 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-06/0.2078, allocations: 0 / 0.7052 GB, free: 15.11 MB / 0.5294 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 0.0001049/0.2079, allocations: 114.5 kB / 0.7054 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.17e-05/0.2079, allocations: 7.891 kB / 0.7054 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.697e-05/0.208, allocations: 44.86 kB / 0.7054 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.208, allocations: 3.938 kB / 0.7054 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.208, allocations: 3.984 kB / 0.7054 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.208, allocations: 0 / 0.7054 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.2081, allocations: 120.8 kB / 0.7055 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2081, allocations: 0 / 0.7055 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.304e-05/0.2081, allocations: 3.938 kB / 0.7055 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.2081, allocations: 7.938 kB / 0.7055 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-06/0.2081, allocations: 0 / 0.7055 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.2082, allocations: 3.984 kB / 0.7055 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.2082, allocations: 3.984 kB / 0.7055 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.297e-05/0.2082, allocations: 61.17 kB / 0.7056 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 5.981e-06/0.2082, allocations: 4 kB / 0.7056 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.2083, allocations: 15.92 kB / 0.7056 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.065e-05/0.2083, allocations: 0 / 0.7056 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.016e-05/0.2083, allocations: 0 / 0.7056 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.2083, allocations: 3.938 kB / 0.7056 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 4.564e-05/0.2084, allocations: 75.28 kB / 0.7057 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.1e-08/0.2084, allocations: 4.031 kB / 0.7057 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0001973/0.2085, allocations: 7.938 kB / 0.7057 GB, free: 14.56 MB / 0.5294 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.0004806/0.209, allocations: 0.6046 MB / 0.7063 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 8.888e-05/0.2091, allocations: 11.98 kB / 0.7063 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2091, allocations: 4.094 kB / 0.7063 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 1.897e-05/0.2091, allocations: 7.938 kB / 0.7063 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001449/0.2093, allocations: 4 kB / 0.7063 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003561/0.2096, allocations: 109.7 kB / 0.7064 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.21, allocations: 0.6727 MB / 0.7071 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 1.54e-05/0.21, allocations: 4 kB / 0.7071 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.478e-05/0.21, allocations: 11.44 kB / 0.7071 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of SimCode: time 3.3e-07/0.21, allocations: 0 / 0.7071 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02202/0.232, allocations: 1.202 MB / 0.7083 GB, free: 11.99 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.18, allocations: 8.047 kB / 0.7083 GB, free: 11.98 MB / 0.5294 GB " [Timeout remaining time 649] (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.806281593046151] Failed to read output from testmodel.py, exit status != 0: 11.336560300085694 11.353558185 11.143916849 Calling exit ...