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.0007172/0.0007172, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007963/0.0007963, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9128/0.9128, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7507/0.7507, allocations: 154.6 MB / 413.8 MB, free: 0.8164 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 0.6182 GB, free: 13.62 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.422e-05/2.575e-05, allocations: 8.406 kB / 0.6182 GB, free: 13.62 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001321/0.001347, allocations: 0.5934 MB / 0.6187 GB, free: 13.03 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0002318/0.001578, allocations: 47.81 kB / 0.6188 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.755e-05/0.001596, allocations: 0 / 0.6188 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 1.85e-05/0.001615, allocations: 4 kB / 0.6188 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.632e-06/0.001621, allocations: 0 / 0.6188 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002447/0.001866, allocations: 15.86 kB / 0.6188 GB, free: 12.96 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 4.943e-05/0.001915, allocations: 7.938 kB / 0.6188 GB, free: 12.96 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 4.409e-05/0.001959, allocations: 4 kB / 0.6188 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 2.745e-05/0.001987, allocations: 0 / 0.6188 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 2.363e-05/0.002011, allocations: 3.984 kB / 0.6188 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.002024, allocations: 0 / 0.6188 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 8.636e-05/0.002111, allocations: 15.98 kB / 0.6188 GB, free: 12.93 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.372e-05/0.002125, allocations: 0 / 0.6188 GB, free: 12.93 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.272e-05/0.002147, allocations: 0 / 0.6188 GB, free: 12.93 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 9.799e-05/0.002245, allocations: 11.98 kB / 0.6188 GB, free: 12.92 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.002248, allocations: 4 kB / 0.6189 GB, free: 12.92 MB / 0.5886 GB Notification: Performance of FrontEnd: time 9.32e-07/0.002249, allocations: 0 / 0.6189 GB, free: 12.92 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.002253, allocations: 0 / 0.6189 GB, free: 12.92 MB / 0.5886 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.0002709/0.002524, allocations: 242.4 kB / 0.6191 GB, free: 12.65 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.002573, allocations: 8.031 kB / 0.6191 GB, free: 12.64 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.216e-05/0.002606, allocations: 30.75 kB / 0.6191 GB, free: 12.6 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.685e-05/0.002632, allocations: 4.922 kB / 0.6191 GB, free: 12.6 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.55e-05/0.002698, allocations: 105.8 kB / 0.6192 GB, free: 12.47 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.002711, allocations: 4.375 kB / 0.6192 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.916e-06/0.002719, allocations: 384 / 0.6192 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.00282, allocations: 34.27 kB / 0.6193 GB, free: 12.43 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.002829, allocations: 192 / 0.6193 GB, free: 12.43 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.002838, allocations: 4.359 kB / 0.6193 GB, free: 12.42 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.002845, allocations: 12 kB / 0.6193 GB, free: 12.41 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.7e-05/0.002882, allocations: 4 kB / 0.6193 GB, free: 12.41 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001339/0.003015, allocations: 120.8 kB / 0.6194 GB, free: 12.25 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 5.755e-05/0.003073, allocations: 18.61 kB / 0.6194 GB, free: 12.22 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.683e-05/0.00309, allocations: 8.844 kB / 0.6194 GB, free: 12.21 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000151/0.003241, allocations: 8.062 kB / 0.6194 GB, free: 12.2 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.003265, allocations: 38.5 kB / 0.6195 GB, free: 12.15 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.003266, allocations: 4 kB / 0.6195 GB, free: 12.15 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2): time 0.0001525/0.003418, allocations: 41.62 kB / 0.6195 GB, free: 12.1 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.003453, allocations: 59.34 kB / 0.6196 GB, free: 12.03 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.797e-05/0.003491, allocations: 89.86 kB / 0.6197 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.054e-05/0.003502, allocations: 25.7 kB / 0.6197 GB, free: 11.9 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 2.119e-05/0.003523, allocations: 80.14 kB / 0.6198 GB, free: 11.82 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.164e-05/0.003545, allocations: 11.94 kB / 0.6198 GB, free: 11.81 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.548e-05/0.00357, allocations: 9.719 kB / 0.6198 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.354e-05/0.003664, allocations: 318.8 kB / 0.6201 GB, free: 11.47 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.315e-05/0.003677, allocations: 4.109 kB / 0.6201 GB, free: 11.47 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.284e-06/0.003684, allocations: 8 kB / 0.6201 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.341e-05/0.003717, allocations: 12.8 kB / 0.6201 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.00372, allocations: 0 / 0.6201 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.674e-05/0.003767, allocations: 37.7 kB / 0.6201 GB, free: 11.4 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.003783, allocations: 7.984 kB / 0.6201 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.003789, allocations: 4 kB / 0.6202 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.003802, allocations: 0 / 0.6202 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.068e-05/0.003863, allocations: 0 / 0.6202 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.003871, allocations: 7.938 kB / 0.6202 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.032e-05/0.003882, allocations: 4.094 kB / 0.6202 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.469e-06/0.003886, allocations: 0 / 0.6202 GB, free: 11.38 MB / 0.5886 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 6.175e-05/0.003948, allocations: 110.8 kB / 0.6203 GB, free: 11.26 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.602e-06/0.003954, allocations: 4 kB / 0.6203 GB, free: 11.26 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.268e-05/0.004037, allocations: 44.73 kB / 0.6203 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.004041, allocations: 4 kB / 0.6203 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.004047, allocations: 3.938 kB / 0.6203 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.00405, allocations: 0 / 0.6203 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.292e-05/0.004123, allocations: 124.8 kB / 0.6204 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.004124, allocations: 32 / 0.6204 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.445e-05/0.004139, allocations: 11.94 kB / 0.6205 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.004141, allocations: 0 / 0.6205 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.533e-06/0.004148, allocations: 0 / 0.6205 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.004148, allocations: 4 kB / 0.6205 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.004151, allocations: 3.938 kB / 0.6205 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.848e-05/0.004209, allocations: 61.12 kB / 0.6205 GB, free: 10.94 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 4.087e-06/0.004213, allocations: 0 / 0.6205 GB, free: 10.94 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.619e-06/0.004223, allocations: 7.938 kB / 0.6205 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.139e-06/0.004228, allocations: 0 / 0.6205 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.948e-05/0.004258, allocations: 3.938 kB / 0.6205 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.004261, allocations: 8.016 kB / 0.6205 GB, free: 10.92 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 2.376e-05/0.004284, allocations: 79.28 kB / 0.6206 GB, free: 10.84 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.004284, allocations: 3.938 kB / 0.6206 GB, free: 10.84 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001314/0.004416, allocations: 4 kB / 0.6206 GB, free: 10.83 MB / 0.5886 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.0002936/0.004709, allocations: 0.5969 MB / 0.6212 GB, free: 10.21 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 7.008e-05/0.004779, allocations: 7.938 kB / 0.6212 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.004781, allocations: 0 / 0.6212 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 1.137e-05/0.004793, allocations: 4.094 kB / 0.6212 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001049/0.004898, allocations: 13.88 kB / 0.6212 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002706/0.005168, allocations: 110.6 kB / 0.6213 GB, free: 10.04 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.775e-05/0.005206, allocations: 55.36 kB / 0.6214 GB, free: 9.961 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 1.245e-05/0.005218, allocations: 7.984 kB / 0.6214 GB, free: 9.953 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.284e-05/0.005241, allocations: 8.5 kB / 0.6214 GB, free: 9.941 MB / 0.5886 GB Notification: Performance of SimCode: time 3.51e-07/0.005242, allocations: 0 / 0.6214 GB, free: 9.941 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.02268, allocations: 1.703 MB / 0.6231 GB, free: 8.367 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.854/6.876, allocations: 2.656 kB / 0.6231 GB, free: 8.367 MB / 0.5886 GB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.790733991190791] Failed to read output from testmodel.py, exit status != 0: 6.9533343482762575 6.96346631 6.959404094 Calling exit ...