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.001325/0.001325, allocations: 106.6 kB / 17.06 MB, free: 6.031 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.001256/0.001256, allocations: 195.1 kB / 17.99 MB, free: 5.109 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.351/1.351, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 47.94 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.271, allocations: 49.43 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.0176/0.2887, allocations: 17.28 MB / 418 MB, free: 7.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01147/0.3002, allocations: 5.482 MB / 423.5 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002794/0.303, allocations: 119.6 kB / 423.6 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008196/0.3113, allocations: 4.368 MB / 428 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007222/0.3185, allocations: 2.745 MB / 430.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00327/0.3218, allocations: 1.459 MB / 432.2 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01212/0.334, allocations: 8.475 MB / 440.7 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008132/0.3421, allocations: 5.371 MB / 446 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004952/0.3471, allocations: 2.663 MB / 448.7 MB, free: 8.668 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006006/0.3531, allocations: 3.844 MB / 452.5 MB, free: 4.812 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00225/0.3554, allocations: 0.5352 MB / 453.1 MB, free: 4.277 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005498/0.3609, allocations: 1.635 MB / 454.7 MB, free: 2.641 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004497/0.3655, allocations: 3.39 MB / 458.1 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007148/0.3726, allocations: 3.655 MB / 461.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0145/0.3872, allocations: 11.21 MB / 473 MB, free: 324 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3872, allocations: 0 / 473 MB, free: 324 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3872, allocations: 0 / 473 MB, free: 324 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003839/0.3876, allocations: 3.984 kB / 473 MB, free: 320 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.02106/0.4087, allocations: 8.21 MB / 481.2 MB, free: 8.016 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.4087, allocations: 8.031 kB / 481.2 MB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03106/0.4398, allocations: 3.677 MB / 484.9 MB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01445/0.4543, allocations: 5.398 MB / 490.3 MB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004293/0.4547, allocations: 373.5 kB / 490.6 MB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002172/0.4569, allocations: 0.5074 MB / 491.1 MB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03408/0.491, allocations: 16.25 MB / 0.4955 GB, free: 12.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000331/0.4914, allocations: 75.38 kB / 0.4956 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001689/0.4931, allocations: 231.8 kB / 0.4958 GB, free: 12.34 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00455/0.4977, allocations: 2.93 MB / 0.4987 GB, free: 9.406 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02796/0.5256, allocations: 13.71 MB / 0.512 GB, free: 11.67 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.2885/0.8142, allocations: 64.53 MB / 0.5751 GB, free: 86.43 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01973/0.834, allocations: 7.864 MB / 0.5827 GB, free: 83.86 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004427/0.8384, allocations: 4.348 MB / 0.587 GB, free: 81.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0216/0.86, allocations: 19.36 MB / 0.6059 GB, free: 64.23 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.8601, allocations: 68.5 kB / 0.606 GB, free: 64.15 MB / 462.1 MB Notification: Performance of pre-optimization done (n=290): time 4.598e-06/0.8601, allocations: 0 / 0.606 GB, free: 64.15 MB / 462.1 MB Notification: Performance of matching and sorting (n=372): time 0.1486/1.009, allocations: 49.84 MB / 0.6546 GB, free: 14.26 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.862e-05/1.009, allocations: 277.8 kB / 0.6549 GB, free: 13.93 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006221/1.015, allocations: 6.047 MB / 0.6608 GB, free: 7.871 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000713/1.016, allocations: 81.7 kB / 0.6609 GB, free: 7.785 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00181/1.018, allocations: 4.665 MB / 0.6654 GB, free: 3.121 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001193/1.019, allocations: 1.372 MB / 0.6668 GB, free: 1.762 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002182/1.021, allocations: 1.912 MB / 0.6686 GB, free: 15.84 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.079e-05/1.021, allocations: 305.1 kB / 0.6689 GB, free: 15.54 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006417/1.028, allocations: 4.227 MB / 0.6731 GB, free: 11.31 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01015/1.038, allocations: 9.446 MB / 0.6823 GB, free: 15.31 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01788/1.056, allocations: 14.63 MB / 0.6966 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001488/1.056, allocations: 54.91 kB / 0.6966 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03782/1.094, allocations: 17.55 MB / 0.7138 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/1.094, allocations: 87.94 kB / 0.7139 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000189/1.094, allocations: 180 kB / 0.714 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01457/1.109, allocations: 4.545 MB / 0.7185 GB, free: 7.652 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007341/1.116, allocations: 2.129 MB / 0.7205 GB, free: 5.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2351/1.351, allocations: 25.36 MB / 0.7453 GB, free: 181.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007479/1.359, allocations: 0.5262 MB / 0.7458 GB, free: 181.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00145/1.36, allocations: 0.5318 MB / 0.7463 GB, free: 181.6 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.004436/1.365, allocations: 3.122 MB / 0.7494 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000932/1.365, allocations: 0.5677 MB / 0.7499 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02019/1.386, allocations: 10.71 MB / 0.7604 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.426e-05/1.386, allocations: 38.94 kB / 0.7604 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-05/1.386, allocations: 18.5 kB / 0.7605 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.092e-05/1.386, allocations: 26.64 kB / 0.7605 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03386/1.42, allocations: 20.35 MB / 0.7804 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.203e-05/1.42, allocations: 3.938 kB / 0.7804 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002791/1.423, allocations: 0.5354 MB / 0.7809 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01297/1.436, allocations: 4.191 MB / 0.785 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007902/1.436, allocations: 63.05 kB / 0.785 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02682/1.463, allocations: 23.13 MB / 0.8076 GB, free: 139.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.463, allocations: 3.938 kB / 0.8076 GB, free: 139.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02447/1.488, allocations: 15.63 MB / 0.8229 GB, free: 124.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/1.489, allocations: 0.5954 MB / 0.8235 GB, free: 124 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001175/1.49, allocations: 56 kB / 0.8235 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003025/1.494, allocations: 227 kB / 0.8237 GB, free: 123.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007848/1.494, allocations: 230.2 kB / 0.824 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002766/1.495, allocations: 99.98 kB / 0.8241 GB, free: 123.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004454/1.499, allocations: 3.773 MB / 0.8277 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/1.499, allocations: 0 / 0.8277 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007077/1.506, allocations: 1.931 MB / 0.8296 GB, free: 117.7 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.0005991/1.507, allocations: 219.8 kB / 0.8298 GB, free: 117.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01282/1.52, allocations: 10.53 MB / 0.8401 GB, free: 107 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/1.52, allocations: 0 / 0.8401 GB, free: 107 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004881/1.525, allocations: 4.127 MB / 0.8441 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003901/1.528, allocations: 0.7636 MB / 0.8449 GB, free: 102.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02162/1.55, allocations: 16.22 MB / 0.8607 GB, free: 85.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004599/1.555, allocations: 4.855 MB / 0.8655 GB, free: 81.01 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005965/1.561, allocations: 2.797 MB / 0.8682 GB, free: 78.21 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001257/1.562, allocations: 383.4 kB / 0.8686 GB, free: 77.83 MB / 0.5294 GB Notification: Performance of SimCode: time 1.252e-06/1.562, allocations: 0 / 0.8686 GB, free: 77.83 MB / 0.5294 GB Notification: Performance of Templates: time 0.3264/1.888, allocations: 80.8 MB / 0.9475 GB, free: 171.5 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