Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001819/0.001819, allocations: 117.9 kB / 17.84 MB, free: 5.23 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002383/0.002383, allocations: 199.5 kB / 18.79 MB, free: 4.285 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.528/1.528, allocations: 230.4 MB / 250 MB, free: 9.02 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.001965/0.001965, allocations: 72.06 kB / 366.9 MB, free: 7.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3191, allocations: 53.3 MB / 420.2 MB, free: 8.266 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.02096/0.3401, allocations: 17.31 MB / 437.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01392/0.354, allocations: 5.506 MB / 443 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004277/0.3583, allocations: 123.6 kB / 443.1 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009672/0.368, allocations: 4.407 MB / 447.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00842/0.3764, allocations: 2.793 MB / 450.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004124/0.3805, allocations: 1.459 MB / 451.8 MB, free: 8.555 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01467/0.3952, allocations: 8.657 MB / 460.4 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00771/0.4029, allocations: 4.582 MB / 465 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006234/0.4091, allocations: 2.663 MB / 467.7 MB, free: 8.555 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007614/0.4167, allocations: 4.152 MB / 471.8 MB, free: 4.391 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00244/0.4192, allocations: 0.5352 MB / 472.4 MB, free: 3.855 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004705/0.4239, allocations: 1.662 MB / 474 MB, free: 2.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00514/0.429, allocations: 3.436 MB / 477.5 MB, free: 14.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007005/0.436, allocations: 3.779 MB / 481.2 MB, free: 10.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01706/0.4531, allocations: 11.55 MB / 492.8 MB, free: 15.35 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.4531, allocations: 0 / 492.8 MB, free: 15.35 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4531, allocations: 0 / 492.8 MB, free: 15.35 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005005/0.4536, allocations: 0 / 492.8 MB, free: 15.35 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02911/0.4827, allocations: 8.685 MB / 0.4897 GB, free: 6.57 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.498e-05/0.4828, allocations: 11.97 kB / 0.4897 GB, free: 6.559 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00379/0.4866, allocations: 1.087 MB / 0.4908 GB, free: 5.461 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1679/0.6545, allocations: 12.94 MB / 0.5034 GB, free: 8.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01576/0.6702, allocations: 6.194 MB / 0.5095 GB, free: 2.227 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004192/0.6707, allocations: 369.5 kB / 0.5098 GB, free: 1.863 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002115/0.6728, allocations: 0.523 MB / 0.5103 GB, free: 1.34 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03684/0.7096, allocations: 16.11 MB / 0.5261 GB, free: 168 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000365/0.71, allocations: 83.44 kB / 0.5262 GB, free: 84 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001767/0.7118, allocations: 235.8 kB / 0.5264 GB, free: 15.85 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005801/0.7176, allocations: 2.926 MB / 0.5292 GB, free: 12.92 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2888/1.006, allocations: 13.44 MB / 0.5424 GB, free: 105.5 MB / 462.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0748/1.081, allocations: 64.01 MB / 0.6049 GB, free: 56.14 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02027/1.101, allocations: 7.454 MB / 0.6121 GB, free: 48.55 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005114/1.107, allocations: 3.783 MB / 0.6158 GB, free: 44.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02955/1.136, allocations: 18.8 MB / 0.6342 GB, free: 25.58 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.328e-05/1.136, allocations: 68.5 kB / 0.6343 GB, free: 25.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=287): time 5.931e-06/1.136, allocations: 0 / 0.6343 GB, free: 25.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=370): time 0.1755/1.312, allocations: 51.01 MB / 0.6841 GB, free: 6.738 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002001/1.312, allocations: 269.8 kB / 0.6843 GB, free: 6.418 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01216/1.324, allocations: 6.091 MB / 0.6903 GB, free: 440 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009378/1.325, allocations: 81.7 kB / 0.6904 GB, free: 352 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005589/1.331, allocations: 4.926 MB / 0.6952 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002649/1.333, allocations: 1.418 MB / 0.6966 GB, free: 9.977 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006247/1.339, allocations: 1.834 MB / 0.6984 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001576/1.34, allocations: 309.1 kB / 0.6986 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008382/1.348, allocations: 3.93 MB / 0.7025 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01409/1.362, allocations: 9.169 MB / 0.7114 GB, free: 8.141 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02278/1.385, allocations: 14.15 MB / 0.7253 GB, free: 7.398 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002362/1.385, allocations: 59.94 kB / 0.7253 GB, free: 7.34 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.04276/1.428, allocations: 16.37 MB / 0.7413 GB, free: 6.926 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002717/1.428, allocations: 84 kB / 0.7414 GB, free: 6.844 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003489/1.429, allocations: 180 kB / 0.7416 GB, free: 6.668 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01442/1.443, allocations: 4.029 MB / 0.7455 GB, free: 2.633 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007986/1.451, allocations: 2.066 MB / 0.7475 GB, free: 0.5625 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2996/1.751, allocations: 23.51 MB / 0.7705 GB, free: 174.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009166/1.76, allocations: 0.5072 MB / 0.771 GB, free: 174.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002869/1.763, allocations: 0.5315 MB / 0.7715 GB, free: 174.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1088): * Single equations (assignments): 1083 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,44,100.0%), (4,48,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007264/1.77, allocations: 3.115 MB / 0.7745 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/1.771, allocations: 0.6067 MB / 0.7751 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01869/1.79, allocations: 9.767 MB / 0.7847 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-05/1.79, allocations: 49.44 kB / 0.7847 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.363e-05/1.79, allocations: 15.81 kB / 0.7847 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.708e-05/1.79, allocations: 16.59 kB / 0.7847 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03572/1.826, allocations: 19.37 MB / 0.8037 GB, free: 152.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.721e-05/1.826, allocations: 3.938 kB / 0.8037 GB, free: 152.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002615/1.828, allocations: 0.5376 MB / 0.8042 GB, free: 152.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01142/1.84, allocations: 3.624 MB / 0.8077 GB, free: 148.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007601/1.841, allocations: 63.89 kB / 0.8078 GB, free: 148.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02416/1.865, allocations: 21.36 MB / 0.8286 GB, free: 127.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.865, allocations: 0 / 0.8286 GB, free: 127.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02239/1.887, allocations: 14.48 MB / 0.8428 GB, free: 113.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/1.889, allocations: 0.6115 MB / 0.8434 GB, free: 112.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001449/1.89, allocations: 60 kB / 0.8434 GB, free: 112.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003223/1.893, allocations: 203.7 kB / 0.8436 GB, free: 112.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009631/1.894, allocations: 234 kB / 0.8439 GB, free: 111.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002827/1.894, allocations: 99.98 kB / 0.8439 GB, free: 111.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005147/1.9, allocations: 3.795 MB / 0.8477 GB, free: 108.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/1.9, allocations: 3.781 kB / 0.8477 GB, free: 108.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008768/1.908, allocations: 1.82 MB / 0.8494 GB, free: 106.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (270): * Single equations (assignments): 265 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,43,100.0%), (1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02346/1.932, allocations: 15.24 MB / 0.8643 GB, free: 90.96 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0139/1.946, allocations: 9.594 MB / 0.8737 GB, free: 81.41 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/1.946, allocations: 7.75 kB / 0.8737 GB, free: 81.41 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004794/1.951, allocations: 3.636 MB / 0.8772 GB, free: 77.75 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004124/1.955, allocations: 0.7989 MB / 0.878 GB, free: 76.95 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3541/2.309, allocations: 83.52 MB / 0.9596 GB, free: 192.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006311/2.315, allocations: 4.866 MB / 0.9643 GB, free: 191.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00618/2.321, allocations: 2.793 MB / 0.9671 GB, free: 191.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004405/2.326, allocations: 3.242 MB / 0.9702 GB, free: 190.8 MB / 0.5606 GB Notification: Performance of SimCode: time 2.424e-06/2.326, allocations: 3.844 kB / 0.9702 GB, free: 190.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1909/2.517, allocations: 135.7 MB / 1.103 GB, free: 67.03 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 46.4/48.91, allocations: 64 / 1.103 GB, free: 67.03 MB / 0.5606 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1)