Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001177/0.001177, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001251/0.001251, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 63.89 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.244, allocations: 50.54 MB / 409.3 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01643/0.2604, allocations: 17.23 MB / 426.5 MB, free: 268 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01121/0.2717, allocations: 5.471 MB / 432 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00262/0.2743, allocations: 119.6 kB / 432.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007472/0.2819, allocations: 4.357 MB / 436.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006101/0.288, allocations: 2.715 MB / 439.2 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00307/0.2911, allocations: 1.459 MB / 440.6 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01132/0.3024, allocations: 8.655 MB / 449.3 MB, free: 9.43 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007671/0.3101, allocations: 5.371 MB / 454.6 MB, free: 3.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004541/0.3147, allocations: 2.652 MB / 457.3 MB, free: 1.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006334/0.321, allocations: 3.836 MB / 461.1 MB, free: 13.47 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002378/0.3234, allocations: 0.5352 MB / 461.7 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004444/0.3279, allocations: 1.611 MB / 463.3 MB, free: 11.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004805/0.3327, allocations: 3.367 MB / 466.6 MB, free: 7.949 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006479/0.3392, allocations: 3.631 MB / 470.3 MB, free: 4.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01476/0.354, allocations: 11.14 MB / 481.4 MB, free: 9.121 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.167e-06/0.354, allocations: 4 kB / 481.4 MB, free: 9.117 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3541, allocations: 3.938 kB / 481.4 MB, free: 9.113 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003257/0.3544, allocations: 0 / 481.4 MB, free: 9.113 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.01795/0.3723, allocations: 8.187 MB / 489.6 MB, free: 0.8398 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.3724, allocations: 8.031 kB / 489.6 MB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02952/0.4019, allocations: 3.67 MB / 493.3 MB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01267/0.4146, allocations: 5.297 MB / 498.6 MB, free: 7.77 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002675/0.4149, allocations: 373.5 kB / 498.9 MB, free: 7.402 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001604/0.4165, allocations: 0.5112 MB / 499.5 MB, free: 6.891 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02774/0.4443, allocations: 16.25 MB / 0.5036 GB, free: 5.574 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001832/0.4445, allocations: 83.3 kB / 0.5037 GB, free: 5.492 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006032/0.4451, allocations: 231.8 kB / 0.5039 GB, free: 5.266 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004499/0.4496, allocations: 2.927 MB / 0.5068 GB, free: 2.336 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02714/0.4768, allocations: 13.72 MB / 0.5202 GB, free: 4.59 MB / 446.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.2905/0.7673, allocations: 64.53 MB / 0.5832 GB, free: 75.23 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0203/0.7876, allocations: 7.876 MB / 0.5909 GB, free: 72.11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004527/0.7922, allocations: 4.341 MB / 0.5951 GB, free: 69.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02247/0.8147, allocations: 19.46 MB / 0.6141 GB, free: 51.75 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.8147, allocations: 64.56 kB / 0.6142 GB, free: 51.68 MB / 462.1 MB Notification: Performance of pre-optimization done (n=290): time 4.91e-06/0.8148, allocations: 3.938 kB / 0.6142 GB, free: 51.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=372): time 0.1518/0.9666, allocations: 49.85 MB / 0.6629 GB, free: 1.738 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.65e-05/0.9667, allocations: 269.8 kB / 0.6631 GB, free: 1.418 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008636/0.9754, allocations: 6.042 MB / 0.669 GB, free: 11.36 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009136/0.9763, allocations: 81.7 kB / 0.6691 GB, free: 11.28 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003119/0.9794, allocations: 4.663 MB / 0.6737 GB, free: 6.613 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00155/0.981, allocations: 1.37 MB / 0.675 GB, free: 5.254 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002576/0.9836, allocations: 1.912 MB / 0.6769 GB, free: 3.332 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.768e-05/0.9837, allocations: 301.4 kB / 0.6772 GB, free: 3.035 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0063/0.99, allocations: 4.235 MB / 0.6813 GB, free: 14.79 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01002/1, allocations: 9.469 MB / 0.6905 GB, free: 2.773 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01754/1.018, allocations: 14.64 MB / 0.7048 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001107/1.018, allocations: 52 kB / 0.7049 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03626/1.054, allocations: 17.57 MB / 0.722 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001352/1.054, allocations: 84 kB / 0.7221 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002262/1.054, allocations: 180 kB / 0.7223 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01458/1.069, allocations: 4.541 MB / 0.7267 GB, free: 11.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007673/1.077, allocations: 2.137 MB / 0.7288 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2406/1.317, allocations: 25.36 MB / 0.7536 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006665/1.324, allocations: 0.5316 MB / 0.7541 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009284/1.325, allocations: 0.5326 MB / 0.7546 GB, free: 170.4 MB / 0.5294 GB 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.003596/1.329, allocations: 3.125 MB / 0.7577 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006958/1.329, allocations: 0.5667 MB / 0.7582 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01951/1.349, allocations: 10.71 MB / 0.7687 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.646e-05/1.349, allocations: 39.69 kB / 0.7687 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.092e-05/1.349, allocations: 19.38 kB / 0.7687 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.218e-05/1.349, allocations: 19.31 kB / 0.7688 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03592/1.385, allocations: 20.38 MB / 0.7887 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.358e-05/1.385, allocations: 4 kB / 0.7887 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002712/1.388, allocations: 0.5421 MB / 0.7892 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01263/1.4, allocations: 4.17 MB / 0.7933 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005963/1.401, allocations: 71.61 kB / 0.7933 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03729/1.438, allocations: 23.1 MB / 0.8159 GB, free: 121.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/1.438, allocations: 0 / 0.8159 GB, free: 121.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03992/1.478, allocations: 15.66 MB / 0.8312 GB, free: 106 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001714/1.48, allocations: 0.5869 MB / 0.8318 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001298/1.481, allocations: 63.98 kB / 0.8318 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003477/1.485, allocations: 215.7 kB / 0.832 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008885/1.486, allocations: 233.9 kB / 0.8323 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002739/1.486, allocations: 95.98 kB / 0.8324 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005489/1.492, allocations: 3.769 MB / 0.836 GB, free: 101 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.2e-07/1.492, allocations: 0 / 0.836 GB, free: 101 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008462/1.5, allocations: 1.905 MB / 0.8379 GB, free: 99.09 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 (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.0006359/1.501, allocations: 207.7 kB / 0.8381 GB, free: 98.89 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01392/1.515, allocations: 10.54 MB / 0.8484 GB, free: 88.39 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/1.515, allocations: 0 / 0.8484 GB, free: 88.39 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004666/1.519, allocations: 4.138 MB / 0.8524 GB, free: 84.23 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00395/1.523, allocations: 0.7886 MB / 0.8532 GB, free: 83.46 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02106/1.544, allocations: 16.23 MB / 0.869 GB, free: 67.26 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003985/1.548, allocations: 4.861 MB / 0.8738 GB, free: 62.37 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005372/1.554, allocations: 2.785 MB / 0.8765 GB, free: 59.57 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/1.555, allocations: 379.4 kB / 0.8769 GB, free: 59.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.352e-06/1.555, allocations: 0 / 0.8769 GB, free: 59.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.3381/1.893, allocations: 80.53 MB / 0.9555 GB, free: 167.4 MB / 0.5294 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches