Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001703/0.001703, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002093/0.002093, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 258.3 MB, free: 8.066 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 76.75 kB / 378.5 MB, free: 3.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2755, allocations: 53.36 MB / 431.9 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007229/0.2827, allocations: 5.484 MB / 437.4 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004049/0.2868, allocations: 2.173 MB / 439.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007777/0.2875, allocations: 51.56 kB / 439.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005085/0.2881, allocations: 210.2 kB / 439.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004404/0.2885, allocations: 166.4 kB / 440 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001034/0.2895, allocations: 426.6 kB / 440.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001159/0.2907, allocations: 1.013 MB / 441.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006573/0.2913, allocations: 421.6 kB / 441.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000482/0.2918, allocations: 350.8 kB / 442.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004312/0.2923, allocations: 366.3 kB / 442.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001133/0.2924, allocations: 92 kB / 442.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002727/0.2926, allocations: 163.9 kB / 442.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001898/0.2928, allocations: 207.4 kB / 443 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004502/0.2933, allocations: 433.9 kB / 443.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001283/0.2946, allocations: 1.195 MB / 444.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2946, allocations: 0 / 444.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2946, allocations: 0 / 444.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.842e-05/0.2946, allocations: 4 kB / 444.6 MB, free: 10.15 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001493/0.2961, allocations: 0.9842 MB / 445.6 MB, free: 9.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.2961, allocations: 8.031 kB / 445.6 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001481/0.2963, allocations: 135.5 kB / 445.7 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002321/0.2965, allocations: 100.4 kB / 445.8 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008068/0.2973, allocations: 460.3 kB / 446.3 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.499e-05/0.2974, allocations: 62.38 kB / 446.3 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.2975, allocations: 96.31 kB / 446.4 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.2989, allocations: 0.8007 MB / 447.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.549e-05/0.2989, allocations: 15.98 kB / 447.2 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.772e-05/0.299, allocations: 28 kB / 447.3 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.363e-05/0.299, allocations: 27.94 kB / 447.3 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009611/0.2999, allocations: 499.6 kB / 447.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003376/0.3033, allocations: 2.776 MB / 450.6 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005806/0.3039, allocations: 207.4 kB / 450.8 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.3041, allocations: 88.83 kB / 450.9 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001166/0.3042, allocations: 19.98 kB / 450.9 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.3042, allocations: 39.05 kB / 450.9 MB, free: 3.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.804e-06/0.3042, allocations: 0 / 450.9 MB, free: 3.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002465/0.3067, allocations: 1.124 MB / 452 MB, free: 2.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.3067, allocations: 55.41 kB / 452.1 MB, free: 2.344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003565/0.3071, allocations: 313.6 kB / 452.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.3071, allocations: 29.7 kB / 452.4 MB, free: 1.996 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002978/0.3074, allocations: 411.8 kB / 452.8 MB, free: 1.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.3075, allocations: 146.7 kB / 453 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.3077, allocations: 86.14 kB / 453.1 MB, free: 1.352 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.3079, allocations: 354.7 kB / 453.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/0.3081, allocations: 105 kB / 453.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003231/0.3084, allocations: 250 kB / 453.7 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000577/0.309, allocations: 396.7 kB / 454.1 MB, free: 140 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.309, allocations: 0 / 454.1 MB, free: 140 kB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007518/0.3097, allocations: 461.3 kB / 454.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.3097, allocations: 4 kB / 454.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.3097, allocations: 8 kB / 454.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001842/0.3099, allocations: 36.83 kB / 454.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/0.3103, allocations: 112.4 kB / 454.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004595/0.3107, allocations: 0.5601 MB / 455.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001826/0.3109, allocations: 20 kB / 455.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.031e-05/0.311, allocations: 20 kB / 455.3 MB, free: 14.89 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003248/0.3113, allocations: 221.6 kB / 455.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.879e-05/0.3114, allocations: 43.7 kB / 455.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006402/0.312, allocations: 322.2 kB / 455.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.312, allocations: 4 kB / 455.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.312, allocations: 4 kB / 455.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.312, allocations: 3.984 kB / 455.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001547/0.3136, allocations: 0.9839 MB / 456.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.3136, allocations: 4 kB / 456.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003506/0.3139, allocations: 75.89 kB / 457 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001447/0.3141, allocations: 44.78 kB / 457 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.506e-05/0.3141, allocations: 8 kB / 457 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003993/0.3145, allocations: 0.5526 MB / 457.6 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3145, allocations: 0 / 457.6 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008075/0.3153, allocations: 0.545 MB / 458.1 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.963e-05/0.3154, allocations: 27.77 kB / 458.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.586e-05/0.3154, allocations: 12 kB / 458.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/0.3155, allocations: 11.98 kB / 458.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.607e-05/0.3156, allocations: 32.17 kB / 458.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.195e-05/0.3156, allocations: 11.94 kB / 458.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002296/0.3159, allocations: 223.1 kB / 458.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3159, allocations: 3.938 kB / 458.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005084/0.3164, allocations: 119.9 kB / 458.6 MB, free: 11.52 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001212/0.3176, allocations: 1.11 MB / 459.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006403/0.3182, allocations: 300.2 kB / 460 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3182, allocations: 0 / 460 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002597/0.3185, allocations: 131.8 kB / 460.1 MB, free: 9.941 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004949/0.319, allocations: 75.64 kB / 460.2 MB, free: 9.871 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006331/0.3253, allocations: 4.409 MB / 464.6 MB, free: 5.223 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006356/0.326, allocations: 0.9171 MB / 465.5 MB, free: 4.281 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001656/0.3261, allocations: 45.97 kB / 465.5 MB, free: 4.234 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002937/0.3264, allocations: 243.3 kB / 465.8 MB, free: 3.996 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3264, allocations: 0 / 465.8 MB, free: 3.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04002/0.3664, allocations: 8.701 MB / 474.5 MB, free: 11.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.45, allocations: 2.812 kB / 474.5 MB, free: 11.45 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.925517535302788] Failed to read output from testmodel.py, exit status != 0: ['time', 'directInertia.inertia.phi', 'directInertia.inertia.w', 'inertia2a.phi', 'inertia2a.w', 'inertia2b.phi', 'inertia2b.w', 'inertia3a.phi', 'inertia3a.w', 'inertia3b.phi', 'inertia3b.w'] 12.567425553686917 12.585216631 12.286981698 Calling exit ...