Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.ElasticBearing,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00178/0.00178, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002004/0.002004, allocations: 206 kB / 18.74 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.508/1.508, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.001964/0.001965, allocations: 63.89 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2847, allocations: 50.54 MB / 409.1 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003849/0.2886, allocations: 2.433 MB / 411.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.2899, allocations: 0.6077 MB / 412.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.2901, allocations: 7.938 kB / 412.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.2903, allocations: 43.58 kB / 412.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.2905, allocations: 83.31 kB / 412.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002002/0.2907, allocations: 59.86 kB / 412.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003688/0.2911, allocations: 298.6 kB / 412.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.2913, allocations: 114.9 kB / 412.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.2915, allocations: 111.6 kB / 412.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001836/0.2917, allocations: 123.5 kB / 412.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.337e-05/0.2918, allocations: 24 kB / 412.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.939e-05/0.2918, allocations: 24 kB / 413 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.017e-05/0.2919, allocations: 51.83 kB / 413 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.292, allocations: 135.3 kB / 413.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000433/0.2925, allocations: 289.8 kB / 413.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.235e-05/0.2925, allocations: 7.984 kB / 413.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2925, allocations: 7.938 kB / 413.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.2925, allocations: 0 / 413.5 MB, free: 13.11 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.000882/0.2934, allocations: 0.534 MB / 414 MB, free: 12.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.2935, allocations: 12.03 kB / 414 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.097e-05/0.2935, allocations: 58.73 kB / 414.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.532e-05/0.2936, allocations: 28.75 kB / 414.1 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003615/0.294, allocations: 244.5 kB / 414.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.294, allocations: 20.88 kB / 414.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.787e-05/0.2941, allocations: 39.94 kB / 414.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004697/0.2945, allocations: 220.9 kB / 414.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/0.2946, allocations: 11.94 kB / 414.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.423e-05/0.2946, allocations: 8 kB / 414.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.2946, allocations: 8 kB / 414.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00041/0.295, allocations: 174.1 kB / 414.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.2963, allocations: 0.7541 MB / 415.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005215/0.2968, allocations: 224 kB / 415.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002331/0.2971, allocations: 115.8 kB / 415.9 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.2971, allocations: 8 kB / 415.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.2971, allocations: 34.55 kB / 415.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 2.715e-06/0.2972, allocations: 0 / 415.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001876/0.299, allocations: 0.9677 MB / 416.9 MB, free: 9.402 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.2991, allocations: 55.41 kB / 416.9 MB, free: 9.336 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.2993, allocations: 159.8 kB / 417.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.2993, allocations: 29.7 kB / 417.1 MB, free: 9.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.962e-05/0.2994, allocations: 140.8 kB / 417.3 MB, free: 8.992 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.486e-05/0.2995, allocations: 115 kB / 417.4 MB, free: 8.879 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-05/0.2996, allocations: 49.7 kB / 417.4 MB, free: 8.824 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.2997, allocations: 338.8 kB / 417.8 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.2999, allocations: 71.97 kB / 417.8 MB, free: 8.414 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002255/0.3002, allocations: 112.1 kB / 417.9 MB, free: 8.293 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004029/0.3006, allocations: 207.3 kB / 418.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.3006, allocations: 0 / 418.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005024/0.3011, allocations: 257.5 kB / 418.4 MB, free: 7.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.3011, allocations: 8 kB / 418.4 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.3011, allocations: 4.094 kB / 418.4 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.3012, allocations: 4 kB / 418.4 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.3015, allocations: 67.91 kB / 418.5 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.3015, allocations: 7.984 kB / 418.5 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.3016, allocations: 8 kB / 418.5 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.3016, allocations: 12 kB / 418.5 MB, free: 7.711 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (35): * Single equations (assignments): 35 * 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 0.000142/0.3018, allocations: 145.7 kB / 418.6 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.571e-05/0.3018, allocations: 27.84 kB / 418.7 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.911e-05/0.3019, allocations: 26.56 kB / 418.7 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.3019, allocations: 3.938 kB / 418.7 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/0.3019, allocations: 8 kB / 418.7 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3019, allocations: 0 / 418.7 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.303, allocations: 0.6487 MB / 419.4 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.303, allocations: 0 / 419.4 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003359/0.3034, allocations: 71.89 kB / 419.4 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.3034, allocations: 0 / 419.4 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/0.3034, allocations: 11.94 kB / 419.4 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.3034, allocations: 0 / 419.4 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.3034, allocations: 4 kB / 419.4 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007554/0.3042, allocations: 446.6 kB / 419.9 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.289e-05/0.3043, allocations: 96.94 kB / 420 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.454e-05/0.3043, allocations: 12 kB / 420 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.3044, allocations: 8 kB / 420 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.866e-05/0.3045, allocations: 23.97 kB / 420 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.3045, allocations: 8 kB / 420 MB, free: 6.078 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001072/0.3047, allocations: 119.2 kB / 420.1 MB, free: 5.961 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3047, allocations: 0 / 420.1 MB, free: 5.961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003167/0.305, allocations: 56 kB / 420.2 MB, free: 5.906 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.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 (28): * Single equations (assignments): 28 * 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.00105/0.306, allocations: 0.9769 MB / 421.2 MB, free: 4.898 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004957/0.3065, allocations: 200.1 kB / 421.4 MB, free: 4.703 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3066, allocations: 0 / 421.4 MB, free: 4.703 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002217/0.3068, allocations: 117.2 kB / 421.5 MB, free: 4.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004357/0.3072, allocations: 35.97 kB / 421.5 MB, free: 4.555 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003682/0.3109, allocations: 2.675 MB / 424.2 MB, free: 1.758 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.3113, allocations: 0.7522 MB / 424.9 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001046/0.3115, allocations: 25.88 kB / 425 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.3116, allocations: 75.41 kB / 425 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of SimCode: time 1.253e-06/0.3116, allocations: 0 / 425 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02908/0.3407, allocations: 4.52 MB / 429.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.015/8.356, allocations: 10.95 kB / 429.6 MB, free: 12.48 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1)