Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009146/0.0009147, allocations: 96.09 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00126/0.00126, allocations: 204.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.7 MB / 247.5 MB, free: 11.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1884/0.1884, allocations: 46.19 MB / 345.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002636/0.0002636, allocations: 8 kB / 420.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1146, allocations: 63.56 MB / 483.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.2627/0.3773, allocations: 70.93 MB / 0.5417 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03292/0.4103, allocations: 14.43 MB / 0.5558 GB, free: 9.562 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01459/0.4249, allocations: 321.2 kB / 0.5561 GB, free: 9.512 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002447/0.4274, allocations: 0.6327 MB / 0.5567 GB, free: 9.008 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007356/0.4348, allocations: 2.566 MB / 0.5592 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003544/0.4384, allocations: 1.353 MB / 0.5605 GB, free: 6.309 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01463/0.453, allocations: 12.07 MB / 0.5723 GB, free: 12 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01082/0.4639, allocations: 7.083 MB / 0.5792 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00426/0.4682, allocations: 2.07 MB / 0.5812 GB, free: 2.754 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005533/0.4738, allocations: 3.676 MB / 0.5848 GB, free: 15.07 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001408/0.4752, allocations: 248 kB / 0.5851 GB, free: 14.82 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00355/0.4788, allocations: 1.396 MB / 0.5864 GB, free: 13.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004624/0.4834, allocations: 3.007 MB / 0.5894 GB, free: 10.41 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005213/0.4887, allocations: 3.254 MB / 0.5925 GB, free: 7.129 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009441/0.4981, allocations: 8.468 MB / 0.6008 GB, free: 14.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.4982, allocations: 0 / 0.6008 GB, free: 14.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.867e-06/0.4982, allocations: 0 / 0.6008 GB, free: 14.64 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003649/0.4986, allocations: 3.938 kB / 0.6008 GB, free: 14.64 MB / 446.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.01697/0.5155, allocations: 6.788 MB / 0.6074 GB, free: 7.766 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.5156, allocations: 12.88 kB / 0.6075 GB, free: 7.754 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03014/0.5458, allocations: 3.767 MB / 0.6111 GB, free: 3.973 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01251/0.5583, allocations: 5.164 MB / 0.6162 GB, free: 14.72 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004088/0.5588, allocations: 365.9 kB / 0.6165 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001934/0.5607, allocations: 0.5154 MB / 0.617 GB, free: 13.85 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03192/0.5927, allocations: 16.32 MB / 0.633 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003199/0.593, allocations: 79.3 kB / 0.633 GB, free: 12.38 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001549/0.5946, allocations: 243.8 kB / 0.6333 GB, free: 12.14 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005046/0.5996, allocations: 2.927 MB / 0.6361 GB, free: 9.211 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03035/0.63, allocations: 13.79 MB / 0.6496 GB, free: 11.4 MB / 494.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.3262/0.9562, allocations: 64.81 MB / 0.7129 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02406/0.9803, allocations: 7.996 MB / 0.7207 GB, free: 140.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005899/0.9862, allocations: 4.346 MB / 0.7249 GB, free: 140.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02889/1.015, allocations: 19.45 MB / 0.7439 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.888e-05/1.015, allocations: 65.36 kB / 0.744 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=290): time 6.503e-06/1.015, allocations: 0 / 0.744 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=372): time 0.1646/1.18, allocations: 50.55 MB / 0.7934 GB, free: 87.26 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/1.18, allocations: 269.1 kB / 0.7936 GB, free: 86.95 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009823/1.19, allocations: 6.038 MB / 0.7995 GB, free: 80.89 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008187/1.191, allocations: 81.7 kB / 0.7996 GB, free: 80.81 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00251/1.193, allocations: 4.66 MB / 0.8041 GB, free: 76.15 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001761/1.195, allocations: 1.374 MB / 0.8055 GB, free: 74.79 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001597/1.197, allocations: 0.8177 MB / 0.8063 GB, free: 73.96 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.497e-05/1.197, allocations: 313.1 kB / 0.8066 GB, free: 73.65 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005373/1.202, allocations: 4.231 MB / 0.8107 GB, free: 69.41 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007089/1.209, allocations: 9.474 MB / 0.82 GB, free: 57.47 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01423/1.223, allocations: 14.66 MB / 0.8343 GB, free: 40.47 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001239/1.224, allocations: 52 kB / 0.8343 GB, free: 40.42 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.034/1.258, allocations: 17.6 MB / 0.8515 GB, free: 22.77 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002353/1.258, allocations: 83.94 kB / 0.8516 GB, free: 22.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002981/1.258, allocations: 184 kB / 0.8518 GB, free: 22.51 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01431/1.273, allocations: 4.581 MB / 0.8563 GB, free: 17.93 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007233/1.28, allocations: 2.129 MB / 0.8583 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03366/1.314, allocations: 23.76 MB / 0.8815 GB, free: 7.777 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007809/1.321, allocations: 0.539 MB / 0.8821 GB, free: 7.238 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002056/1.323, allocations: 0.5351 MB / 0.8826 GB, free: 6.703 MB / 0.545 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.00721/1.331, allocations: 3.121 MB / 0.8856 GB, free: 3.574 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001665/1.332, allocations: 0.5631 MB / 0.8862 GB, free: 3.004 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02674/1.359, allocations: 10.78 MB / 0.8967 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.266e-05/1.359, allocations: 37.64 kB / 0.8967 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-05/1.359, allocations: 23.94 kB / 0.8968 GB, free: 8.105 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001001/1.359, allocations: 19.88 kB / 0.8968 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0484/1.408, allocations: 20.56 MB / 0.9169 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.052e-05/1.408, allocations: 0 / 0.9169 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003086/1.411, allocations: 0.5499 MB / 0.9174 GB, free: 2.855 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2325/1.643, allocations: 4.212 MB / 0.9215 GB, free: 205.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008634/1.644, allocations: 63.55 kB / 0.9216 GB, free: 205.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0341/1.679, allocations: 21.54 MB / 0.9426 GB, free: 198.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/1.679, allocations: 3.125 kB / 0.9426 GB, free: 198.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0291/1.708, allocations: 15.71 MB / 0.958 GB, free: 193.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001451/1.709, allocations: 0.6012 MB / 0.9585 GB, free: 193.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001881/1.711, allocations: 64.33 kB / 0.9586 GB, free: 193.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004106/1.715, allocations: 228.1 kB / 0.9588 GB, free: 193.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001259/1.716, allocations: 224.8 kB / 0.959 GB, free: 193.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006391/1.717, allocations: 98.28 kB / 0.9591 GB, free: 193.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00662/1.724, allocations: 3.766 MB / 0.9628 GB, free: 191.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.81e-07/1.724, allocations: 0 / 0.9628 GB, free: 191.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009415/1.733, allocations: 1.907 MB / 0.9647 GB, free: 191.6 MB / 0.5762 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.001173/1.734, allocations: 212.7 kB / 0.9649 GB, free: 191.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01646/1.751, allocations: 10.53 MB / 0.9752 GB, free: 184.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/1.751, allocations: 4 kB / 0.9752 GB, free: 184.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006329/1.757, allocations: 4.133 MB / 0.9792 GB, free: 180.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007012/1.764, allocations: 0.7392 MB / 0.9799 GB, free: 180 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03271/1.797, allocations: 20.3 MB / 0.9997 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006937/1.804, allocations: 4.834 MB / 1.004 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002097/1.806, allocations: 447.4 kB / 1.005 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of SimCode: time 2.875e-06/1.806, allocations: 4 kB / 1.005 GB, free: 155 MB / 0.5762 GB Notification: Performance of Templates: time 0.4064/2.213, allocations: 151.6 MB / 1.153 GB, free: 193.8 MB / 0.5762 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches