Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001319/0.00132, allocations: 102.1 kB / 18.4 MB, free: 4.66 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.001315/0.001315, allocations: 190.4 kB / 19.33 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.372/1.372, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001316, allocations: 60.34 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08702/0.08835, allocations: 46.61 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2124/0.3008, allocations: 17.33 MB / 393.2 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01411/0.315, allocations: 5.489 MB / 398.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005178/0.3202, allocations: 117.8 kB / 398.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01042/0.3307, allocations: 4.375 MB / 403.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009479/0.3402, allocations: 2.757 MB / 405.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004136/0.3444, allocations: 1.463 MB / 407.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01365/0.3581, allocations: 8.152 MB / 415.5 MB, free: 6.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008766/0.3669, allocations: 5.387 MB / 420.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006078/0.373, allocations: 2.679 MB / 423.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006839/0.3799, allocations: 3.867 MB / 427.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002539/0.3825, allocations: 0.5352 MB / 428 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005065/0.3876, allocations: 1.623 MB / 429.6 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005244/0.3929, allocations: 3.402 MB / 433 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007846/0.4007, allocations: 3.663 MB / 436.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01973/0.4205, allocations: 11.24 MB / 447.9 MB, free: 7.297 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.437e-06/0.4206, allocations: 0 / 447.9 MB, free: 7.297 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4206, allocations: 0 / 447.9 MB, free: 7.297 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005052/0.4211, allocations: 0 / 447.9 MB, free: 7.297 MB / 366.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.02414/0.4453, allocations: 8.23 MB / 456.1 MB, free: 14.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.123e-05/0.4453, allocations: 8.031 kB / 456.1 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02708/0.4724, allocations: 3.681 MB / 459.8 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01388/0.4864, allocations: 5.606 MB / 465.4 MB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003901/0.4868, allocations: 377.4 kB / 465.8 MB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002391/0.4892, allocations: 0.5112 MB / 466.3 MB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0335/0.5227, allocations: 16.24 MB / 482.5 MB, free: 3.402 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003402/0.5231, allocations: 79.3 kB / 482.6 MB, free: 3.324 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001614/0.5247, allocations: 235.8 kB / 482.9 MB, free: 3.094 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004905/0.5297, allocations: 2.927 MB / 485.8 MB, free: 168 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02975/0.5595, allocations: 13.7 MB / 499.5 MB, free: 2.438 MB / 414.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.09215/0.6517, allocations: 64.56 MB / 0.5508 GB, free: 8 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2157/0.8674, allocations: 7.853 MB / 0.5585 GB, free: 144.5 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005722/0.8732, allocations: 4.347 MB / 0.5627 GB, free: 143.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02962/0.9029, allocations: 19.37 MB / 0.5817 GB, free: 133.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.973e-05/0.903, allocations: 69.16 kB / 0.5817 GB, free: 133.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=290): time 7.494e-06/0.903, allocations: 0 / 0.5817 GB, free: 133.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=372): time 0.1522/1.055, allocations: 49.91 MB / 0.6305 GB, free: 91.85 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.037e-05/1.055, allocations: 273.8 kB / 0.6307 GB, free: 91.52 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007733/1.063, allocations: 6.091 MB / 0.6367 GB, free: 85.42 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007844/1.064, allocations: 81.7 kB / 0.6368 GB, free: 85.34 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002252/1.066, allocations: 4.679 MB / 0.6413 GB, free: 80.66 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001576/1.068, allocations: 1.371 MB / 0.6427 GB, free: 79.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003621/1.071, allocations: 1.912 MB / 0.6445 GB, free: 77.38 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.028e-05/1.071, allocations: 317 kB / 0.6448 GB, free: 77.06 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005107/1.077, allocations: 4.216 MB / 0.6489 GB, free: 72.84 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007014/1.084, allocations: 9.457 MB / 0.6582 GB, free: 60.84 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01317/1.097, allocations: 14.63 MB / 0.6725 GB, free: 43.65 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001264/1.097, allocations: 52 kB / 0.6725 GB, free: 43.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03087/1.128, allocations: 17.54 MB / 0.6896 GB, free: 26.01 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/1.128, allocations: 84 kB / 0.6897 GB, free: 25.93 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001862/1.128, allocations: 182.1 kB / 0.6899 GB, free: 25.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01316/1.141, allocations: 4.543 MB / 0.6943 GB, free: 21.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006578/1.148, allocations: 2.137 MB / 0.6964 GB, free: 19.06 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03114/1.179, allocations: 25.37 MB / 0.7212 GB, free: 9.414 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007719/1.187, allocations: 0.5227 MB / 0.7217 GB, free: 8.891 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001977/1.189, allocations: 0.5351 MB / 0.7222 GB, free: 8.355 MB / 494.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.006934/1.196, allocations: 3.129 MB / 0.7253 GB, free: 5.215 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001712/1.198, allocations: 0.5746 MB / 0.7258 GB, free: 4.633 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2255/1.423, allocations: 10.7 MB / 0.7363 GB, free: 159.1 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.399e-05/1.423, allocations: 38.34 kB / 0.7363 GB, free: 159.1 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.57e-05/1.423, allocations: 18.78 kB / 0.7364 GB, free: 159.1 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-05/1.423, allocations: 23.06 kB / 0.7364 GB, free: 159.1 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04501/1.468, allocations: 20.37 MB / 0.7563 GB, free: 153.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.777e-05/1.468, allocations: 4.188 kB / 0.7563 GB, free: 153.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002864/1.471, allocations: 0.5351 MB / 0.7568 GB, free: 153.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01292/1.484, allocations: 4.182 MB / 0.7609 GB, free: 152.9 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000903/1.485, allocations: 62.77 kB / 0.7609 GB, free: 152.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02959/1.515, allocations: 23.13 MB / 0.7835 GB, free: 141.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/1.515, allocations: 3.312 kB / 0.7835 GB, free: 141.1 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02648/1.541, allocations: 15.63 MB / 0.7988 GB, free: 126.6 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003238/1.545, allocations: 1.182 MB / 0.7999 GB, free: 125.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001784/1.546, allocations: 56.88 kB / 0.8 GB, free: 125.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003943/1.55, allocations: 215.7 kB / 0.8002 GB, free: 125.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001147/1.552, allocations: 228.3 kB / 0.8004 GB, free: 125.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005509/1.552, allocations: 99.5 kB / 0.8005 GB, free: 125.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006807/1.559, allocations: 3.806 MB / 0.8042 GB, free: 121.4 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.303e-06/1.559, allocations: 3.438 kB / 0.8042 GB, free: 121.4 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01031/1.569, allocations: 1.939 MB / 0.8061 GB, free: 119.4 MB / 0.4981 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.001394/1.571, allocations: 216.2 kB / 0.8063 GB, free: 119.2 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0151/1.586, allocations: 10.52 MB / 0.8166 GB, free: 108.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/1.586, allocations: 0 / 0.8166 GB, free: 108.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.006144/1.592, allocations: 4.128 MB / 0.8206 GB, free: 104.6 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006466/1.599, allocations: 0.7762 MB / 0.8214 GB, free: 103.9 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02997/1.629, allocations: 16.87 MB / 0.8379 GB, free: 87.14 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007859/1.637, allocations: 4.842 MB / 0.8426 GB, free: 82.27 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002085/1.639, allocations: 453.3 kB / 0.843 GB, free: 81.83 MB / 0.4981 GB Notification: Performance of SimCode: time 1.162e-06/1.639, allocations: 0 / 0.843 GB, free: 81.83 MB / 0.4981 GB Notification: Performance of Templates: time 0.3934/2.032, allocations: 155.6 MB / 0.995 GB, free: 104.6 MB / 0.4981 GB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches