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.001319/0.001319, allocations: 111.4 kB / 17.98 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 213.7 kB / 18.92 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 247.1 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001827/0.001827, allocations: 59.66 kB / 307.1 MB, free: 0.9336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1066, allocations: 50.54 MB / 357.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2202/0.3269, allocations: 72.69 MB / 430.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03423/0.3611, allocations: 14.4 MB / 444.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01299/0.3742, allocations: 323.2 kB / 445.1 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008643/0.3829, allocations: 4.192 MB / 449.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006968/0.3899, allocations: 2.522 MB / 451.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003278/0.3932, allocations: 1.377 MB / 453.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0126/0.4058, allocations: 9.018 MB / 462.2 MB, free: 2.906 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008164/0.414, allocations: 5.655 MB / 467.9 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005016/0.4191, allocations: 2.741 MB / 470.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006303/0.4254, allocations: 4.246 MB / 474.8 MB, free: 6.199 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00155/0.427, allocations: 0.5352 MB / 475.4 MB, free: 5.664 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003283/0.4303, allocations: 1.627 MB / 477 MB, free: 4.035 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004158/0.4345, allocations: 3.355 MB / 480.4 MB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005708/0.4402, allocations: 3.667 MB / 484 MB, free: 12.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.4506, allocations: 8.755 MB / 492.8 MB, free: 4.211 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.84e-06/0.4507, allocations: 0 / 492.8 MB, free: 4.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4507, allocations: 4 kB / 492.8 MB, free: 4.207 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002828/0.451, allocations: 0 / 492.8 MB, free: 4.207 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.02004/0.471, allocations: 8.187 MB / 0.4892 GB, free: 11.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.4711, allocations: 8.031 kB / 0.4892 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02924/0.5003, allocations: 3.677 MB / 0.4928 GB, free: 8.234 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01265/0.513, allocations: 5.181 MB / 0.4979 GB, free: 2.973 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003388/0.5134, allocations: 365.5 kB / 0.4982 GB, free: 2.613 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002026/0.5154, allocations: 0.5189 MB / 0.4987 GB, free: 2.094 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0331/0.5485, allocations: 16.25 MB / 0.5146 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002577/0.5488, allocations: 87.14 kB / 0.5147 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009713/0.5498, allocations: 239.8 kB / 0.5149 GB, free: 464 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005157/0.555, allocations: 2.927 MB / 0.5178 GB, free: 13.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2052/0.7602, allocations: 13.72 MB / 0.5312 GB, free: 137.7 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.07617/0.8365, allocations: 64.81 MB / 0.5945 GB, free: 92.79 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02015/0.8567, allocations: 7.874 MB / 0.6022 GB, free: 87.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004862/0.8616, allocations: 4.349 MB / 0.6064 GB, free: 83.16 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02772/0.8893, allocations: 19.45 MB / 0.6254 GB, free: 63.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.427e-05/0.8894, allocations: 72.5 kB / 0.6255 GB, free: 63.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 7.614e-06/0.8894, allocations: 0 / 0.6255 GB, free: 63.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1667/1.056, allocations: 49.83 MB / 0.6741 GB, free: 13.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/1.056, allocations: 273.8 kB / 0.6744 GB, free: 12.83 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008718/1.065, allocations: 6.034 MB / 0.6803 GB, free: 6.785 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009161/1.066, allocations: 81.7 kB / 0.6804 GB, free: 6.699 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002382/1.068, allocations: 4.669 MB / 0.6849 GB, free: 1.988 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001539/1.07, allocations: 1.372 MB / 0.6863 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003241/1.073, allocations: 1.908 MB / 0.6881 GB, free: 14.67 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/1.073, allocations: 309.1 kB / 0.6884 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007541/1.081, allocations: 4.224 MB / 0.6926 GB, free: 10.14 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2177/1.299, allocations: 9.459 MB / 0.7018 GB, free: 142.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01856/1.317, allocations: 14.65 MB / 0.7161 GB, free: 132.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002386/1.318, allocations: 51.34 kB / 0.7162 GB, free: 132.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03915/1.357, allocations: 17.56 MB / 0.7333 GB, free: 127.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001587/1.357, allocations: 80.97 kB / 0.7334 GB, free: 127.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002557/1.357, allocations: 180.4 kB / 0.7336 GB, free: 127.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01355/1.371, allocations: 4.558 MB / 0.738 GB, free: 126.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006851/1.378, allocations: 2.134 MB / 0.7401 GB, free: 126.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02977/1.407, allocations: 25.39 MB / 0.7649 GB, free: 102.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008631/1.416, allocations: 0.5273 MB / 0.7654 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002032/1.418, allocations: 0.5357 MB / 0.7659 GB, free: 101.6 MB / 462.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.005716/1.424, allocations: 3.119 MB / 0.769 GB, free: 98.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001207/1.425, allocations: 0.5683 MB / 0.7695 GB, free: 98.33 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02042/1.446, allocations: 10.72 MB / 0.78 GB, free: 87.55 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.228e-05/1.446, allocations: 39.83 kB / 0.78 GB, free: 87.51 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.757e-05/1.446, allocations: 20 kB / 0.78 GB, free: 87.49 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.671e-05/1.446, allocations: 23.78 kB / 0.7801 GB, free: 87.47 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03751/1.483, allocations: 20.52 MB / 0.8001 GB, free: 66.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.111e-05/1.483, allocations: 0 / 0.8001 GB, free: 66.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002875/1.486, allocations: 0.5422 MB / 0.8006 GB, free: 66.42 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01273/1.499, allocations: 4.195 MB / 0.8047 GB, free: 62.21 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008035/1.5, allocations: 63.98 kB / 0.8048 GB, free: 62.15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02712/1.527, allocations: 23.12 MB / 0.8274 GB, free: 38.88 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.175e-06/1.527, allocations: 4.062 kB / 0.8274 GB, free: 38.88 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02612/1.553, allocations: 15.65 MB / 0.8427 GB, free: 23.15 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/1.555, allocations: 0.5905 MB / 0.8432 GB, free: 22.54 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00187/1.557, allocations: 60 kB / 0.8433 GB, free: 22.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003693/1.56, allocations: 219.7 kB / 0.8435 GB, free: 22.26 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001139/1.561, allocations: 226.1 kB / 0.8437 GB, free: 22.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004107/1.562, allocations: 102.2 kB / 0.8438 GB, free: 21.94 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005593/1.568, allocations: 3.772 MB / 0.8475 GB, free: 18.17 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.91e-07/1.568, allocations: 0 / 0.8475 GB, free: 18.17 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007997/1.576, allocations: 1.907 MB / 0.8494 GB, free: 16.27 MB / 462.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.0008349/1.576, allocations: 211.3 kB / 0.8496 GB, free: 16.06 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02445/1.601, allocations: 15.45 MB / 0.8647 GB, free: 0.6406 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/1.601, allocations: 0 / 0.8647 GB, free: 0.6406 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1739/1.775, allocations: 4.129 MB / 0.8687 GB, free: 156.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006344/1.781, allocations: 0.7715 MB / 0.8694 GB, free: 156.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03232/1.814, allocations: 20.21 MB / 0.8892 GB, free: 149.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007081/1.821, allocations: 4.84 MB / 0.8939 GB, free: 147.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001839/1.823, allocations: 450.4 kB / 0.8943 GB, free: 147.9 MB / 478.1 MB Notification: Performance of SimCode: time 7.52e-07/1.823, allocations: 0 / 0.8943 GB, free: 147.9 MB / 478.1 MB Notification: Performance of Templates: time 0.3379/2.161, allocations: 152.9 MB / 1.044 GB, free: 150.6 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 -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.1.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