Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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.FirstGrounded,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001321/0.00132, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.406/1.406, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB 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.001988/0.001988, allocations: 63.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2806, allocations: 50.54 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003804/0.2845, allocations: 2.382 MB / 411.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.2858, allocations: 0.6427 MB / 412.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001781/0.286, allocations: 4 kB / 412.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.2862, allocations: 35.59 kB / 412.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000162/0.2864, allocations: 71.39 kB / 412.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002884/0.2867, allocations: 59.86 kB / 412.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003509/0.2871, allocations: 266.7 kB / 412.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002149/0.2873, allocations: 88.28 kB / 412.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000228/0.2875, allocations: 103.6 kB / 412.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.2877, allocations: 115.4 kB / 412.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.777e-05/0.2877, allocations: 20 kB / 412.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.351e-05/0.2878, allocations: 20 kB / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.857e-05/0.2879, allocations: 47.84 kB / 412.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.288, allocations: 119.4 kB / 413 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003684/0.2884, allocations: 246.1 kB / 413.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2884, allocations: 0 / 413.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2884, allocations: 0 / 413.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.577e-06/0.2884, allocations: 0 / 413.3 MB, free: 13.15 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007966/0.2892, allocations: 0.5298 MB / 413.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.2893, allocations: 8.031 kB / 413.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.709e-05/0.2894, allocations: 54.73 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.2895, allocations: 36.78 kB / 413.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003939/0.2899, allocations: 244.7 kB / 414.1 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.29, allocations: 16.81 kB / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.087e-05/0.29, allocations: 24.38 kB / 414.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003871/0.2904, allocations: 213.9 kB / 414.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.2904, allocations: 3.953 kB / 414.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.2905, allocations: 15.98 kB / 414.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.2905, allocations: 7.984 kB / 414.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000264/0.2907, allocations: 125.7 kB / 414.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.2918, allocations: 0.6939 MB / 415.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002749/0.2921, allocations: 154.4 kB / 415.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.2923, allocations: 76.81 kB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.2923, allocations: 4 kB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.321e-05/0.2923, allocations: 30.56 kB / 415.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.2923, allocations: 0 / 415.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001663/0.294, allocations: 0.8868 MB / 416.4 MB, free: 9.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.493e-05/0.2941, allocations: 55.41 kB / 416.4 MB, free: 9.703 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.2943, allocations: 176.3 kB / 416.6 MB, free: 9.516 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.2943, allocations: 29.7 kB / 416.6 MB, free: 9.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.2944, allocations: 160.3 kB / 416.8 MB, free: 9.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.283e-05/0.2945, allocations: 83.28 kB / 416.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.742e-05/0.2946, allocations: 45.7 kB / 416.9 MB, free: 9.188 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.2947, allocations: 326.8 kB / 417.2 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.2949, allocations: 55.97 kB / 417.3 MB, free: 8.805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.295, allocations: 104.2 kB / 417.4 MB, free: 8.688 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002894/0.2953, allocations: 165 kB / 417.5 MB, free: 8.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-06/0.2954, allocations: 0 / 417.5 MB, free: 8.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000486/0.2959, allocations: 258.1 kB / 417.8 MB, free: 8.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.2959, allocations: 4 kB / 417.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2959, allocations: 0 / 417.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001821/0.2961, allocations: 40.83 kB / 417.8 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.2963, allocations: 51.84 kB / 417.9 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.2977, allocations: 1.489 MB / 419.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.2979, allocations: 8.031 kB / 419.4 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.2979, allocations: 8 kB / 419.4 MB, free: 6.504 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001545/0.2981, allocations: 143.3 kB / 419.5 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.508e-05/0.2981, allocations: 23.86 kB / 419.5 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.582e-05/0.2982, allocations: 25.86 kB / 419.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2982, allocations: 3.938 kB / 419.6 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.2982, allocations: 4 kB / 419.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.2982, allocations: 0 / 419.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009972/0.2992, allocations: 0.6481 MB / 420.2 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.2992, allocations: 4 kB / 420.2 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002151/0.2994, allocations: 43.91 kB / 420.3 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001276/0.2996, allocations: 32.83 kB / 420.3 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.2996, allocations: 8 kB / 420.3 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001306/0.3009, allocations: 1.493 MB / 421.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3009, allocations: 0 / 421.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006334/0.3016, allocations: 405.6 kB / 422.2 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.764e-05/0.3017, allocations: 92.97 kB / 422.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/0.3017, allocations: 8.062 kB / 422.3 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.3018, allocations: 16.03 kB / 422.3 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.892e-05/0.3019, allocations: 23.86 kB / 422.3 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.3019, allocations: 4 kB / 422.3 MB, free: 3.281 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001228/0.3021, allocations: 132.1 kB / 422.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.374e-06/0.3021, allocations: 0 / 422.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003396/0.3024, allocations: 63.94 kB / 422.5 MB, free: 3.09 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (21): * Single equations (assignments): 20 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009462/0.3034, allocations: 0.9338 MB / 423.5 MB, free: 2.121 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006094/0.304, allocations: 302.3 kB / 423.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.304, allocations: 0 / 423.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003145/0.3043, allocations: 202.6 kB / 424 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.3047, allocations: 50.78 kB / 424 MB, free: 1.559 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00336/0.3081, allocations: 2.554 MB / 426.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.3085, allocations: 0.7482 MB / 427.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.982e-05/0.3086, allocations: 17.94 kB / 427.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.3087, allocations: 67.41 kB / 427.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3087, allocations: 0 / 427.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03151/0.3402, allocations: 4.764 MB / 432.2 MB, free: 9.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/10.41, allocations: 0 / 432.2 MB, free: 9.41 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.FirstGrounded_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_FirstGrounded.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1)