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.001056/0.001056, allocations: 115.9 kB / 18.41 MB, free: 4.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 199.5 kB / 19.36 MB, free: 3.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 247.5 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 59.86 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08412/0.08534, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.1655/0.2509, allocations: 17.23 MB / 376.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01091/0.2619, allocations: 5.488 MB / 381.6 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002221/0.2641, allocations: 117.8 kB / 381.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006868/0.271, allocations: 4.355 MB / 386.1 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006177/0.2772, allocations: 2.713 MB / 388.8 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002937/0.2802, allocations: 1.464 MB / 390.3 MB, free: 5.531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01071/0.2909, allocations: 8.652 MB / 398.9 MB, free: 0.957 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006089/0.297, allocations: 5.356 MB / 404.3 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004358/0.3014, allocations: 2.671 MB / 407 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00511/0.3065, allocations: 3.825 MB / 410.8 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001551/0.3081, allocations: 0.5352 MB / 411.3 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003604/0.3117, allocations: 1.611 MB / 412.9 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003541/0.3153, allocations: 3.304 MB / 416.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004928/0.3202, allocations: 3.635 MB / 419.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01115/0.3314, allocations: 11.15 MB / 431 MB, free: 2.637 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3314, allocations: 0 / 431 MB, free: 2.637 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3315, allocations: 0 / 431 MB, free: 2.637 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002644/0.3317, allocations: 0 / 431 MB, free: 2.637 MB / 334.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.01733/0.3491, allocations: 8.18 MB / 439.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3491, allocations: 12.03 kB / 439.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02604/0.3752, allocations: 3.677 MB / 442.9 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01277/0.388, allocations: 5.282 MB / 448.2 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003057/0.3883, allocations: 373.5 kB / 448.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001811/0.3901, allocations: 0.515 MB / 449 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03148/0.4216, allocations: 16.25 MB / 465.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002884/0.422, allocations: 83.22 kB / 465.4 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007256/0.4227, allocations: 243.7 kB / 465.6 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004842/0.4275, allocations: 2.923 MB / 468.5 MB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03776/0.4653, allocations: 13.72 MB / 482.3 MB, free: 14.11 MB / 398.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.2874/0.7528, allocations: 64.52 MB / 0.534 GB, free: 125.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02259/0.7754, allocations: 7.886 MB / 0.5417 GB, free: 124.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00583/0.7813, allocations: 4.349 MB / 0.5459 GB, free: 124 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02683/0.8082, allocations: 19.45 MB / 0.5649 GB, free: 114.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.8083, allocations: 63.5 kB / 0.565 GB, free: 114.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 5.109e-06/0.8083, allocations: 0 / 0.565 GB, free: 114.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1428/0.9511, allocations: 49.83 MB / 0.6136 GB, free: 73.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.9512, allocations: 269.8 kB / 0.6139 GB, free: 72.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006241/0.9575, allocations: 6.046 MB / 0.6198 GB, free: 66.78 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006332/0.9581, allocations: 81.7 kB / 0.6199 GB, free: 66.69 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001784/0.9599, allocations: 4.664 MB / 0.6244 GB, free: 62.03 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001019/0.9609, allocations: 1.375 MB / 0.6258 GB, free: 60.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002048/0.963, allocations: 1.908 MB / 0.6276 GB, free: 58.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.616e-05/0.963, allocations: 301.1 kB / 0.6279 GB, free: 58.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004676/0.9677, allocations: 4.231 MB / 0.632 GB, free: 54.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006115/0.9738, allocations: 9.469 MB / 0.6413 GB, free: 42.28 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01223/0.9861, allocations: 14.65 MB / 0.6556 GB, free: 25.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.878e-05/0.9862, allocations: 52 kB / 0.6556 GB, free: 25.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.02782/1.014, allocations: 17.56 MB / 0.6728 GB, free: 7.508 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.894e-05/1.014, allocations: 80 kB / 0.6729 GB, free: 7.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001258/1.014, allocations: 184 kB / 0.673 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01196/1.026, allocations: 4.539 MB / 0.6775 GB, free: 2.703 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006156/1.032, allocations: 2.133 MB / 0.6796 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1962/1.229, allocations: 25.38 MB / 0.7043 GB, free: 146.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006998/1.236, allocations: 0.5265 MB / 0.7049 GB, free: 146.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/1.237, allocations: 0.5364 MB / 0.7054 GB, free: 146.5 MB / 478.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.004632/1.241, allocations: 3.124 MB / 0.7084 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009601/1.242, allocations: 0.5677 MB / 0.709 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02134/1.264, allocations: 10.72 MB / 0.7195 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.623e-05/1.264, allocations: 39.31 kB / 0.7195 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-05/1.264, allocations: 15.78 kB / 0.7195 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.45e-05/1.264, allocations: 14.81 kB / 0.7195 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03387/1.298, allocations: 20.37 MB / 0.7394 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.139e-05/1.298, allocations: 3.969 kB / 0.7394 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002628/1.3, allocations: 0.5459 MB / 0.7399 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01223/1.313, allocations: 4.18 MB / 0.744 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005884/1.313, allocations: 63.27 kB / 0.7441 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0269/1.34, allocations: 23.13 MB / 0.7667 GB, free: 112.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/1.34, allocations: 0 / 0.7667 GB, free: 112.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02342/1.364, allocations: 15.65 MB / 0.782 GB, free: 97.21 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001543/1.365, allocations: 0.5914 MB / 0.7825 GB, free: 96.69 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008195/1.366, allocations: 60 kB / 0.7826 GB, free: 96.63 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002502/1.369, allocations: 215.7 kB / 0.7828 GB, free: 96.42 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007283/1.369, allocations: 234 kB / 0.783 GB, free: 96.19 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000273/1.37, allocations: 99.73 kB / 0.7831 GB, free: 96.09 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004517/1.374, allocations: 3.765 MB / 0.7868 GB, free: 92.33 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.21e-07/1.374, allocations: 0 / 0.7868 GB, free: 92.33 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007048/1.381, allocations: 1.911 MB / 0.7887 GB, free: 90.43 MB / 478.1 MB 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.0005613/1.382, allocations: 213.9 kB / 0.7889 GB, free: 90.22 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0133/1.395, allocations: 10.55 MB / 0.7992 GB, free: 79.72 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/1.395, allocations: 0 / 0.7992 GB, free: 79.72 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005363/1.4, allocations: 4.125 MB / 0.8032 GB, free: 75.57 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004806/1.405, allocations: 0.7812 MB / 0.804 GB, free: 74.82 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02698/1.432, allocations: 16.23 MB / 0.8198 GB, free: 58.64 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005684/1.438, allocations: 4.858 MB / 0.8246 GB, free: 53.75 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006204/1.444, allocations: 2.785 MB / 0.8273 GB, free: 50.96 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001198/1.445, allocations: 379.4 kB / 0.8276 GB, free: 50.59 MB / 478.1 MB Notification: Performance of SimCode: time 1.322e-06/1.445, allocations: 0 / 0.8276 GB, free: 50.59 MB / 478.1 MB Notification: Performance of Templates: time 0.3203/1.766, allocations: 76.79 MB / 0.9026 GB, free: 136 MB / 478.1 MB 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 -s cvode -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