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.001125/0.001125, allocations: 121 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001267/0.001267, allocations: 212.5 kB / 19.36 MB, free: 3.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 63.34 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.1009, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.1824/0.2833, allocations: 17.23 MB / 376.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01052/0.2939, allocations: 5.484 MB / 381.6 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003242/0.2972, allocations: 118.1 kB / 381.7 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007411/0.3047, allocations: 4.357 MB / 386.1 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006381/0.3111, allocations: 2.704 MB / 388.8 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002771/0.3138, allocations: 1.462 MB / 390.3 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0102/0.3241, allocations: 8.662 MB / 398.9 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006071/0.3302, allocations: 5.361 MB / 404.3 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00464/0.3348, allocations: 2.663 MB / 407 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005189/0.34, allocations: 3.828 MB / 410.8 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001365/0.3414, allocations: 0.5352 MB / 411.3 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003671/0.3451, allocations: 1.615 MB / 412.9 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003762/0.3489, allocations: 3.308 MB / 416.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004547/0.3535, allocations: 3.62 MB / 419.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01105/0.3645, allocations: 11.15 MB / 431 MB, free: 2.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3646, allocations: 0 / 431 MB, free: 2.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3646, allocations: 0 / 431 MB, free: 2.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002331/0.3648, allocations: 0 / 431 MB, free: 2.68 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.01773/0.3826, allocations: 8.191 MB / 439.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.3826, allocations: 8.031 kB / 439.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0274/0.41, allocations: 3.673 MB / 442.9 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01227/0.4223, allocations: 5.286 MB / 448.2 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003579/0.4227, allocations: 373.5 kB / 448.5 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00178/0.4245, allocations: 0.515 MB / 449 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02774/0.4523, allocations: 16.26 MB / 465.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001988/0.4525, allocations: 87.2 kB / 465.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006608/0.4532, allocations: 235.8 kB / 465.6 MB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004447/0.4576, allocations: 2.915 MB / 468.5 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02694/0.4846, allocations: 13.73 MB / 482.3 MB, free: 14.14 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.2412/0.7259, allocations: 64.52 MB / 0.534 GB, free: 125.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02152/0.7474, allocations: 7.878 MB / 0.5417 GB, free: 124.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005533/0.753, allocations: 4.345 MB / 0.5459 GB, free: 124.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02577/0.7788, allocations: 19.46 MB / 0.5649 GB, free: 114.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.974e-05/0.7788, allocations: 59.56 kB / 0.565 GB, free: 114.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 5.741e-06/0.7789, allocations: 0 / 0.565 GB, free: 114.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1529/0.9317, allocations: 49.83 MB / 0.6136 GB, free: 73.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.94e-05/0.9319, allocations: 265.8 kB / 0.6139 GB, free: 72.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006883/0.9388, allocations: 6.046 MB / 0.6198 GB, free: 66.83 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007218/0.9395, allocations: 85.3 kB / 0.6199 GB, free: 66.74 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002064/0.9416, allocations: 4.669 MB / 0.6244 GB, free: 62.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001345/0.9429, allocations: 1.367 MB / 0.6258 GB, free: 60.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00272/0.9457, allocations: 1.908 MB / 0.6276 GB, free: 58.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.38e-05/0.9457, allocations: 305.1 kB / 0.6279 GB, free: 58.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005387/0.9511, allocations: 4.235 MB / 0.632 GB, free: 54.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008158/0.9593, allocations: 9.457 MB / 0.6413 GB, free: 42.33 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01514/0.9745, allocations: 14.65 MB / 0.6556 GB, free: 25.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001182/0.9747, allocations: 52 kB / 0.6556 GB, free: 25.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03342/1.008, allocations: 17.56 MB / 0.6728 GB, free: 7.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.119e-05/1.008, allocations: 86.97 kB / 0.6729 GB, free: 7.488 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001371/1.008, allocations: 183.2 kB / 0.673 GB, free: 7.312 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01329/1.022, allocations: 4.547 MB / 0.6775 GB, free: 2.758 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006811/1.028, allocations: 2.135 MB / 0.6796 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1988/1.227, allocations: 25.38 MB / 0.7044 GB, free: 146.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006916/1.234, allocations: 0.5193 MB / 0.7049 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001155/1.235, allocations: 0.5394 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.004796/1.24, allocations: 3.12 MB / 0.7084 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001015/1.241, allocations: 0.5681 MB / 0.709 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02191/1.263, allocations: 10.72 MB / 0.7195 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.71e-05/1.263, allocations: 43.19 kB / 0.7195 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.713e-05/1.263, allocations: 23.34 kB / 0.7195 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.055e-05/1.263, allocations: 15.97 kB / 0.7195 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03416/1.298, allocations: 20.36 MB / 0.7394 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.839e-05/1.298, allocations: 0 / 0.7394 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002719/1.3, allocations: 0.5435 MB / 0.74 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01256/1.313, allocations: 4.178 MB / 0.744 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006089/1.314, allocations: 67.66 kB / 0.7441 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02721/1.341, allocations: 23.12 MB / 0.7667 GB, free: 112.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.341, allocations: 0 / 0.7667 GB, free: 112.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02512/1.366, allocations: 15.65 MB / 0.782 GB, free: 97.19 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001404/1.367, allocations: 0.594 MB / 0.7825 GB, free: 96.66 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008698/1.368, allocations: 62 kB / 0.7826 GB, free: 96.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002675/1.371, allocations: 215.7 kB / 0.7828 GB, free: 96.39 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007398/1.372, allocations: 233 kB / 0.783 GB, free: 96.16 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002764/1.372, allocations: 99.92 kB / 0.7831 GB, free: 96.07 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005813/1.378, allocations: 3.765 MB / 0.7868 GB, free: 92.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.404e-06/1.378, allocations: 0 / 0.7868 GB, free: 92.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008221/1.386, allocations: 1.913 MB / 0.7887 GB, free: 90.4 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.0007356/1.387, allocations: 207.7 kB / 0.7889 GB, free: 90.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01336/1.4, allocations: 10.54 MB / 0.7992 GB, free: 79.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/1.4, allocations: 3.469 kB / 0.7992 GB, free: 79.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005108/1.405, allocations: 4.136 MB / 0.8032 GB, free: 75.54 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004026/1.409, allocations: 0.7729 MB / 0.804 GB, free: 74.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02312/1.433, allocations: 16.23 MB / 0.8198 GB, free: 58.63 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004964/1.438, allocations: 4.852 MB / 0.8245 GB, free: 53.75 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00608/1.444, allocations: 2.785 MB / 0.8273 GB, free: 50.95 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/1.445, allocations: 383.4 kB / 0.8276 GB, free: 50.58 MB / 478.1 MB Notification: Performance of SimCode: time 7.52e-07/1.445, allocations: 0 / 0.8276 GB, free: 50.58 MB / 478.1 MB Notification: Performance of Templates: time 0.2722/1.717, allocations: 76.79 MB / 0.9026 GB, free: 135.9 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 gbode -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