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.001497/0.001497, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002399/0.002399, allocations: 204.9 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.636/2.636, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 59.89 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.488/0.49, allocations: 50.54 MB / 409.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01969/0.5098, allocations: 17.24 MB / 427.2 MB, free: 232 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01392/0.5238, allocations: 5.471 MB / 432.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003888/0.5277, allocations: 119.6 kB / 432.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0095/0.5373, allocations: 4.357 MB / 437.1 MB, free: 6.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008081/0.5454, allocations: 2.711 MB / 439.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004198/0.5496, allocations: 1.455 MB / 441.3 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0145/0.5642, allocations: 8.651 MB / 449.9 MB, free: 9.402 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009964/0.5742, allocations: 5.368 MB / 455.3 MB, free: 3.957 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006671/0.5809, allocations: 2.652 MB / 458 MB, free: 1.297 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007833/0.5888, allocations: 3.836 MB / 461.8 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00293/0.5918, allocations: 0.5391 MB / 462.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005531/0.5974, allocations: 1.615 MB / 464 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006072/0.6036, allocations: 3.359 MB / 467.3 MB, free: 7.926 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008289/0.6119, allocations: 3.631 MB / 470.9 MB, free: 4.273 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01735/0.6293, allocations: 11.14 MB / 482.1 MB, free: 9.094 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.6293, allocations: 0 / 482.1 MB, free: 9.094 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.6293, allocations: 0 / 482.1 MB, free: 9.094 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005253/0.6299, allocations: 0 / 482.1 MB, free: 9.094 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.02685/0.6567, allocations: 8.191 MB / 490.3 MB, free: 0.8164 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.6568, allocations: 12.03 kB / 490.3 MB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03249/0.6893, allocations: 3.67 MB / 494 MB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01567/0.705, allocations: 5.293 MB / 499.3 MB, free: 7.746 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005609/0.7057, allocations: 377.5 kB / 499.6 MB, free: 7.375 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002758/0.7084, allocations: 0.515 MB / 0.4884 GB, free: 6.859 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03527/0.7437, allocations: 16.24 MB / 0.5043 GB, free: 5.547 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004337/0.7442, allocations: 79.3 kB / 0.5044 GB, free: 5.469 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001897/0.7461, allocations: 239.8 kB / 0.5046 GB, free: 5.234 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005185/0.7513, allocations: 2.919 MB / 0.5074 GB, free: 2.312 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03085/0.7822, allocations: 13.73 MB / 0.5208 GB, free: 4.562 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.3197/1.102, allocations: 64.53 MB / 0.5839 GB, free: 75.1 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02704/1.129, allocations: 7.875 MB / 0.5915 GB, free: 71.95 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005142/1.134, allocations: 4.348 MB / 0.5958 GB, free: 69.59 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02673/1.161, allocations: 19.46 MB / 0.6148 GB, free: 51.69 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/1.161, allocations: 63.25 kB / 0.6149 GB, free: 51.62 MB / 462.1 MB Notification: Performance of pre-optimization done (n=290): time 5.53e-06/1.161, allocations: 0 / 0.6149 GB, free: 51.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=372): time 0.1627/1.324, allocations: 49.84 MB / 0.6635 GB, free: 1.688 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/1.324, allocations: 281.8 kB / 0.6638 GB, free: 1.355 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0109/1.335, allocations: 6.038 MB / 0.6697 GB, free: 11.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001211/1.336, allocations: 85.7 kB / 0.6698 GB, free: 11.21 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005436/1.342, allocations: 4.658 MB / 0.6743 GB, free: 6.559 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002638/1.344, allocations: 1.369 MB / 0.6757 GB, free: 5.199 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003834/1.348, allocations: 1.918 MB / 0.6775 GB, free: 3.27 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/1.348, allocations: 301.1 kB / 0.6778 GB, free: 2.973 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006886/1.355, allocations: 4.232 MB / 0.682 GB, free: 14.73 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01082/1.366, allocations: 9.461 MB / 0.6912 GB, free: 2.723 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01912/1.385, allocations: 14.64 MB / 0.7055 GB, free: 1.523 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001552/1.385, allocations: 59.88 kB / 0.7055 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.04489/1.43, allocations: 17.56 MB / 0.7227 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002294/1.431, allocations: 86.97 kB / 0.7228 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003864/1.431, allocations: 180 kB / 0.723 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02496/1.456, allocations: 4.551 MB / 0.7274 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01415/1.47, allocations: 2.129 MB / 0.7295 GB, free: 8.906 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7152/2.186, allocations: 25.37 MB / 0.7543 GB, free: 170.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01931/2.205, allocations: 0.5269 MB / 0.7548 GB, free: 170.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004219/2.209, allocations: 0.5398 MB / 0.7553 GB, free: 170.2 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.016/2.225, allocations: 3.122 MB / 0.7583 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004166/2.23, allocations: 0.569 MB / 0.7589 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04718/2.277, allocations: 10.72 MB / 0.7694 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001586/2.277, allocations: 37.78 kB / 0.7694 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001561/2.277, allocations: 19.19 kB / 0.7694 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001857/2.277, allocations: 18.56 kB / 0.7694 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07627/2.354, allocations: 20.37 MB / 0.7893 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001261/2.354, allocations: 4 kB / 0.7893 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005142/2.359, allocations: 0.5426 MB / 0.7899 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0209/2.38, allocations: 4.173 MB / 0.7939 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001681/2.382, allocations: 63.98 kB / 0.794 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05165/2.433, allocations: 23.12 MB / 0.8166 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.675e-06/2.434, allocations: 0 / 0.8166 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05289/2.486, allocations: 15.66 MB / 0.8319 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00438/2.491, allocations: 0.5864 MB / 0.8324 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004427/2.496, allocations: 64 kB / 0.8325 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008567/2.504, allocations: 219.5 kB / 0.8327 GB, free: 105 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003395/2.508, allocations: 226.2 kB / 0.8329 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001855/2.51, allocations: 95.66 kB / 0.833 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.01451/2.524, allocations: 3.769 MB / 0.8367 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.613e-06/2.524, allocations: 0 / 0.8367 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.02354/2.548, allocations: 1.901 MB / 0.8386 GB, free: 98.99 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.002785/2.551, allocations: 215.8 kB / 0.8388 GB, free: 98.79 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.03173/2.583, allocations: 10.54 MB / 0.8491 GB, free: 88.29 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.899e-05/2.583, allocations: 0 / 0.8491 GB, free: 88.29 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01331/2.596, allocations: 4.13 MB / 0.8531 GB, free: 84.14 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01632/2.612, allocations: 0.7816 MB / 0.8539 GB, free: 83.38 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0726/2.685, allocations: 16.85 MB / 0.8703 GB, free: 66.55 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02274/2.708, allocations: 4.834 MB / 0.875 GB, free: 61.68 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005076/2.713, allocations: 439.4 kB / 0.8754 GB, free: 61.25 MB / 0.5294 GB Notification: Performance of SimCode: time 4.819e-06/2.713, allocations: 0 / 0.8754 GB, free: 61.25 MB / 0.5294 GB Notification: Performance of Templates: time 1.058/3.771, allocations: 154.9 MB / 1.027 GB, free: 106.6 MB / 0.545 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins1/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