Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.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) 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(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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001057/0.001057, allocations: 99.34 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001241/0.001241, allocations: 191.7 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.7 MB / 246.4 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002476/0.0002479, allocations: 8 kB / 307.1 MB, free: 1.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08916/0.08942, allocations: 51.53 MB / 358.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2161/0.3056, allocations: 65.9 MB / 424.5 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03069/0.3363, allocations: 13.8 MB / 438.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009385/0.3457, allocations: 331.1 kB / 438.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007337/0.3531, allocations: 3.402 MB / 442.1 MB, free: 7.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02051/0.3736, allocations: 10.04 MB / 452.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003202/0.3768, allocations: 1.283 MB / 453.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.08004/0.4569, allocations: 64.67 MB / 0.5059 GB, free: 11.56 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008961/0.4659, allocations: 6.382 MB / 0.5122 GB, free: 5.121 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003613/0.4695, allocations: 2.234 MB / 0.5143 GB, free: 2.879 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00502/0.4746, allocations: 3.665 MB / 0.5179 GB, free: 15.2 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001087/0.4757, allocations: 248 kB / 0.5181 GB, free: 14.96 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002663/0.4783, allocations: 1.186 MB / 0.5193 GB, free: 13.77 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003495/0.4819, allocations: 2.965 MB / 0.5222 GB, free: 10.8 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002045/0.4839, allocations: 1.294 MB / 0.5235 GB, free: 9.496 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008137/0.4921, allocations: 8.468 MB / 0.5317 GB, free: 1.008 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.4921, allocations: 0 / 0.5317 GB, free: 1.008 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4921, allocations: 4 kB / 0.5317 GB, free: 1.004 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002515/0.4924, allocations: 0 / 0.5317 GB, free: 1.004 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.2091/0.7015, allocations: 6.863 MB / 0.5384 GB, free: 83.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.7015, allocations: 9.625 kB / 0.5385 GB, free: 83.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02501/0.7265, allocations: 3.761 MB / 0.5421 GB, free: 83.13 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01188/0.7385, allocations: 5.083 MB / 0.5471 GB, free: 82.35 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002735/0.7388, allocations: 379.1 kB / 0.5474 GB, free: 82.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001366/0.7401, allocations: 0.509 MB / 0.5479 GB, free: 82.32 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.026/0.7661, allocations: 16.29 MB / 0.5639 GB, free: 78.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001797/0.7664, allocations: 73.77 kB / 0.5639 GB, free: 78.11 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005811/0.767, allocations: 242.3 kB / 0.5642 GB, free: 78.04 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003494/0.7705, allocations: 2.924 MB / 0.567 GB, free: 75.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02417/0.7946, allocations: 13.73 MB / 0.5804 GB, free: 65.96 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.06406/0.8587, allocations: 64.78 MB / 0.6437 GB, free: 8.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01884/0.8776, allocations: 7.968 MB / 0.6515 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005419/0.8831, allocations: 4.353 MB / 0.6557 GB, free: 12.29 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0265/0.9096, allocations: 19.44 MB / 0.6747 GB, free: 8.367 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.426e-05/0.9097, allocations: 58.81 kB / 0.6748 GB, free: 8.301 MB / 478.1 MB Notification: Performance of pre-optimization done (n=290): time 5.51e-06/0.9097, allocations: 0 / 0.6748 GB, free: 8.301 MB / 478.1 MB Notification: Performance of matching and sorting (n=372): time 0.3439/1.254, allocations: 50.52 MB / 0.7241 GB, free: 199.1 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.51e-05/1.254, allocations: 272.6 kB / 0.7243 GB, free: 198.8 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008103/1.262, allocations: 6.003 MB / 0.7302 GB, free: 196.8 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0006416/1.262, allocations: 85.39 kB / 0.7303 GB, free: 196.7 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002746/1.265, allocations: 4.664 MB / 0.7348 GB, free: 193.2 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001633/1.267, allocations: 1.376 MB / 0.7362 GB, free: 192.1 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004512/1.267, allocations: 190.8 kB / 0.7364 GB, free: 192 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0003304/1.268, allocations: 0.7191 MB / 0.7371 GB, free: 191.5 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005042/1.273, allocations: 4.198 MB / 0.7412 GB, free: 190.1 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006604/1.279, allocations: 9.431 MB / 0.7504 GB, free: 181.7 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006724/1.286, allocations: 6.084 MB / 0.7563 GB, free: 179.3 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.828e-05/1.286, allocations: 51.22 kB / 0.7564 GB, free: 179.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.02667/1.313, allocations: 17.53 MB / 0.7735 GB, free: 163.9 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.311e-05/1.313, allocations: 84 kB / 0.7736 GB, free: 163.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001245/1.313, allocations: 180.9 kB / 0.7737 GB, free: 163.6 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01169/1.325, allocations: 4.609 MB / 0.7782 GB, free: 159 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005735/1.33, allocations: 2.137 MB / 0.7803 GB, free: 156.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02753/1.358, allocations: 23.71 MB / 0.8035 GB, free: 132.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006926/1.365, allocations: 0.5354 MB / 0.804 GB, free: 132.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001035/1.366, allocations: 0.5351 MB / 0.8045 GB, free: 131.9 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(2,100.0%) 50} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004194/1.37, allocations: 3.12 MB / 0.8076 GB, free: 128.7 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009606/1.371, allocations: 0.5631 MB / 0.8081 GB, free: 128.2 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01898/1.39, allocations: 10.74 MB / 0.8186 GB, free: 117.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.619e-05/1.39, allocations: 43.83 kB / 0.8187 GB, free: 117.3 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.577e-05/1.39, allocations: 16 kB / 0.8187 GB, free: 117.3 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.167e-05/1.39, allocations: 22.98 kB / 0.8187 GB, free: 117.3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03161/1.422, allocations: 20.55 MB / 0.8388 GB, free: 96.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.79e-05/1.422, allocations: 0.875 kB / 0.8388 GB, free: 96.64 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00243/1.424, allocations: 0.5461 MB / 0.8393 GB, free: 96.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0114/1.436, allocations: 4.213 MB / 0.8434 GB, free: 91.87 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005708/1.436, allocations: 63.98 kB / 0.8435 GB, free: 91.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02554/1.462, allocations: 21.53 MB / 0.8645 GB, free: 70.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.462, allocations: 0 / 0.8645 GB, free: 70.01 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02569/1.488, allocations: 15.67 MB / 0.8798 GB, free: 54.26 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001787/1.49, allocations: 0.5952 MB / 0.8804 GB, free: 53.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00124/1.491, allocations: 61.09 kB / 0.8805 GB, free: 53.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003005/1.494, allocations: 223.7 kB / 0.8807 GB, free: 53.36 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006311/1.494, allocations: 226.2 kB / 0.8809 GB, free: 53.14 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000252/1.495, allocations: 101.2 kB / 0.881 GB, free: 53.04 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004239/1.499, allocations: 3.733 MB / 0.8846 GB, free: 49.31 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.1e-07/1.499, allocations: 0 / 0.8846 GB, free: 49.31 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006449/1.505, allocations: 1.902 MB / 0.8865 GB, free: 47.41 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000481/1.506, allocations: 211.2 kB / 0.8867 GB, free: 47.2 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01204/1.518, allocations: 10.48 MB / 0.8969 GB, free: 36.7 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/1.518, allocations: 0 / 0.8969 GB, free: 36.7 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004585/1.523, allocations: 4.128 MB / 0.9009 GB, free: 32.55 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003814/1.526, allocations: 0.7532 MB / 0.9017 GB, free: 31.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2054/1.732, allocations: 18.98 MB / 0.9202 GB, free: 183.2 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006364/1.738, allocations: 4.854 MB / 0.925 GB, free: 182.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.007064/1.745, allocations: 2.789 MB / 0.9277 GB, free: 182.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001011/1.746, allocations: 385.1 kB / 0.928 GB, free: 182.2 MB / 0.4981 GB Notification: Performance of SimCode: time 8.12e-07/1.746, allocations: 0 / 0.928 GB, free: 182.2 MB / 0.4981 GB Notification: Performance of Templates: time 0.1088/1.855, allocations: 78.21 MB / 1.004 GB, free: 118 MB / 0.4981 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches