Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 112.8 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 196 kB / 18 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00106/0.00106, allocations: 47.94 kB / 351.3 MB, free: 3.184 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2816, allocations: 49.42 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01672/0.2984, allocations: 17.31 MB / 418 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01047/0.3089, allocations: 5.47 MB / 423.5 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00248/0.3114, allocations: 119.6 kB / 423.6 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007829/0.3193, allocations: 4.368 MB / 428 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006624/0.3259, allocations: 2.742 MB / 430.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003189/0.3291, allocations: 1.459 MB / 432.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01098/0.3401, allocations: 8.473 MB / 440.7 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008092/0.3483, allocations: 5.375 MB / 446 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004916/0.3532, allocations: 2.675 MB / 448.7 MB, free: 8.637 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005626/0.3589, allocations: 3.836 MB / 452.6 MB, free: 4.789 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001791/0.3607, allocations: 0.5352 MB / 453.1 MB, free: 4.254 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003891/0.3646, allocations: 1.631 MB / 454.7 MB, free: 2.621 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004017/0.3686, allocations: 3.328 MB / 458 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00621/0.3749, allocations: 3.655 MB / 461.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01481/0.3897, allocations: 11.27 MB / 473 MB, free: 304 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3898, allocations: 4 kB / 473 MB, free: 300 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3898, allocations: 0 / 473 MB, free: 300 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003677/0.3901, allocations: 4 kB / 473 MB, free: 296 kB / 382.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.01942/0.4096, allocations: 8.405 MB / 481.4 MB, free: 7.781 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.4096, allocations: 12.03 kB / 481.4 MB, free: 7.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02835/0.438, allocations: 3.721 MB / 485.1 MB, free: 4.039 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01248/0.4505, allocations: 5.42 MB / 490.5 MB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002905/0.4508, allocations: 369.5 kB / 490.9 MB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001441/0.4523, allocations: 0.5152 MB / 491.4 MB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02743/0.4797, allocations: 16.24 MB / 0.4958 GB, free: 12.35 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001881/0.4799, allocations: 79.36 kB / 0.4958 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000622/0.4806, allocations: 239.8 kB / 0.4961 GB, free: 12.04 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00442/0.485, allocations: 2.927 MB / 0.4989 GB, free: 9.105 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02832/0.5133, allocations: 13.71 MB / 0.5123 GB, free: 11.38 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.2586/0.7719, allocations: 64.64 MB / 0.5754 GB, free: 86.06 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01946/0.7914, allocations: 7.861 MB / 0.5831 GB, free: 83.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004206/0.7956, allocations: 4.345 MB / 0.5874 GB, free: 81.15 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02048/0.8161, allocations: 19.39 MB / 0.6063 GB, free: 63.96 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.8162, allocations: 71.59 kB / 0.6064 GB, free: 63.89 MB / 462.1 MB Notification: Performance of pre-optimization done (n=290): time 4.839e-06/0.8162, allocations: 0 / 0.6064 GB, free: 63.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=372): time 0.1467/0.9629, allocations: 50.21 MB / 0.6554 GB, free: 14 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.11e-05/0.963, allocations: 269.8 kB / 0.6556 GB, free: 13.68 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007123/0.9702, allocations: 6.072 MB / 0.6616 GB, free: 7.703 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008067/0.971, allocations: 85.61 kB / 0.6617 GB, free: 7.617 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00224/0.9733, allocations: 4.846 MB / 0.6664 GB, free: 3.086 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001417/0.9747, allocations: 1.433 MB / 0.6678 GB, free: 1.672 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002465/0.9772, allocations: 1.925 MB / 0.6697 GB, free: 15.73 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.719e-05/0.9773, allocations: 301.1 kB / 0.67 GB, free: 15.44 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006378/0.9837, allocations: 4.22 MB / 0.6741 GB, free: 11.21 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01055/0.9942, allocations: 9.453 MB / 0.6833 GB, free: 15.21 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01853/1.013, allocations: 14.63 MB / 0.6976 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001836/1.013, allocations: 56 kB / 0.6976 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03506/1.048, allocations: 17.58 MB / 0.7148 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000109/1.048, allocations: 92 kB / 0.7149 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001861/1.048, allocations: 180 kB / 0.7151 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01389/1.062, allocations: 4.543 MB / 0.7195 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007094/1.069, allocations: 2.125 MB / 0.7216 GB, free: 5.391 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2491/1.319, allocations: 25.37 MB / 0.7464 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006994/1.326, allocations: 0.5304 MB / 0.7469 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008383/1.326, allocations: 0.5382 MB / 0.7474 GB, free: 181.7 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.003786/1.33, allocations: 3.119 MB / 0.7505 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000871/1.331, allocations: 0.5973 MB / 0.751 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01937/1.35, allocations: 10.71 MB / 0.7615 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.664e-05/1.351, allocations: 39.06 kB / 0.7615 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.129e-05/1.351, allocations: 15.62 kB / 0.7616 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.993e-05/1.351, allocations: 19.23 kB / 0.7616 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03168/1.382, allocations: 20.36 MB / 0.7814 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.764e-05/1.382, allocations: 8.016 kB / 0.7815 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002483/1.385, allocations: 0.5367 MB / 0.782 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01162/1.397, allocations: 4.18 MB / 0.7861 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003654/1.397, allocations: 63.98 kB / 0.7861 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02562/1.423, allocations: 23.16 MB / 0.8087 GB, free: 139.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.423, allocations: 4 kB / 0.8087 GB, free: 139.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02391/1.446, allocations: 15.66 MB / 0.824 GB, free: 124.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002226/1.449, allocations: 0.622 MB / 0.8246 GB, free: 123.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001045/1.45, allocations: 60 kB / 0.8247 GB, free: 123.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002641/1.452, allocations: 217.5 kB / 0.8249 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007357/1.453, allocations: 226.2 kB / 0.8251 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002647/1.453, allocations: 93.95 kB / 0.8252 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004314/1.458, allocations: 3.773 MB / 0.8289 GB, free: 119.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.51e-07/1.458, allocations: 0 / 0.8289 GB, free: 119.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006275/1.464, allocations: 1.936 MB / 0.8308 GB, free: 117.6 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.00051/1.465, allocations: 219.1 kB / 0.831 GB, free: 117.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01147/1.476, allocations: 10.53 MB / 0.8413 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/1.476, allocations: 0 / 0.8413 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004402/1.481, allocations: 4.135 MB / 0.8453 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003611/1.484, allocations: 0.7705 MB / 0.8461 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02166/1.506, allocations: 16.46 MB / 0.8621 GB, free: 85.53 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004324/1.51, allocations: 4.859 MB / 0.8669 GB, free: 80.64 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005714/1.516, allocations: 2.789 MB / 0.8696 GB, free: 77.84 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001066/1.517, allocations: 375.4 kB / 0.87 GB, free: 77.48 MB / 0.5294 GB Notification: Performance of SimCode: time 6.71e-07/1.517, allocations: 0 / 0.87 GB, free: 77.48 MB / 0.5294 GB Notification: Performance of Templates: time 0.3186/1.836, allocations: 80.09 MB / 0.9482 GB, free: 172 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches