Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.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.First,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001674/0.001674, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002032/0.002032, allocations: 201.2 kB / 18.74 MB, free: 4.332 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.494/1.494, 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.001895/0.001895, allocations: 67.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2786, allocations: 50.55 MB / 409.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003766/0.2824, allocations: 2.358 MB / 411.4 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.2837, allocations: 0.6466 MB / 412.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.2838, allocations: 8 kB / 412.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001678/0.284, allocations: 31.59 kB / 412.1 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001752/0.2842, allocations: 83.33 kB / 412.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.2845, allocations: 59.86 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003391/0.2849, allocations: 278.6 kB / 412.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000226/0.2851, allocations: 98.73 kB / 412.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002402/0.2853, allocations: 119.6 kB / 412.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001745/0.2855, allocations: 111.5 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.895e-05/0.2856, allocations: 24 kB / 412.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.925e-05/0.2857, allocations: 27.94 kB / 412.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.485e-05/0.2857, allocations: 51.78 kB / 412.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.2858, allocations: 119.4 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003736/0.2862, allocations: 278 kB / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2862, allocations: 0 / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2863, allocations: 0 / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.2863, allocations: 3.938 kB / 413.3 MB, free: 13.04 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007876/0.2871, allocations: 0.5299 MB / 413.9 MB, free: 12.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.2871, allocations: 16.02 kB / 413.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.462e-05/0.2872, allocations: 58.73 kB / 413.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.2873, allocations: 36.73 kB / 414 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003844/0.2877, allocations: 244.7 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/0.2878, allocations: 20.81 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.892e-05/0.2878, allocations: 24.33 kB / 414.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003668/0.2882, allocations: 199.3 kB / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.2882, allocations: 0 / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.2883, allocations: 12 kB / 414.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-06/0.2883, allocations: 4 kB / 414.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000283/0.2886, allocations: 145.6 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.2896, allocations: 0.6232 MB / 415.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000322/0.2899, allocations: 186.5 kB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/0.2901, allocations: 96.83 kB / 415.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.2901, allocations: 4 kB / 415.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.2902, allocations: 38.56 kB / 415.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.2902, allocations: 0 / 415.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001946/0.2921, allocations: 1.067 MB / 416.6 MB, free: 9.496 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.2922, allocations: 63.34 kB / 416.7 MB, free: 9.422 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.2924, allocations: 179.2 kB / 416.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.2924, allocations: 29.7 kB / 416.9 MB, free: 9.203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.2925, allocations: 144.9 kB / 417 MB, free: 9.055 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.992e-05/0.2926, allocations: 115 kB / 417.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.412e-05/0.2927, allocations: 57.69 kB / 417.2 MB, free: 8.879 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2929, allocations: 326.8 kB / 417.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.293, allocations: 79.95 kB / 417.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.2932, allocations: 98.81 kB / 417.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003316/0.2936, allocations: 189 kB / 417.9 MB, free: 8.176 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.2936, allocations: 0 / 417.9 MB, free: 8.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005297/0.2941, allocations: 299.2 kB / 418.2 MB, free: 7.875 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.2941, allocations: 8 kB / 418.2 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2941, allocations: 0 / 418.2 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001708/0.2943, allocations: 40.83 kB / 418.2 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/0.2946, allocations: 59.91 kB / 418.3 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.2963, allocations: 1.752 MB / 420 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.2965, allocations: 12.09 kB / 420 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.2965, allocations: 11.98 kB / 420 MB, free: 5.855 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001702/0.2967, allocations: 141.7 kB / 420.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.987e-05/0.2967, allocations: 27.8 kB / 420.2 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.334e-05/0.2968, allocations: 30.59 kB / 420.2 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.2968, allocations: 4 kB / 420.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.2968, allocations: 0 / 420.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2968, allocations: 3.984 kB / 420.3 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001247/0.2981, allocations: 0.7892 MB / 421 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.2981, allocations: 0 / 421 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002581/0.2984, allocations: 55.91 kB / 421.1 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000134/0.2985, allocations: 44.92 kB / 421.1 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.2985, allocations: 4 kB / 421.1 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001312/0.2999, allocations: 1.489 MB / 422.6 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.2999, allocations: 4.031 kB / 422.6 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007141/0.3006, allocations: 486.6 kB / 423.1 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.456e-05/0.3007, allocations: 101 kB / 423.2 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.969e-05/0.3007, allocations: 8 kB / 423.2 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.3009, allocations: 8 kB / 423.2 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.13e-05/0.3009, allocations: 19.97 kB / 423.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.3009, allocations: 12 kB / 423.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001356/0.3011, allocations: 144.3 kB / 423.4 MB, free: 2.219 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3011, allocations: 0 / 423.4 MB, free: 2.219 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003981/0.3015, allocations: 64 kB / 423.5 MB, free: 2.156 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * 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: 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.001083/0.3026, allocations: 1.024 MB / 424.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006663/0.3033, allocations: 346.4 kB / 424.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3033, allocations: 128 / 424.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003636/0.3037, allocations: 242.5 kB / 425.1 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004374/0.3041, allocations: 39.91 kB / 425.1 MB, free: 464 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003926/0.308, allocations: 2.764 MB / 427.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/0.3085, allocations: 0.7564 MB / 428.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.3086, allocations: 26.27 kB / 428.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.3088, allocations: 75.41 kB / 428.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3088, allocations: 8 kB / 428.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03394/0.3427, allocations: 5.274 MB / 434 MB, free: 7.547 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.47, allocations: 18.52 kB / 434 MB, free: 7.531 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First_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_First.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1)