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.001782/0.001782, allocations: 121.4 kB / 17.84 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002089/0.002089, allocations: 208.5 kB / 18.79 MB, free: 4.121 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.435/1.435, allocations: 230.4 MB / 250 MB, free: 9.043 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.00189/0.00189, allocations: 67.83 kB / 366.8 MB, free: 7.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2701, allocations: 53.31 MB / 420.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003989/0.2741, allocations: 2.378 MB / 422.5 MB, free: 5.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.2754, allocations: 0.6505 MB / 423.2 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.2755, allocations: 4 kB / 423.2 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.2757, allocations: 39.59 kB / 423.2 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001806/0.2758, allocations: 83.33 kB / 423.3 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.2761, allocations: 63.86 kB / 423.4 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003233/0.2764, allocations: 278.6 kB / 423.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001975/0.2766, allocations: 74.75 kB / 423.7 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002167/0.2768, allocations: 115.6 kB / 423.8 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001751/0.277, allocations: 115.5 kB / 423.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.836e-05/0.2771, allocations: 20 kB / 424 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.662e-05/0.2771, allocations: 24 kB / 424 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.688e-05/0.2772, allocations: 51.78 kB / 424 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.2773, allocations: 123.4 kB / 424.2 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003712/0.2777, allocations: 278 kB / 424.4 MB, free: 3.973 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2777, allocations: 0 / 424.4 MB, free: 3.973 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2777, allocations: 0 / 424.4 MB, free: 3.973 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.2777, allocations: 3.938 kB / 424.4 MB, free: 3.969 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.000819/0.2785, allocations: 0.5289 MB / 425 MB, free: 3.395 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.2786, allocations: 8.031 kB / 425 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.584e-05/0.2786, allocations: 58.73 kB / 425 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.2788, allocations: 40.73 kB / 425.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004038/0.2792, allocations: 244.7 kB / 425.3 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.167e-05/0.2792, allocations: 20.75 kB / 425.3 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.06e-05/0.2793, allocations: 28.33 kB / 425.3 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003725/0.2796, allocations: 195.4 kB / 425.5 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.2797, allocations: 4 kB / 425.5 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.2797, allocations: 12 kB / 425.6 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.2797, allocations: 4 kB / 425.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002937/0.28, allocations: 141.6 kB / 425.7 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.281, allocations: 0.6154 MB / 426.3 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003318/0.2813, allocations: 186.3 kB / 426.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.2815, allocations: 95.91 kB / 426.6 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.2815, allocations: 0 / 426.6 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.2815, allocations: 34.56 kB / 426.6 MB, free: 1.605 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.152e-06/0.2816, allocations: 0 / 426.6 MB, free: 1.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001984/0.2835, allocations: 1.071 MB / 427.7 MB, free: 460 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.2836, allocations: 63.34 kB / 427.8 MB, free: 384 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.2838, allocations: 179.2 kB / 427.9 MB, free: 196 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.2838, allocations: 29.7 kB / 428 MB, free: 160 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.2839, allocations: 148.9 kB / 428.1 MB, free: 4 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.284, allocations: 123.1 kB / 428.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.108e-05/0.2841, allocations: 49.7 kB / 428.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.2843, allocations: 334.8 kB / 428.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.2844, allocations: 71.97 kB / 428.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.2846, allocations: 102.8 kB / 428.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003335/0.2849, allocations: 193 kB / 429 MB, free: 15.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.2849, allocations: 0 / 429 MB, free: 15.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005155/0.2854, allocations: 291 kB / 429.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.2854, allocations: 4 kB / 429.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.2854, allocations: 0 / 429.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001787/0.2856, allocations: 48.89 kB / 429.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002502/0.2859, allocations: 59.91 kB / 429.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001705/0.2876, allocations: 1.732 MB / 431.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.2877, allocations: 20.02 kB / 431.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.2877, allocations: 4 kB / 431.1 MB, free: 12.82 MB / 350.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.0001561/0.2879, allocations: 149.8 kB / 431.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.958e-05/0.2879, allocations: 23.86 kB / 431.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.768e-05/0.288, allocations: 30.64 kB / 431.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.288, allocations: 0 / 431.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.288, allocations: 4 kB / 431.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.288, allocations: 0 / 431.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.2892, allocations: 0.7897 MB / 432.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.2892, allocations: 4 kB / 432.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002671/0.2895, allocations: 55.91 kB / 432.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000127/0.2896, allocations: 32.83 kB / 432.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.2896, allocations: 8 kB / 432.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001408/0.291, allocations: 1.493 MB / 433.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.291, allocations: 4.062 kB / 433.7 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007483/0.2918, allocations: 482.6 kB / 434.2 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.191e-05/0.2919, allocations: 97 kB / 434.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.2919, allocations: 12 kB / 434.3 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.292, allocations: 11.94 kB / 434.3 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.436e-05/0.2921, allocations: 27.91 kB / 434.3 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.2921, allocations: 4 kB / 434.3 MB, free: 9.324 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001261/0.2923, allocations: 140.3 kB / 434.5 MB, free: 9.188 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2923, allocations: 0 / 434.5 MB, free: 9.188 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003765/0.2926, allocations: 68 kB / 434.5 MB, free: 9.121 MB / 350.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.001054/0.2937, allocations: 1.02 MB / 435.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006296/0.2943, allocations: 331.2 kB / 435.9 MB, free: 7.727 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2943, allocations: 0 / 435.9 MB, free: 7.727 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003709/0.2947, allocations: 234.5 kB / 436.1 MB, free: 7.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004328/0.2951, allocations: 54.7 kB / 436.1 MB, free: 7.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003862/0.299, allocations: 2.759 MB / 438.9 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004209/0.2994, allocations: 0.7564 MB / 439.7 MB, free: 3.773 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000116/0.2995, allocations: 26.27 kB / 439.7 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.2997, allocations: 75.41 kB / 439.8 MB, free: 3.676 MB / 350.1 MB Notification: Performance of SimCode: time 1.293e-06/0.2997, allocations: 0 / 439.8 MB, free: 3.676 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0346/0.3343, allocations: 5.373 MB / 445.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.93/10.26, allocations: 4 kB / 445.1 MB, free: 14.44 MB / 366.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)