Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wheelSet.der_theta1|wheelSet.der_theta2|wheelSet.phi|wheelSet.theta1|wheelSet.theta2|wheelSet.x|wheelSet.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wheelSet.der_theta1|wheelSet.der_theta2|wheelSet.phi|wheelSet.theta1|wheelSet.theta2|wheelSet.x|wheelSet.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001869/0.001869, allocations: 195.4 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 226.5 MB / 245.4 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007778/0.0007775, allocations: 106.2 kB / 297.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002404/0.0002406, allocations: 4 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2839, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1608/0.4447, allocations: 105.8 MB / 0.5024 GB, free: 1.715 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/0.4451, allocations: 95.95 kB / 0.5025 GB, free: 1.621 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4749/0.92, allocations: 124.3 MB / 0.6239 GB, free: 2.824 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.9201, allocations: 0 / 0.6239 GB, free: 2.824 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004827/0.9206, allocations: 120 kB / 0.624 GB, free: 2.707 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2047 * Number of variables: 2047 Notification: Performance of Generate backend data structure: time 0.02233/0.9429, allocations: 6.436 MB / 0.6303 GB, free: 12.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.943, allocations: 8.031 kB / 0.6303 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01286/0.9559, allocations: 2.664 MB / 0.6329 GB, free: 9.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01485/0.9708, allocations: 5.756 MB / 0.6385 GB, free: 3.684 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005817/0.9714, allocations: 456.3 kB / 0.639 GB, free: 3.234 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003304/0.9747, allocations: 0.5977 MB / 0.6396 GB, free: 2.637 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03848/1.013, allocations: 15.49 MB / 0.6547 GB, free: 1.934 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005104/1.014, allocations: 75.53 kB / 0.6547 GB, free: 1.859 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002668/1.016, allocations: 291.8 kB / 0.655 GB, free: 1.574 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002626/1.019, allocations: 1.462 MB / 0.6565 GB, free: 116 kB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02935/1.048, allocations: 13.35 MB / 0.6695 GB, free: 2.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.335/1.384, allocations: 68.66 MB / 0.7365 GB, free: 36.19 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02017/1.404, allocations: 7.485 MB / 0.7439 GB, free: 35.14 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008426/1.412, allocations: 5.024 MB / 0.7488 GB, free: 32.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02518/1.437, allocations: 14.56 MB / 0.763 GB, free: 25.42 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01801/1.456, allocations: 5.411 MB / 0.7683 GB, free: 24.13 MB / 442.7 MB Notification: Performance of pre-optimization done (n=289): time 1.169e-05/1.456, allocations: 0 / 0.7683 GB, free: 24.13 MB / 442.7 MB Notification: Performance of matching and sorting (n=385): time 0.1777/1.633, allocations: 53.06 MB / 0.8201 GB, free: 8.707 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001651/1.633, allocations: 163.1 kB / 0.8202 GB, free: 8.516 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01252/1.646, allocations: 5.115 MB / 0.8252 GB, free: 3.492 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001312/1.647, allocations: 85.7 kB / 0.8253 GB, free: 3.402 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004923/1.652, allocations: 4.031 MB / 0.8293 GB, free: 15.41 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002647/1.655, allocations: 1.412 MB / 0.8306 GB, free: 14.01 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001671/1.657, allocations: 164 kB / 0.8308 GB, free: 13.85 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001062/1.658, allocations: 0.6532 MB / 0.8314 GB, free: 13.19 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009013/1.667, allocations: 4.643 MB / 0.836 GB, free: 8.539 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2558/1.923, allocations: 8.942 MB / 0.8447 GB, free: 96.67 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0197/1.942, allocations: 14.63 MB / 0.859 GB, free: 91.24 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002382/1.943, allocations: 45.16 kB / 0.859 GB, free: 91.24 MB / 474.7 MB Notification: Performance of matching and sorting (n=1075) (initialization): time 0.04308/1.986, allocations: 19.35 MB / 0.8779 GB, free: 90.08 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003312/1.986, allocations: 68.53 kB / 0.878 GB, free: 90.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003938/1.987, allocations: 156.9 kB / 0.8781 GB, free: 90.08 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0202/2.007, allocations: 6.573 MB / 0.8845 GB, free: 90.01 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007768/2.015, allocations: 1.808 MB / 0.8863 GB, free: 89.87 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05706/2.072, allocations: 35.71 MB / 0.9212 GB, free: 75.89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009437/2.081, allocations: 0.5882 MB / 0.9218 GB, free: 75.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00234/2.084, allocations: 0.4978 MB / 0.9222 GB, free: 75.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 680 * Number of states: 0 () * Number of discrete variables: 59 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled,shape.color[3],shape.color[2],shape.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],wheelSet.wheelSetJoint.revolute2.cylinderColor[3],wheelSet.wheelSetJoint.revolute2.cylinderColor[2],wheelSet.wheelSetJoint.revolute2.cylinderColor[1],wheelSet.wheelSetJoint.revolute1.cylinderColor[3],wheelSet.wheelSetJoint.revolute1.cylinderColor[2],wheelSet.wheelSetJoint.revolute1.cylinderColor[1],wheelSet.wheelSetJoint.rod2.color[3],wheelSet.wheelSetJoint.rod2.color[2],wheelSet.wheelSetJoint.rod2.color[1],wheelSet.wheelSetJoint.revolute.cylinderColor[3],wheelSet.wheelSetJoint.revolute.cylinderColor[2],wheelSet.wheelSetJoint.revolute.cylinderColor[1],wheelSet.wheelSetJoint.prismatic2.boxColor[3],wheelSet.wheelSetJoint.prismatic2.boxColor[2],wheelSet.wheelSetJoint.prismatic2.boxColor[1],wheelSet.wheelSetJoint.prismatic1.boxColor[3],wheelSet.wheelSetJoint.prismatic1.boxColor[2],wheelSet.wheelSetJoint.prismatic1.boxColor[1],wheelSet.wheelSetJoint.rod1.color[3],wheelSet.wheelSetJoint.rod1.color[2],wheelSet.wheelSetJoint.rod1.color[1],wheelSet.wheelSetJoint.fixed.color[3],wheelSet.wheelSetJoint.fixed.color[2],wheelSet.wheelSetJoint.fixed.color[1],wheelSet.body1.sphereColor[3],wheelSet.body1.sphereColor[2],wheelSet.body1.sphereColor[1],wheelSet.body2.sphereColor[3],wheelSet.body2.sphereColor[2],wheelSet.body2.sphereColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],force.color[3],force.color[2],force.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (913): * Single equations (assignments): 905 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,75.5%) 105,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008177/2.092, allocations: 3.005 MB / 0.9252 GB, free: 74.33 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001723/2.094, allocations: 499.7 kB / 0.9257 GB, free: 74.33 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03067/2.124, allocations: 14.03 MB / 0.9394 GB, free: 65.43 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.167e-05/2.124, allocations: 40 kB / 0.9394 GB, free: 65.39 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.201e-05/2.124, allocations: 35.75 kB / 0.9394 GB, free: 65.36 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.606e-05/2.125, allocations: 17.34 kB / 0.9394 GB, free: 65.36 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06566/2.19, allocations: 26.51 MB / 0.9653 GB, free: 44.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-05/2.19, allocations: 7.188 kB / 0.9653 GB, free: 44.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004227/2.195, allocations: 0.5328 MB / 0.9659 GB, free: 43.97 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02933/2.224, allocations: 6.416 MB / 0.9721 GB, free: 39.46 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001533/2.226, allocations: 75.98 kB / 0.9722 GB, free: 39.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07801/2.304, allocations: 34.39 MB / 1.006 GB, free: 4.789 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-05/2.304, allocations: 4.031 kB / 1.006 GB, free: 4.785 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3557/2.659, allocations: 20.02 MB / 1.025 GB, free: 105.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002619/2.662, allocations: 0.5821 MB / 1.026 GB, free: 105.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002704/2.665, allocations: 69.19 kB / 1.026 GB, free: 105.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005787/2.671, allocations: 346.6 kB / 1.026 GB, free: 105.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002065/2.673, allocations: 283.5 kB / 1.027 GB, free: 105.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007833/2.674, allocations: 101.3 kB / 1.027 GB, free: 105.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008588/2.682, allocations: 3.269 MB / 1.03 GB, free: 105.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.432e-06/2.682, allocations: 0 / 1.03 GB, free: 105.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01454/2.697, allocations: 1.931 MB / 1.032 GB, free: 105.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (wheelSet.x,wheelSet.y,wheelSet.phi,wheelSet.theta1,wheelSet.theta2,wheelSet.der_theta1,wheelSet.der_theta2) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 228 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(10,63.0%) 99,(1,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00275/2.7, allocations: 0.5217 MB / 1.032 GB, free: 105.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02394/2.724, allocations: 12.19 MB / 1.044 GB, free: 104.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/2.724, allocations: 0 / 1.044 GB, free: 104.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01181/2.735, allocations: 5.886 MB / 1.05 GB, free: 104 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008927/2.744, allocations: 0.6498 MB / 1.051 GB, free: 104 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04831/2.793, allocations: 20.21 MB / 1.07 GB, free: 98 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009819/2.803, allocations: 4.569 MB / 1.075 GB, free: 97.16 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002211/2.805, allocations: 425.7 kB / 1.075 GB, free: 97.15 MB / 490.7 MB Notification: Performance of SimCode: time 1.031e-06/2.805, allocations: 0 / 1.075 GB, free: 97.15 MB / 490.7 MB Notification: Performance of Templates: time 0.539/3.344, allocations: 235.1 MB / 1.305 GB, free: 46.33 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/RollingWheelSetPulling/RollingWheelSetPulling.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches