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.001086/0.001087, allocations: 101.4 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001092/0.001092, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.3 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 63.92 kB / 306.3 MB, free: 1.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09188/0.09315, allocations: 50.53 MB / 356.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2245/0.3177, allocations: 72.7 MB / 429.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03212/0.3498, allocations: 14.5 MB / 444 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01626/0.3661, allocations: 327.1 kB / 444.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00856/0.3748, allocations: 4.327 MB / 448.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007249/0.382, allocations: 2.561 MB / 451.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002982/0.385, allocations: 1.346 MB / 452.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01346/0.3985, allocations: 12.06 MB / 464.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007223/0.4058, allocations: 5.281 MB / 469.9 MB, free: 10.42 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003722/0.4095, allocations: 2.398 MB / 472.3 MB, free: 8.012 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005384/0.4149, allocations: 4.089 MB / 476.4 MB, free: 3.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001235/0.4162, allocations: 388 kB / 476.8 MB, free: 3.531 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003076/0.4193, allocations: 1.533 MB / 478.3 MB, free: 1.996 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003055/0.4224, allocations: 3.199 MB / 481.5 MB, free: 14.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003758/0.4261, allocations: 3.487 MB / 485 MB, free: 11.28 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009921/0.4361, allocations: 10.66 MB / 495.6 MB, free: 0.5898 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.4361, allocations: 0 / 495.6 MB, free: 0.5898 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4361, allocations: 0 / 495.6 MB, free: 0.5898 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002276/0.4363, allocations: 3.938 kB / 495.6 MB, free: 0.5859 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.01759/0.4539, allocations: 8.191 MB / 0.492 GB, free: 8.309 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.454, allocations: 8.031 kB / 0.492 GB, free: 8.301 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02678/0.4808, allocations: 3.681 MB / 0.4956 GB, free: 4.605 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01313/0.4939, allocations: 5.177 MB / 0.5007 GB, free: 15.35 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002826/0.4942, allocations: 377.4 kB / 0.501 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001639/0.4959, allocations: 0.515 MB / 0.5016 GB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02843/0.5243, allocations: 16.25 MB / 0.5174 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002451/0.5246, allocations: 87.2 kB / 0.5175 GB, free: 13.06 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001183/0.5258, allocations: 231.8 kB / 0.5177 GB, free: 12.83 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004715/0.5305, allocations: 2.927 MB / 0.5206 GB, free: 9.898 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2138/0.7444, allocations: 13.72 MB / 0.534 GB, free: 139.6 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.08007/0.8245, allocations: 64.81 MB / 0.5973 GB, free: 92.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02067/0.8452, allocations: 7.88 MB / 0.605 GB, free: 84.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004925/0.8501, allocations: 4.338 MB / 0.6092 GB, free: 79.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02692/0.8771, allocations: 19.46 MB / 0.6282 GB, free: 59.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.523e-05/0.8772, allocations: 68.48 kB / 0.6283 GB, free: 59.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 5.7e-06/0.8772, allocations: 0 / 0.6283 GB, free: 59.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1579/1.035, allocations: 49.83 MB / 0.6769 GB, free: 9.711 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.231e-05/1.035, allocations: 269.8 kB / 0.6772 GB, free: 9.391 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007969/1.043, allocations: 6.038 MB / 0.6831 GB, free: 3.34 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006844/1.044, allocations: 81.7 kB / 0.6832 GB, free: 3.254 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002325/1.046, allocations: 4.671 MB / 0.6877 GB, free: 14.54 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001591/1.048, allocations: 1.376 MB / 0.6891 GB, free: 13.15 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002559/1.05, allocations: 1.905 MB / 0.6909 GB, free: 11.23 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/1.051, allocations: 301.1 kB / 0.6912 GB, free: 10.93 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006171/1.057, allocations: 4.235 MB / 0.6953 GB, free: 6.691 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1764/1.233, allocations: 9.458 MB / 0.7046 GB, free: 141 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0159/1.249, allocations: 14.65 MB / 0.7189 GB, free: 131.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002673/1.249, allocations: 55.62 kB / 0.7189 GB, free: 131.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03504/1.284, allocations: 17.57 MB / 0.7361 GB, free: 125.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001276/1.285, allocations: 83.12 kB / 0.7362 GB, free: 125.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001832/1.285, allocations: 179.7 kB / 0.7363 GB, free: 125.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01343/1.298, allocations: 4.543 MB / 0.7408 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007362/1.306, allocations: 2.135 MB / 0.7429 GB, free: 124.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02914/1.335, allocations: 23.64 MB / 0.7659 GB, free: 104.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007418/1.342, allocations: 0.5269 MB / 0.7665 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001602/1.344, allocations: 0.5428 MB / 0.767 GB, free: 103.2 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.006292/1.35, allocations: 3.115 MB / 0.77 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001514/1.352, allocations: 0.5682 MB / 0.7706 GB, free: 99.95 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02148/1.373, allocations: 10.72 MB / 0.7811 GB, free: 89.17 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.513e-05/1.373, allocations: 36 kB / 0.7811 GB, free: 89.13 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.5e-05/1.373, allocations: 23.83 kB / 0.7811 GB, free: 89.11 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.551e-05/1.373, allocations: 15.94 kB / 0.7811 GB, free: 89.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03651/1.41, allocations: 20.53 MB / 0.8012 GB, free: 68.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-05/1.41, allocations: 7.062 kB / 0.8012 GB, free: 68.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002745/1.413, allocations: 0.5421 MB / 0.8017 GB, free: 68.03 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01273/1.425, allocations: 4.18 MB / 0.8058 GB, free: 63.84 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006162/1.426, allocations: 67.81 kB / 0.8059 GB, free: 63.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0365/1.463, allocations: 21.45 MB / 0.8268 GB, free: 42.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/1.463, allocations: 8 kB / 0.8268 GB, free: 42.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04202/1.505, allocations: 15.64 MB / 0.8421 GB, free: 26.47 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001751/1.506, allocations: 0.5913 MB / 0.8427 GB, free: 25.85 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002058/1.509, allocations: 64.45 kB / 0.8427 GB, free: 25.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005069/1.514, allocations: 216.6 kB / 0.8429 GB, free: 25.58 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001399/1.515, allocations: 230.1 kB / 0.8432 GB, free: 25.36 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006379/1.516, allocations: 99.92 kB / 0.8433 GB, free: 25.26 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.007828/1.524, allocations: 3.769 MB / 0.8469 GB, free: 21.49 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.11e-07/1.524, allocations: 1.969 kB / 0.8469 GB, free: 21.49 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.013/1.537, allocations: 1.904 MB / 0.8488 GB, free: 19.59 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.00115/1.538, allocations: 212.5 kB / 0.849 GB, free: 19.38 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02224/1.56, allocations: 10.52 MB / 0.8593 GB, free: 8.848 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/1.56, allocations: 0 / 0.8593 GB, free: 8.848 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008697/1.569, allocations: 4.125 MB / 0.8633 GB, free: 4.691 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007469/1.576, allocations: 0.7496 MB / 0.864 GB, free: 3.957 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2074/1.784, allocations: 19.62 MB / 0.8832 GB, free: 129.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006735/1.79, allocations: 4.86 MB / 0.8879 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007011/1.797, allocations: 2.789 MB / 0.8907 GB, free: 128.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001205/1.799, allocations: 381.8 kB / 0.891 GB, free: 128.4 MB / 462.1 MB Notification: Performance of SimCode: time 7.11e-07/1.799, allocations: 0 / 0.891 GB, free: 128.4 MB / 462.1 MB Notification: Performance of Templates: time 0.109/1.908, allocations: 81.2 MB / 0.9703 GB, free: 63.15 MB / 462.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/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