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.0008777/0.0008777, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0008628/0.0008628, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.9048/0.9048, allocations: 177.1 MB / 202.8 MB, free: 5.762 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.7015/0.7015, allocations: 154.6 MB / 413.7 MB, free: 0.8125 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.914e-06/1.914e-06, allocations: 0 / 0.6181 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.088e-05/2.279e-05, allocations: 2.281 kB / 0.6181 GB, free: 13.63 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001245/0.001268, allocations: 0.598 MB / 0.6187 GB, free: 13.04 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0002416/0.001509, allocations: 55.78 kB / 0.6188 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.479e-05/0.001524, allocations: 0 / 0.6188 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 1.428e-05/0.001538, allocations: 0 / 0.6188 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.893e-06/0.001545, allocations: 3.938 kB / 0.6188 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002236/0.001769, allocations: 11.94 kB / 0.6188 GB, free: 12.97 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 4.563e-05/0.001815, allocations: 4 kB / 0.6188 GB, free: 12.96 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 3.946e-05/0.001854, allocations: 0 / 0.6188 GB, free: 12.96 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 2.82e-05/0.001882, allocations: 7.984 kB / 0.6188 GB, free: 12.96 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 1.737e-05/0.0019, allocations: 0 / 0.6188 GB, free: 12.96 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.001911, allocations: 0 / 0.6188 GB, free: 12.96 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 7.095e-05/0.001982, allocations: 8 kB / 0.6188 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.019e-05/0.001992, allocations: 7.984 kB / 0.6188 GB, free: 12.94 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 1.26e-05/0.002005, allocations: 0 / 0.6188 GB, free: 12.94 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 8.146e-05/0.002086, allocations: 15.98 kB / 0.6188 GB, free: 12.93 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.002088, allocations: 0 / 0.6188 GB, free: 12.93 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.282e-06/0.002089, allocations: 0 / 0.6188 GB, free: 12.93 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.002094, allocations: 0 / 0.6188 GB, free: 12.93 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.0002182/0.002312, allocations: 238.4 kB / 0.6191 GB, free: 12.66 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.00235, allocations: 12.03 kB / 0.6191 GB, free: 12.65 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.799e-05/0.002378, allocations: 34.75 kB / 0.6191 GB, free: 12.61 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.13e-05/0.002399, allocations: 0.9375 kB / 0.6191 GB, free: 12.61 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.108e-05/0.00245, allocations: 105.7 kB / 0.6192 GB, free: 12.48 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.002461, allocations: 4.375 kB / 0.6192 GB, free: 12.47 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.674e-06/0.002468, allocations: 4.375 kB / 0.6192 GB, free: 12.47 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.188e-05/0.00255, allocations: 34.19 kB / 0.6193 GB, free: 12.43 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.002556, allocations: 4.188 kB / 0.6193 GB, free: 12.43 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.002563, allocations: 384 / 0.6193 GB, free: 12.43 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.002568, allocations: 4.125 kB / 0.6193 GB, free: 12.42 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.033e-05/0.002598, allocations: 8 kB / 0.6193 GB, free: 12.41 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001002/0.002699, allocations: 116.8 kB / 0.6194 GB, free: 12.26 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 4.732e-05/0.002746, allocations: 22.61 kB / 0.6194 GB, free: 12.23 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.587e-05/0.002762, allocations: 12.92 kB / 0.6194 GB, free: 12.21 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001224/0.002884, allocations: 4 kB / 0.6194 GB, free: 12.21 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.002903, allocations: 42.42 kB / 0.6195 GB, free: 12.16 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=2): time 5.21e-07/0.002904, allocations: 0 / 0.6195 GB, free: 12.16 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2): time 0.0001229/0.003026, allocations: 37.7 kB / 0.6195 GB, free: 12.11 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.942e-05/0.003056, allocations: 59.34 kB / 0.6196 GB, free: 12.04 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.188e-05/0.003088, allocations: 89.86 kB / 0.6196 GB, free: 11.95 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.817e-06/0.003097, allocations: 25.7 kB / 0.6197 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 1.8e-05/0.003115, allocations: 80.14 kB / 0.6197 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.594e-05/0.00313, allocations: 3.953 kB / 0.6197 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.494e-05/0.003155, allocations: 25.83 kB / 0.6198 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.955e-05/0.003235, allocations: 310.8 kB / 0.6201 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.045e-05/0.003245, allocations: 4 kB / 0.6201 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.232e-06/0.003252, allocations: 3.938 kB / 0.6201 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.563e-05/0.003277, allocations: 16.86 kB / 0.6201 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.00328, allocations: 0 / 0.6201 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.676e-05/0.003316, allocations: 37.69 kB / 0.6201 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.003329, allocations: 4 kB / 0.6201 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.003333, allocations: 0 / 0.6201 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.003344, allocations: 96 / 0.6201 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.78e-05/0.003392, allocations: 8 kB / 0.6201 GB, free: 11.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.003397, allocations: 3.938 kB / 0.6201 GB, free: 11.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.236e-06/0.003405, allocations: 0 / 0.6201 GB, free: 11.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.938e-06/0.003409, allocations: 0 / 0.6201 GB, free: 11.4 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 5.162e-05/0.003461, allocations: 118.8 kB / 0.6203 GB, free: 11.27 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-06/0.003464, allocations: 3.938 kB / 0.6203 GB, free: 11.27 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.398e-05/0.003528, allocations: 52.75 kB / 0.6203 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.003529, allocations: 0 / 0.6203 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.003534, allocations: 3.938 kB / 0.6203 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.003538, allocations: 8.016 kB / 0.6203 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.934e-05/0.003597, allocations: 116.8 kB / 0.6204 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-07/0.003598, allocations: 0 / 0.6204 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.649e-06/0.003607, allocations: 4 kB / 0.6204 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.41e-07/0.003608, allocations: 0 / 0.6204 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-06/0.003613, allocations: 0 / 0.6204 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.003614, allocations: 0 / 0.6204 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.003616, allocations: 3.938 kB / 0.6204 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.863e-05/0.003664, allocations: 69.06 kB / 0.6205 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 3.036e-06/0.003667, allocations: 0 / 0.6205 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.824e-06/0.003675, allocations: 0 / 0.6205 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.148e-06/0.003679, allocations: 4.031 kB / 0.6205 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.83e-05/0.003708, allocations: 15.91 kB / 0.6205 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.00371, allocations: 4 kB / 0.6205 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 1.828e-05/0.003728, allocations: 75.28 kB / 0.6206 GB, free: 10.85 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.003728, allocations: 3.938 kB / 0.6206 GB, free: 10.85 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001239/0.003852, allocations: 4 kB / 0.6206 GB, free: 10.84 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.0002678/0.00412, allocations: 0.6007 MB / 0.6212 GB, free: 10.21 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 6.159e-05/0.004182, allocations: 19.95 kB / 0.6212 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.004183, allocations: 0 / 0.6212 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 1.05e-05/0.004193, allocations: 4 kB / 0.6212 GB, free: 10.19 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.677e-05/0.00429, allocations: 9.969 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.0002433/0.004533, allocations: 106.7 kB / 0.6213 GB, free: 10.04 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.727e-05/0.004571, allocations: 55.36 kB / 0.6214 GB, free: 9.965 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 9.668e-06/0.00458, allocations: 0 / 0.6214 GB, free: 9.965 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.209e-05/0.004602, allocations: 16.5 kB / 0.6214 GB, free: 9.945 MB / 0.5886 GB Notification: Performance of SimCode: time 3.61e-07/0.004603, allocations: 0 / 0.6214 GB, free: 9.945 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0148/0.01941, allocations: 1.705 MB / 0.6231 GB, free: 8.371 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.704/6.724, allocations: 15.88 kB / 0.6231 GB, free: 8.359 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 & /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 sys.exit(0), Time elapsed: 9.382307464256883] Failed to read output from testmodel.py, exit status != 0: 6.8016828102990985 6.81248529 6.80834711 Calling exit ...