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.001683/0.001682, allocations: 118.8 kB / 17.78 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.002608/0.002608, allocations: 201.2 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.444/1.444, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 71.88 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2488, allocations: 50.53 MB / 409.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.02078/0.2696, allocations: 17.23 MB / 426.5 MB, free: 252 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01632/0.286, allocations: 5.471 MB / 432 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003482/0.2895, allocations: 115.6 kB / 432.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01422/0.3038, allocations: 4.364 MB / 436.4 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01228/0.3161, allocations: 2.793 MB / 439.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005874/0.322, allocations: 1.455 MB / 440.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02016/0.3422, allocations: 8.678 MB / 449.4 MB, free: 9.316 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01126/0.3535, allocations: 5.364 MB / 454.7 MB, free: 3.875 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006349/0.3599, allocations: 2.656 MB / 457.4 MB, free: 1.211 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008859/0.3687, allocations: 3.836 MB / 461.2 MB, free: 13.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002082/0.3709, allocations: 0.5352 MB / 461.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004099/0.375, allocations: 1.615 MB / 463.4 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003631/0.3786, allocations: 3.363 MB / 466.7 MB, free: 7.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005436/0.3841, allocations: 3.628 MB / 470.4 MB, free: 4.191 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01321/0.3973, allocations: 11.14 MB / 481.5 MB, free: 9.012 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3974, allocations: 0 / 481.5 MB, free: 9.012 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3974, allocations: 0 / 481.5 MB, free: 9.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003982/0.3978, allocations: 4 kB / 481.5 MB, free: 9.008 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.02196/0.4198, allocations: 8.183 MB / 489.7 MB, free: 0.7383 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.4198, allocations: 8.031 kB / 489.7 MB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02518/0.445, allocations: 3.677 MB / 493.4 MB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0125/0.4575, allocations: 5.297 MB / 498.7 MB, free: 7.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003606/0.4579, allocations: 365.5 kB / 499 MB, free: 7.301 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001901/0.4598, allocations: 0.5151 MB / 499.5 MB, free: 6.785 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02851/0.4884, allocations: 16.25 MB / 0.5037 GB, free: 5.469 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002005/0.4886, allocations: 79.3 kB / 0.5038 GB, free: 5.391 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006101/0.4892, allocations: 239.8 kB / 0.504 GB, free: 5.156 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0042/0.4934, allocations: 2.923 MB / 0.5069 GB, free: 2.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02721/0.5206, allocations: 13.72 MB / 0.5203 GB, free: 4.484 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.3282/0.8489, allocations: 64.54 MB / 0.5833 GB, free: 75.18 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01944/0.8683, allocations: 7.861 MB / 0.591 GB, free: 72.05 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004747/0.8731, allocations: 4.348 MB / 0.5952 GB, free: 69.69 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02554/0.8987, allocations: 19.47 MB / 0.6142 GB, free: 51.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.882e-05/0.8988, allocations: 64.44 kB / 0.6143 GB, free: 51.54 MB / 462.1 MB Notification: Performance of pre-optimization done (n=290): time 6.673e-06/0.8988, allocations: 0 / 0.6143 GB, free: 51.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=372): time 0.1457/1.045, allocations: 49.83 MB / 0.663 GB, free: 1.617 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.476e-05/1.045, allocations: 277.8 kB / 0.6632 GB, free: 1.289 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009159/1.054, allocations: 6.034 MB / 0.6691 GB, free: 11.24 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000855/1.055, allocations: 85.7 kB / 0.6692 GB, free: 11.15 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00318/1.058, allocations: 4.663 MB / 0.6737 GB, free: 6.492 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001777/1.06, allocations: 1.369 MB / 0.6751 GB, free: 5.133 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002712/1.062, allocations: 1.922 MB / 0.677 GB, free: 3.199 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.682e-05/1.062, allocations: 305.1 kB / 0.6772 GB, free: 2.898 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005887/1.068, allocations: 4.231 MB / 0.6814 GB, free: 14.66 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008914/1.077, allocations: 9.457 MB / 0.6906 GB, free: 2.652 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01728/1.095, allocations: 14.64 MB / 0.7049 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001155/1.095, allocations: 52 kB / 0.705 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03415/1.129, allocations: 17.57 MB / 0.7221 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000134/1.129, allocations: 84 kB / 0.7222 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002155/1.129, allocations: 180.9 kB / 0.7224 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01424/1.144, allocations: 4.543 MB / 0.7268 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007337/1.151, allocations: 2.133 MB / 0.7289 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2607/1.412, allocations: 25.37 MB / 0.7537 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007243/1.419, allocations: 0.5279 MB / 0.7542 GB, free: 170.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001247/1.42, allocations: 0.5466 MB / 0.7547 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.004431/1.425, allocations: 3.114 MB / 0.7578 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/1.426, allocations: 0.5674 MB / 0.7583 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01949/1.445, allocations: 10.72 MB / 0.7688 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.766e-05/1.445, allocations: 40 kB / 0.7688 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.792e-05/1.445, allocations: 15.44 kB / 0.7688 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-05/1.445, allocations: 15.69 kB / 0.7688 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03488/1.48, allocations: 20.38 MB / 0.7888 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.921e-05/1.48, allocations: 0 / 0.7888 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002792/1.483, allocations: 0.5419 MB / 0.7893 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01177/1.495, allocations: 4.177 MB / 0.7934 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005925/1.496, allocations: 63.98 kB / 0.7934 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02576/1.521, allocations: 23.11 MB / 0.816 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/1.521, allocations: 7.969 kB / 0.816 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02337/1.545, allocations: 15.65 MB / 0.8313 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001316/1.546, allocations: 0.5907 MB / 0.8319 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006831/1.547, allocations: 59.94 kB / 0.8319 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002619/1.55, allocations: 223.7 kB / 0.8321 GB, free: 105 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007032/1.55, allocations: 226.1 kB / 0.8324 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002681/1.551, allocations: 95.98 kB / 0.8324 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004167/1.555, allocations: 3.765 MB / 0.8361 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.293e-06/1.555, allocations: 0 / 0.8361 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006779/1.561, allocations: 1.914 MB / 0.838 GB, free: 98.98 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.0005006/1.562, allocations: 203.4 kB / 0.8382 GB, free: 98.78 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01213/1.574, allocations: 10.54 MB / 0.8485 GB, free: 88.28 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/1.574, allocations: 0 / 0.8485 GB, free: 88.28 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004518/1.579, allocations: 4.135 MB / 0.8525 GB, free: 84.12 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003548/1.582, allocations: 0.7739 MB / 0.8533 GB, free: 83.36 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02045/1.603, allocations: 16.24 MB / 0.8691 GB, free: 67.14 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004291/1.607, allocations: 4.858 MB / 0.8739 GB, free: 62.25 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005531/1.613, allocations: 2.785 MB / 0.8766 GB, free: 59.45 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001025/1.614, allocations: 379.4 kB / 0.877 GB, free: 59.08 MB / 0.5294 GB Notification: Performance of SimCode: time 1.042e-06/1.614, allocations: 1.969 kB / 0.877 GB, free: 59.08 MB / 0.5294 GB Notification: Performance of Templates: time 0.3322/1.946, allocations: 79.82 MB / 0.9549 GB, free: 167.7 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