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.001662/0.001663, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001437/0.001437, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.404/1.404, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001198, allocations: 46.95 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1079, allocations: 49.45 MB / 350.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01857/0.1266, allocations: 17.29 MB / 368 MB, free: 3.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1823/0.3089, allocations: 5.464 MB / 373.5 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004099/0.3131, allocations: 119.9 kB / 373.6 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009051/0.3222, allocations: 4.369 MB / 378 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008628/0.3309, allocations: 2.752 MB / 380.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003988/0.3349, allocations: 1.462 MB / 382.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01326/0.3482, allocations: 8.46 MB / 390.6 MB, free: 4.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007236/0.3554, allocations: 5.387 MB / 396 MB, free: 1.785 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005194/0.3607, allocations: 2.678 MB / 398.7 MB, free: 464 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0061/0.3668, allocations: 3.835 MB / 402.5 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002161/0.369, allocations: 0.5352 MB / 403.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004768/0.3738, allocations: 1.624 MB / 404.7 MB, free: 11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004519/0.3784, allocations: 3.335 MB / 408 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00663/0.385, allocations: 3.653 MB / 411.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0136/0.3987, allocations: 10.88 MB / 422.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.3987, allocations: 0 / 422.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3987, allocations: 0 / 422.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003765/0.3991, allocations: 4 kB / 422.6 MB, free: 9.379 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.02045/0.4196, allocations: 8.212 MB / 430.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.4196, allocations: 12.03 kB / 430.8 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03093/0.4506, allocations: 3.679 MB / 434.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01299/0.4636, allocations: 5.296 MB / 439.8 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000367/0.464, allocations: 372.1 kB / 440.1 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002373/0.4664, allocations: 0.5111 MB / 440.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03449/0.5009, allocations: 16.24 MB / 456.9 MB, free: 6.305 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003379/0.5013, allocations: 75.31 kB / 457 MB, free: 6.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001489/0.5028, allocations: 240.1 kB / 457.2 MB, free: 6.051 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004955/0.5078, allocations: 2.917 MB / 460.1 MB, free: 3.145 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03113/0.5389, allocations: 13.71 MB / 473.8 MB, free: 5.41 MB / 382.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.0939/0.6329, allocations: 64.81 MB / 0.526 GB, free: 3.062 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2247/0.8576, allocations: 7.87 MB / 0.5337 GB, free: 143.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007265/0.8649, allocations: 4.336 MB / 0.5379 GB, free: 141.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03051/0.8955, allocations: 19.38 MB / 0.5569 GB, free: 131.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.013e-05/0.8956, allocations: 63.03 kB / 0.5569 GB, free: 131.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 6.853e-06/0.8956, allocations: 0 / 0.5569 GB, free: 131.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1617/1.057, allocations: 49.83 MB / 0.6056 GB, free: 90.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/1.058, allocations: 269.8 kB / 0.6058 GB, free: 90.28 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007946/1.065, allocations: 6.05 MB / 0.6117 GB, free: 84.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009813/1.066, allocations: 81.7 kB / 0.6118 GB, free: 84.13 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002562/1.069, allocations: 4.67 MB / 0.6164 GB, free: 79.46 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001917/1.071, allocations: 1.37 MB / 0.6177 GB, free: 78.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002599/1.074, allocations: 1.904 MB / 0.6196 GB, free: 76.18 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.552e-05/1.074, allocations: 313 kB / 0.6199 GB, free: 75.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005328/1.079, allocations: 4.22 MB / 0.624 GB, free: 71.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008401/1.087, allocations: 9.453 MB / 0.6332 GB, free: 59.65 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01603/1.104, allocations: 14.63 MB / 0.6475 GB, free: 42.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001946/1.104, allocations: 52 kB / 0.6476 GB, free: 42.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.036/1.14, allocations: 17.55 MB / 0.6647 GB, free: 24.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001138/1.14, allocations: 80 kB / 0.6648 GB, free: 24.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000202/1.14, allocations: 184.9 kB / 0.665 GB, free: 24.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01371/1.154, allocations: 4.559 MB / 0.6694 GB, free: 19.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007542/1.161, allocations: 2.125 MB / 0.6715 GB, free: 17.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.263/1.424, allocations: 25.4 MB / 0.6963 GB, free: 135.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009194/1.434, allocations: 0.5223 MB / 0.6968 GB, free: 135.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002281/1.436, allocations: 0.5375 MB / 0.6973 GB, free: 135.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.007794/1.444, allocations: 3.128 MB / 0.7004 GB, free: 134.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001633/1.445, allocations: 0.565 MB / 0.7009 GB, free: 134.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02382/1.469, allocations: 10.71 MB / 0.7114 GB, free: 130.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.087e-05/1.469, allocations: 42.62 kB / 0.7114 GB, free: 130.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.088e-05/1.469, allocations: 19.45 kB / 0.7114 GB, free: 130.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.641e-05/1.47, allocations: 19.7 kB / 0.7115 GB, free: 130.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04097/1.511, allocations: 20.52 MB / 0.7315 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-05/1.511, allocations: 3.844 kB / 0.7315 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002859/1.514, allocations: 0.537 MB / 0.732 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01286/1.526, allocations: 4.191 MB / 0.7361 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007903/1.527, allocations: 67.42 kB / 0.7362 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02817/1.555, allocations: 23.14 MB / 0.7588 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.555, allocations: 0 / 0.7588 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02628/1.582, allocations: 15.63 MB / 0.774 GB, free: 87.61 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001887/1.584, allocations: 0.59 MB / 0.7746 GB, free: 87.14 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001925/1.586, allocations: 59.97 kB / 0.7747 GB, free: 87.08 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003955/1.59, allocations: 219.7 kB / 0.7749 GB, free: 86.87 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001092/1.591, allocations: 226.1 kB / 0.7751 GB, free: 86.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003085/1.591, allocations: 95.98 kB / 0.7752 GB, free: 86.55 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005759/1.597, allocations: 3.773 MB / 0.7789 GB, free: 82.78 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/1.597, allocations: 0 / 0.7789 GB, free: 82.78 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01016/1.607, allocations: 1.928 MB / 0.7808 GB, free: 80.86 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.00103/1.608, allocations: 228.5 kB / 0.781 GB, free: 80.64 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02366/1.632, allocations: 15.42 MB / 0.796 GB, free: 65.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/1.632, allocations: 0 / 0.796 GB, free: 65.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005629/1.637, allocations: 4.124 MB / 0.8001 GB, free: 61.15 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005418/1.643, allocations: 0.7758 MB / 0.8008 GB, free: 60.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02676/1.67, allocations: 17.02 MB / 0.8174 GB, free: 43.42 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005417/1.675, allocations: 4.827 MB / 0.8222 GB, free: 38.56 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001764/1.677, allocations: 447.4 kB / 0.8226 GB, free: 38.12 MB / 462.1 MB Notification: Performance of SimCode: time 1.503e-06/1.677, allocations: 0 / 0.8226 GB, free: 38.12 MB / 462.1 MB Notification: Performance of Templates: time 0.3518/2.029, allocations: 153.3 MB / 0.9723 GB, free: 45.45 MB / 462.1 MB 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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches