Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 110.4 kB / 17.06 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 191 kB / 17.99 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 51.94 kB / 327.9 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09949/0.1008, allocations: 46.61 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2518/0.3526, allocations: 17.35 MB / 391.8 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0141/0.3668, allocations: 5.49 MB / 397.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005056/0.3719, allocations: 113.5 kB / 397.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01/0.3819, allocations: 4.372 MB / 401.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009154/0.3911, allocations: 2.754 MB / 404.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00417/0.3953, allocations: 1.468 MB / 406 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01395/0.4093, allocations: 8.147 MB / 414.2 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009677/0.419, allocations: 5.383 MB / 419.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007003/0.4261, allocations: 2.695 MB / 422.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006893/0.433, allocations: 3.852 MB / 426.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002419/0.4355, allocations: 0.5391 MB / 426.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00501/0.4405, allocations: 1.619 MB / 428.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005262/0.4458, allocations: 3.347 MB / 431.6 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007491/0.4534, allocations: 3.659 MB / 435.3 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01548/0.4689, allocations: 11.24 MB / 446.5 MB, free: 7.309 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.4689, allocations: 0 / 446.5 MB, free: 7.309 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4689, allocations: 0 / 446.5 MB, free: 7.309 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003745/0.4693, allocations: 0 / 446.5 MB, free: 7.309 MB / 366.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.02517/0.4945, allocations: 8.226 MB / 454.7 MB, free: 15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.4946, allocations: 8.031 kB / 454.7 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03274/0.5273, allocations: 3.677 MB / 458.4 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01547/0.5428, allocations: 5.61 MB / 464 MB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003434/0.5432, allocations: 373.4 kB / 464.4 MB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0025/0.5457, allocations: 0.5151 MB / 464.9 MB, free: 4.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04862/0.5944, allocations: 16.23 MB / 481.1 MB, free: 3.422 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004932/0.5949, allocations: 79.36 kB / 481.2 MB, free: 3.344 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002707/0.5976, allocations: 235.7 kB / 481.5 MB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007678/0.6053, allocations: 2.934 MB / 484.4 MB, free: 180 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03383/0.6392, allocations: 13.71 MB / 498.1 MB, free: 2.441 MB / 414.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.09727/0.7365, allocations: 64.56 MB / 0.5495 GB, free: 16 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2303/0.9668, allocations: 7.857 MB / 0.5571 GB, free: 145.6 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006435/0.9733, allocations: 4.348 MB / 0.5614 GB, free: 143.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02865/1.002, allocations: 19.36 MB / 0.5803 GB, free: 134 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/1.002, allocations: 63.28 kB / 0.5804 GB, free: 133.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=290): time 5.621e-06/1.002, allocations: 0 / 0.5804 GB, free: 133.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=372): time 0.1557/1.158, allocations: 49.91 MB / 0.6291 GB, free: 92.39 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.651e-05/1.158, allocations: 269.8 kB / 0.6294 GB, free: 92.07 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006749/1.165, allocations: 6.098 MB / 0.6353 GB, free: 85.96 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007788/1.165, allocations: 81.7 kB / 0.6354 GB, free: 85.88 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001897/1.167, allocations: 4.68 MB / 0.64 GB, free: 81.2 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001214/1.169, allocations: 1.367 MB / 0.6413 GB, free: 79.84 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002127/1.171, allocations: 1.916 MB / 0.6432 GB, free: 77.91 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.462e-05/1.171, allocations: 305.1 kB / 0.6435 GB, free: 77.61 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004768/1.176, allocations: 4.228 MB / 0.6476 GB, free: 73.38 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006737/1.182, allocations: 9.453 MB / 0.6568 GB, free: 61.38 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01304/1.195, allocations: 14.62 MB / 0.6711 GB, free: 44.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001235/1.196, allocations: 52 kB / 0.6711 GB, free: 44.14 MB / 478.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03219/1.228, allocations: 17.55 MB / 0.6883 GB, free: 26.55 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.491e-05/1.228, allocations: 82.25 kB / 0.6884 GB, free: 26.47 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001582/1.228, allocations: 180 kB / 0.6885 GB, free: 26.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01356/1.242, allocations: 4.543 MB / 0.693 GB, free: 21.74 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006834/1.248, allocations: 2.138 MB / 0.6951 GB, free: 19.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03259/1.281, allocations: 25.37 MB / 0.7198 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008191/1.289, allocations: 0.5228 MB / 0.7203 GB, free: 9.438 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001961/1.291, allocations: 0.5428 MB / 0.7209 GB, free: 8.898 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 (1136): * Single equations (assignments): 1131 * 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%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005984/1.297, allocations: 3.128 MB / 0.7239 GB, free: 5.758 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001433/1.299, allocations: 0.5707 MB / 0.7245 GB, free: 5.18 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2444/1.543, allocations: 10.7 MB / 0.7349 GB, free: 159.2 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.203e-05/1.543, allocations: 38.84 kB / 0.735 GB, free: 159.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.991e-05/1.543, allocations: 17.56 kB / 0.735 GB, free: 159.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001104/1.543, allocations: 21.94 kB / 0.735 GB, free: 159.2 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04208/1.586, allocations: 20.38 MB / 0.7549 GB, free: 153.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-05/1.586, allocations: 0 / 0.7549 GB, free: 153.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002926/1.589, allocations: 0.5319 MB / 0.7554 GB, free: 153.6 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01331/1.602, allocations: 4.176 MB / 0.7595 GB, free: 152.9 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009326/1.603, allocations: 63.44 kB / 0.7596 GB, free: 152.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02993/1.633, allocations: 23.14 MB / 0.7822 GB, free: 141.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/1.633, allocations: 0 / 0.7822 GB, free: 141.1 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02609/1.659, allocations: 15.63 MB / 0.7974 GB, free: 126.2 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003805/1.663, allocations: 1.181 MB / 0.7986 GB, free: 125.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001407/1.664, allocations: 56 kB / 0.7986 GB, free: 125.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003213/1.668, allocations: 215.7 kB / 0.7988 GB, free: 125 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008255/1.668, allocations: 232.2 kB / 0.7991 GB, free: 124.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002657/1.669, allocations: 95.98 kB / 0.7992 GB, free: 124.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005052/1.674, allocations: 3.808 MB / 0.8029 GB, free: 120.9 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/1.674, allocations: 0 / 0.8029 GB, free: 120.9 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.009792/1.683, allocations: 1.932 MB / 0.8048 GB, free: 119 MB / 0.4981 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 (272): * Single equations (assignments): 267 * 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.0007771/1.684, allocations: 224.7 kB / 0.805 GB, free: 118.8 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01453/1.699, allocations: 10.53 MB / 0.8153 GB, free: 108.3 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/1.699, allocations: 3.844 kB / 0.8153 GB, free: 108.3 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005674/1.705, allocations: 4.123 MB / 0.8193 GB, free: 104.2 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005186/1.71, allocations: 0.7798 MB / 0.8201 GB, free: 103.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02642/1.736, allocations: 16.29 MB / 0.836 GB, free: 87.32 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005607/1.742, allocations: 4.88 MB / 0.8407 GB, free: 82.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006032/1.748, allocations: 2.789 MB / 0.8434 GB, free: 79.61 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001251/1.749, allocations: 383.4 kB / 0.8438 GB, free: 79.23 MB / 0.4981 GB Notification: Performance of SimCode: time 1.122e-06/1.749, allocations: 0 / 0.8438 GB, free: 79.23 MB / 0.4981 GB Notification: Performance of Templates: time 0.3346/2.084, allocations: 80.26 MB / 0.9222 GB, free: 144.3 MB / 0.4981 GB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1)