Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.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.0009766/0.0009766, 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.0009949/0.0009949, allocations: 165.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.8942/0.8942, allocations: 177.1 MB / 202.8 MB, free: 5.758 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.7884/0.7884, allocations: 154.6 MB / 413.8 MB, free: 0.8086 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.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.184e-06/2.184e-06, allocations: 0 / 0.6181 GB, free: 13.65 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.026e-05/2.244e-05, allocations: 4.953 kB / 0.6181 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002859/0.002881, allocations: 1.535 MB / 0.6196 GB, free: 12.1 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0003563/0.003237, allocations: 127.6 kB / 0.6197 GB, free: 11.97 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.991e-05/0.003277, allocations: 4 kB / 0.6197 GB, free: 11.97 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.171e-05/0.003309, allocations: 3.938 kB / 0.6197 GB, free: 11.96 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 4.326e-05/0.003352, allocations: 3.938 kB / 0.6197 GB, free: 11.96 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002593/0.003612, allocations: 19.92 kB / 0.6198 GB, free: 11.94 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 7.569e-05/0.003687, allocations: 27.92 kB / 0.6198 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.003792, allocations: 15.97 kB / 0.6198 GB, free: 11.9 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 5.561e-05/0.003848, allocations: 16 kB / 0.6198 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.825e-05/0.003896, allocations: 11.98 kB / 0.6198 GB, free: 11.87 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.772e-05/0.003914, allocations: 4 kB / 0.6198 GB, free: 11.87 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.28e-05/0.003976, allocations: 7.984 kB / 0.6198 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.637e-05/0.003993, allocations: 11.94 kB / 0.6199 GB, free: 11.85 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.237e-05/0.004015, allocations: 11.97 kB / 0.6199 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.004145, allocations: 39.89 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.004147, allocations: 0 / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.303e-06/0.004148, allocations: 0 / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.004153, allocations: 0 / 0.6199 GB, free: 11.8 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004146/0.004568, allocations: 274.2 kB / 0.6202 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.004611, allocations: 12.03 kB / 0.6202 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.188e-05/0.004643, allocations: 30.75 kB / 0.6202 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.535e-05/0.004668, allocations: 0.9375 kB / 0.6202 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/0.004829, allocations: 113.7 kB / 0.6203 GB, free: 11.31 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.00485, allocations: 4.375 kB / 0.6203 GB, free: 11.3 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.004862, allocations: 8.359 kB / 0.6203 GB, free: 11.3 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001532/0.005015, allocations: 54.22 kB / 0.6204 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.005023, allocations: 192 / 0.6204 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.005033, allocations: 4.375 kB / 0.6204 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.005039, allocations: 12.12 kB / 0.6204 GB, free: 11.22 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.005167, allocations: 35.95 kB / 0.6204 GB, free: 11.19 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003349/0.005502, allocations: 232 kB / 0.6207 GB, free: 10.92 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.005764, allocations: 54.53 kB / 0.6207 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.021e-05/0.005835, allocations: 28.89 kB / 0.6207 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 9.247e-05/0.005927, allocations: 7.938 kB / 0.6207 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.005948, allocations: 34.56 kB / 0.6208 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.00595, allocations: 4 kB / 0.6208 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.0003136/0.006263, allocations: 93.56 kB / 0.6209 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.788e-05/0.006301, allocations: 55.41 kB / 0.6209 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.765e-05/0.006369, allocations: 93.86 kB / 0.621 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.006383, allocations: 25.7 kB / 0.621 GB, free: 10.47 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.865e-05/0.006431, allocations: 96.06 kB / 0.6211 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.006448, allocations: 3.953 kB / 0.6211 GB, free: 10.37 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.49e-05/0.006483, allocations: 21.72 kB / 0.6212 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001038/0.006587, allocations: 310.8 kB / 0.6214 GB, free: 10.03 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.727e-05/0.006654, allocations: 23.97 kB / 0.6215 GB, free: 10.01 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.563e-05/0.00671, allocations: 15.98 kB / 0.6215 GB, free: 9.992 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001208/0.006831, allocations: 44.81 kB / 0.6215 GB, free: 9.945 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.006833, allocations: 0 / 0.6215 GB, free: 9.945 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001784/0.007011, allocations: 89.48 kB / 0.6216 GB, free: 9.852 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.007026, allocations: 4 kB / 0.6216 GB, free: 9.848 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.007032, allocations: 3.938 kB / 0.6216 GB, free: 9.844 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.007049, allocations: 3.984 kB / 0.6216 GB, free: 9.84 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.833e-05/0.007107, allocations: 8 kB / 0.6216 GB, free: 9.832 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.81e-06/0.007113, allocations: 0 / 0.6216 GB, free: 9.832 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.778e-05/0.007151, allocations: 7.984 kB / 0.6216 GB, free: 9.824 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.007158, allocations: 4 kB / 0.6216 GB, free: 9.82 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.749e-05/0.007235, allocations: 114.3 kB / 0.6218 GB, free: 9.699 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.007259, allocations: 11.94 kB / 0.6218 GB, free: 9.688 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.007461, allocations: 89.25 kB / 0.6218 GB, free: 9.59 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.007467, allocations: 3.984 kB / 0.6219 GB, free: 9.586 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.007471, allocations: 0 / 0.6219 GB, free: 9.586 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.007475, allocations: 0 / 0.6219 GB, free: 9.586 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003158/0.007791, allocations: 128.8 kB / 0.622 GB, free: 9.418 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.007792, allocations: 0 / 0.622 GB, free: 9.418 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.19e-05/0.007844, allocations: 15.92 kB / 0.622 GB, free: 9.402 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.007846, allocations: 4 kB / 0.622 GB, free: 9.398 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.007854, allocations: 0 / 0.622 GB, free: 9.398 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.007856, allocations: 0 / 0.622 GB, free: 9.398 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.007858, allocations: 4 kB / 0.622 GB, free: 9.395 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001944/0.008053, allocations: 171.5 kB / 0.6222 GB, free: 9.211 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 8.617e-06/0.008061, allocations: 7.922 kB / 0.6222 GB, free: 9.203 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.008074, allocations: 0 / 0.6222 GB, free: 9.203 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.047e-05/0.008135, allocations: 4 kB / 0.6222 GB, free: 9.199 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.121e-05/0.008186, allocations: 11.92 kB / 0.6222 GB, free: 9.188 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.00819, allocations: 4 kB / 0.6222 GB, free: 9.184 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.339e-05/0.008224, allocations: 87.27 kB / 0.6223 GB, free: 9.098 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9e-08/0.008224, allocations: 0 / 0.6223 GB, free: 9.098 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002223/0.008446, allocations: 8 kB / 0.6223 GB, free: 9.09 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.000481/0.008927, allocations: 0.7007 MB / 0.623 GB, free: 8.363 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001802/0.009107, allocations: 47.89 kB / 0.623 GB, free: 8.316 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.009109, allocations: 4 kB / 0.623 GB, free: 8.312 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 6.72e-05/0.009177, allocations: 19.98 kB / 0.623 GB, free: 8.293 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.009456, allocations: 11.92 kB / 0.623 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004497/0.009906, allocations: 142.4 kB / 0.6232 GB, free: 8.102 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.848e-05/0.009964, allocations: 67.28 kB / 0.6232 GB, free: 8.016 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.866e-05/0.009993, allocations: 4 kB / 0.6232 GB, free: 8.012 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.431e-05/0.01004, allocations: 16.5 kB / 0.6233 GB, free: 7.996 MB / 0.5886 GB Notification: Performance of SimCode: time 8.82e-07/0.01004, allocations: 0 / 0.6233 GB, free: 7.996 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01724/0.02728, allocations: 2.272 MB / 0.6255 GB, free: 5.863 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.804/6.831, allocations: 10.05 kB / 0.6255 GB, free: 5.859 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.752587353810668] Failed to read output from testmodel.py, exit status != 0: 6.911464266479015 6.920397492 6.914472143 Calling exit ...