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.00094/0.0009401, allocations: 96.31 kB / 17.3 MB, free: 6.023 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.001163/0.001163, allocations: 171.6 kB / 18.2 MB, free: 5.418 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.444/1.444, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004789/0.0004788, allocations: 8 kB / 281.4 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08187/0.08236, allocations: 47.58 MB / 329 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2545/0.3369, allocations: 71.43 MB / 400.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03609/0.373, allocations: 14.63 MB / 415 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01668/0.3898, allocations: 321.9 kB / 415.3 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002816/0.3926, allocations: 0.636 MB / 416 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008509/0.4012, allocations: 2.606 MB / 418.6 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003224/0.4044, allocations: 1.357 MB / 419.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01514/0.4196, allocations: 11.44 MB / 431.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01367/0.4333, allocations: 7.116 MB / 438.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005141/0.4385, allocations: 2.086 MB / 440.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006443/0.445, allocations: 3.696 MB / 444.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001863/0.4469, allocations: 248 kB / 444.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004398/0.4513, allocations: 1.418 MB / 445.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004476/0.4558, allocations: 3.037 MB / 449 MB, free: 9.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006411/0.4622, allocations: 3.288 MB / 452.3 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01411/0.4764, allocations: 10.46 MB / 462.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.4765, allocations: 4 kB / 462.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.607e-06/0.4765, allocations: 0 / 462.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004229/0.4769, allocations: 0 / 462.7 MB, free: 12.38 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.0191/0.496, allocations: 6.818 MB / 469.6 MB, free: 5.516 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.894e-05/0.4961, allocations: 11.97 kB / 469.6 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03242/0.5286, allocations: 3.77 MB / 473.3 MB, free: 1.723 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01451/0.5431, allocations: 5.487 MB / 478.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004118/0.5436, allocations: 373.1 kB / 479.2 MB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002547/0.5461, allocations: 0.5114 MB / 479.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03442/0.5806, allocations: 16.3 MB / 496 MB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002855/0.5809, allocations: 83.3 kB / 496.1 MB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008357/0.5818, allocations: 235.5 kB / 496.3 MB, free: 9.984 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004925/0.5867, allocations: 2.928 MB / 499.2 MB, free: 7.066 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03254/0.6193, allocations: 13.77 MB / 0.501 GB, free: 9.277 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.3301/0.9495, allocations: 64.83 MB / 0.5643 GB, free: 123 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.023/0.9725, allocations: 7.975 MB / 0.5721 GB, free: 122.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006047/0.9786, allocations: 4.347 MB / 0.5763 GB, free: 120.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0286/1.007, allocations: 19.37 MB / 0.5952 GB, free: 109.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.438e-05/1.007, allocations: 64.83 kB / 0.5953 GB, free: 109 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 7.194e-06/1.007, allocations: 3.75 kB / 0.5953 GB, free: 109 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.151/1.158, allocations: 50.6 MB / 0.6447 GB, free: 60.35 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/1.159, allocations: 273.8 kB / 0.645 GB, free: 60.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008833/1.167, allocations: 6.091 MB / 0.6509 GB, free: 53.92 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009508/1.168, allocations: 81.7 kB / 0.651 GB, free: 53.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002586/1.171, allocations: 4.684 MB / 0.6556 GB, free: 49.15 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001547/1.173, allocations: 1.367 MB / 0.6569 GB, free: 47.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009562/1.174, allocations: 0.8163 MB / 0.6577 GB, free: 46.97 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.54e-05/1.174, allocations: 305.1 kB / 0.658 GB, free: 46.67 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005023/1.179, allocations: 4.224 MB / 0.6621 GB, free: 42.44 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006946/1.186, allocations: 9.454 MB / 0.6714 GB, free: 30.52 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01355/1.199, allocations: 14.64 MB / 0.6857 GB, free: 13.37 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.977e-05/1.199, allocations: 52 kB / 0.6857 GB, free: 13.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03158/1.231, allocations: 17.6 MB / 0.7029 GB, free: 11.68 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001121/1.231, allocations: 88.17 kB / 0.703 GB, free: 11.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001809/1.231, allocations: 184 kB / 0.7031 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01481/1.246, allocations: 4.582 MB / 0.7076 GB, free: 6.824 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007489/1.254, allocations: 2.133 MB / 0.7097 GB, free: 4.688 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2265/1.48, allocations: 23.74 MB / 0.7329 GB, free: 151.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008855/1.489, allocations: 0.5324 MB / 0.7334 GB, free: 151.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001947/1.491, allocations: 0.5396 MB / 0.7339 GB, free: 151.3 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.006082/1.497, allocations: 3.122 MB / 0.737 GB, free: 150.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001242/1.498, allocations: 0.5684 MB / 0.7375 GB, free: 150.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02136/1.52, allocations: 10.76 MB / 0.748 GB, free: 146.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.663e-05/1.52, allocations: 37.59 kB / 0.7481 GB, free: 146.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-05/1.52, allocations: 18.62 kB / 0.7481 GB, free: 146.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-05/1.52, allocations: 22.78 kB / 0.7481 GB, free: 146.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0376/1.557, allocations: 20.55 MB / 0.7682 GB, free: 132.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.995e-05/1.558, allocations: 4 kB / 0.7682 GB, free: 132.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002919/1.56, allocations: 0.534 MB / 0.7687 GB, free: 131.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01274/1.573, allocations: 4.226 MB / 0.7728 GB, free: 127.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006495/1.574, allocations: 69.23 kB / 0.7729 GB, free: 127.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02658/1.601, allocations: 21.57 MB / 0.794 GB, free: 105.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/1.601, allocations: 0 / 0.794 GB, free: 105.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02578/1.626, allocations: 15.67 MB / 0.8093 GB, free: 90.23 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003393/1.63, allocations: 1.2 MB / 0.8104 GB, free: 89.01 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001201/1.631, allocations: 60 kB / 0.8105 GB, free: 88.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003012/1.634, allocations: 215.7 kB / 0.8107 GB, free: 88.74 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008502/1.635, allocations: 227.6 kB / 0.8109 GB, free: 88.52 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002562/1.635, allocations: 95.98 kB / 0.811 GB, free: 88.42 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005736/1.641, allocations: 3.816 MB / 0.8147 GB, free: 84.62 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.61e-07/1.641, allocations: 0 / 0.8147 GB, free: 84.62 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009542/1.65, allocations: 1.928 MB / 0.8166 GB, free: 82.7 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.0007874/1.651, allocations: 230.2 kB / 0.8168 GB, free: 82.47 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01498/1.666, allocations: 10.5 MB / 0.8271 GB, free: 72.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/1.666, allocations: 0 / 0.8271 GB, free: 72.02 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004993/1.671, allocations: 4.126 MB / 0.8311 GB, free: 67.87 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005081/1.676, allocations: 0.7252 MB / 0.8318 GB, free: 67.16 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02628/1.703, allocations: 19.82 MB / 0.8512 GB, free: 47.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005676/1.708, allocations: 4.871 MB / 0.8559 GB, free: 42.44 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007139/1.716, allocations: 2.789 MB / 0.8587 GB, free: 39.64 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001238/1.717, allocations: 383.4 kB / 0.859 GB, free: 39.27 MB / 462.1 MB Notification: Performance of SimCode: time 2.094e-06/1.717, allocations: 0 / 0.859 GB, free: 39.27 MB / 462.1 MB Notification: Performance of Templates: time 0.3234/2.04, allocations: 80.33 MB / 0.9375 GB, free: 113.7 MB / 462.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches