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.001476/0.001476, allocations: 121.6 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.001524/0.001524, allocations: 204.7 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.467/1.467, 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.001919/0.001919, allocations: 67.89 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2631, allocations: 50.55 MB / 409.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.02027/0.2835, allocations: 17.23 MB / 426.3 MB, free: 32 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01353/0.2971, allocations: 5.486 MB / 431.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004545/0.3017, allocations: 119.6 kB / 431.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009481/0.3112, allocations: 4.345 MB / 436.3 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008366/0.3196, allocations: 2.714 MB / 439 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003872/0.3235, allocations: 1.462 MB / 440.4 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0147/0.3383, allocations: 8.647 MB / 449.1 MB, free: 9.199 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009049/0.3474, allocations: 5.37 MB / 454.5 MB, free: 3.754 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005988/0.3534, allocations: 2.66 MB / 457.1 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007112/0.3606, allocations: 3.825 MB / 460.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002513/0.3631, allocations: 0.5352 MB / 461.5 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005118/0.3683, allocations: 1.611 MB / 463.1 MB, free: 11.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005467/0.3738, allocations: 3.296 MB / 466.4 MB, free: 7.797 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007864/0.3817, allocations: 3.779 MB / 470.2 MB, free: 3.996 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01739/0.3991, allocations: 11.54 MB / 481.7 MB, free: 8.406 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.3992, allocations: 4 kB / 481.7 MB, free: 8.402 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3992, allocations: 0 / 481.7 MB, free: 8.402 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004091/0.3996, allocations: 0 / 481.7 MB, free: 8.402 MB / 398.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.02599/0.4256, allocations: 8.675 MB / 490.4 MB, free: 15.63 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.581e-05/0.4257, allocations: 15.97 kB / 490.4 MB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003607/0.4293, allocations: 1.087 MB / 491.5 MB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1821/0.6114, allocations: 12.94 MB / 0.4926 GB, free: 1.555 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0144/0.6259, allocations: 6.202 MB / 0.4987 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003535/0.6263, allocations: 365.5 kB / 0.499 GB, free: 10.91 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001857/0.6281, allocations: 0.5191 MB / 0.4995 GB, free: 10.39 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03464/0.6628, allocations: 16.12 MB / 0.5153 GB, free: 9.211 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003749/0.6632, allocations: 79.39 kB / 0.5153 GB, free: 9.133 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001462/0.6647, allocations: 239.8 kB / 0.5156 GB, free: 8.898 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005358/0.6701, allocations: 2.915 MB / 0.5184 GB, free: 5.98 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02995/0.7, allocations: 13.45 MB / 0.5315 GB, free: 8.504 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.3066/1.007, allocations: 64.01 MB / 0.5941 GB, free: 71.87 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01981/1.027, allocations: 7.753 MB / 0.6016 GB, free: 64.52 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004589/1.031, allocations: 4.127 MB / 0.6057 GB, free: 60.38 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02158/1.053, allocations: 18.84 MB / 0.6241 GB, free: 41.17 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/1.053, allocations: 60.56 kB / 0.6241 GB, free: 41.11 MB / 462.1 MB Notification: Performance of pre-optimization done (n=287): time 4.799e-06/1.053, allocations: 4 kB / 0.6241 GB, free: 41.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=370): time 0.1641/1.217, allocations: 51.05 MB / 0.674 GB, free: 6.289 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002367/1.217, allocations: 269.8 kB / 0.6742 GB, free: 5.969 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01703/1.234, allocations: 6.092 MB / 0.6802 GB, free: 15.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001222/1.236, allocations: 81.7 kB / 0.6803 GB, free: 15.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006737/1.242, allocations: 4.926 MB / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002939/1.245, allocations: 1.421 MB / 0.6865 GB, free: 9.883 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004399/1.25, allocations: 1.831 MB / 0.6882 GB, free: 8.039 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/1.25, allocations: 309.1 kB / 0.6885 GB, free: 7.734 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01102/1.261, allocations: 3.926 MB / 0.6924 GB, free: 3.801 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01953/1.281, allocations: 9.169 MB / 0.7013 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03192/1.313, allocations: 14.16 MB / 0.7152 GB, free: 7.316 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002044/1.313, allocations: 52 kB / 0.7152 GB, free: 7.266 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.06108/1.374, allocations: 16.42 MB / 0.7312 GB, free: 6.797 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001797/1.374, allocations: 84 kB / 0.7313 GB, free: 6.715 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003163/1.374, allocations: 188.1 kB / 0.7315 GB, free: 6.531 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02149/1.396, allocations: 4.025 MB / 0.7354 GB, free: 2.496 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007232/1.403, allocations: 2.066 MB / 0.7374 GB, free: 436 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2463/1.65, allocations: 23.52 MB / 0.7604 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007461/1.657, allocations: 0.5079 MB / 0.7609 GB, free: 169 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001363/1.658, allocations: 0.5251 MB / 0.7614 GB, free: 168.9 MB / 0.5294 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.004964/1.663, allocations: 3.129 MB / 0.7645 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001199/1.665, allocations: 0.5994 MB / 0.7651 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0186/1.683, allocations: 9.831 MB / 0.7747 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.035e-05/1.683, allocations: 36 kB / 0.7747 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.314e-05/1.683, allocations: 24.62 kB / 0.7747 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.618e-05/1.683, allocations: 18.66 kB / 0.7747 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03248/1.716, allocations: 19.41 MB / 0.7937 GB, free: 145 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.18e-05/1.716, allocations: 0 / 0.7937 GB, free: 145 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002673/1.719, allocations: 0.5459 MB / 0.7942 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01085/1.73, allocations: 3.626 MB / 0.7978 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006402/1.73, allocations: 59.98 kB / 0.7978 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0236/1.754, allocations: 21.38 MB / 0.8187 GB, free: 119.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/1.754, allocations: 0 / 0.8187 GB, free: 119.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02157/1.775, allocations: 14.52 MB / 0.8329 GB, free: 105 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001391/1.777, allocations: 0.6171 MB / 0.8335 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009115/1.778, allocations: 56 kB / 0.8335 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002612/1.78, allocations: 207.2 kB / 0.8337 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007442/1.781, allocations: 226.1 kB / 0.834 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002475/1.781, allocations: 98.72 kB / 0.834 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004538/1.786, allocations: 3.795 MB / 0.8378 GB, free: 99.98 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.51e-07/1.786, allocations: 3.938 kB / 0.8378 GB, free: 99.98 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007261/1.793, allocations: 1.817 MB / 0.8395 GB, free: 98.16 MB / 0.5294 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.02212/1.815, allocations: 15.3 MB / 0.8545 GB, free: 82.82 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01285/1.828, allocations: 10.01 MB / 0.8643 GB, free: 72.85 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/1.828, allocations: 0 / 0.8643 GB, free: 72.85 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004723/1.833, allocations: 3.961 MB / 0.8681 GB, free: 68.86 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004272/1.837, allocations: 0.8062 MB / 0.8689 GB, free: 68.06 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3448/2.182, allocations: 83.51 MB / 0.9505 GB, free: 188.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005825/2.188, allocations: 4.864 MB / 0.9552 GB, free: 187.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005953/2.194, allocations: 2.794 MB / 0.9579 GB, free: 187.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004491/2.199, allocations: 3.244 MB / 0.9611 GB, free: 184.6 MB / 0.545 GB Notification: Performance of SimCode: time 2.344e-06/2.199, allocations: 0 / 0.9611 GB, free: 184.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1904/2.389, allocations: 133.4 MB / 1.091 GB, free: 55.38 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 48.23/50.62, allocations: 10.94 kB / 1.091 GB, free: 55.37 MB / 0.545 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)