Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetPulling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetPulling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001349/0.001348, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.822/1.822, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008552/0.0008552, allocations: 79.95 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.688e-05/1.688e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1083, allocations: 47.59 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4323/0.5407, allocations: 102.8 MB / 465.9 MB, free: 8.898 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/0.541, allocations: 84.08 kB / 466 MB, free: 8.855 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6323/1.173, allocations: 118.9 MB / 0.5712 GB, free: 88.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.733e-06/1.173, allocations: 0 / 0.5712 GB, free: 88.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004696/1.174, allocations: 128.8 kB / 0.5714 GB, free: 88.97 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2051 * Number of variables: 2051 Notification: Performance of Generate backend data structure: time 0.02693/1.201, allocations: 6.254 MB / 0.5775 GB, free: 86.65 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.615e-05/1.201, allocations: 9.906 kB / 0.5775 GB, free: 86.65 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01424/1.215, allocations: 2.773 MB / 0.5802 GB, free: 86.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01958/1.235, allocations: 7.714 MB / 0.5877 GB, free: 84.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003889/1.235, allocations: 193.9 kB / 0.5879 GB, free: 84.01 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003765/1.239, allocations: 361.5 kB / 0.5882 GB, free: 84 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02033/1.259, allocations: 9.845 MB / 0.5979 GB, free: 80.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03494/1.294, allocations: 13.63 MB / 0.6112 GB, free: 69.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007166/1.295, allocations: 86.53 kB / 0.6113 GB, free: 69.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003991/1.299, allocations: 36 kB / 0.6113 GB, free: 69 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002608/1.302, allocations: 1.461 MB / 0.6127 GB, free: 67.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08528/1.387, allocations: 66.83 MB / 0.678 GB, free: 1.641 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01015/1.397, allocations: 6.476 MB / 0.6843 GB, free: 11.04 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008341/1.406, allocations: 4.882 MB / 0.6891 GB, free: 6.141 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001832/1.408, allocations: 1.287 MB / 0.6903 GB, free: 4.648 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3517/1.759, allocations: 4.832 MB / 0.6951 GB, free: 96.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=300): time 1.46e-05/1.759, allocations: 1.078 kB / 0.6951 GB, free: 96.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=388): time 0.105/1.864, allocations: 37.42 MB / 0.7316 GB, free: 92.48 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/1.865, allocations: 171.6 kB / 0.7318 GB, free: 92.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008659/1.873, allocations: 3.933 MB / 0.7356 GB, free: 90.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001617/1.875, allocations: 33.27 kB / 0.7356 GB, free: 90.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004827/1.88, allocations: 4.085 MB / 0.7396 GB, free: 87.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003247/1.883, allocations: 1.375 MB / 0.741 GB, free: 86.81 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001568/1.885, allocations: 3.375 kB / 0.741 GB, free: 86.81 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006256/1.885, allocations: 0.6563 MB / 0.7416 GB, free: 86.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00717/1.892, allocations: 4.367 MB / 0.7459 GB, free: 84.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01096/1.903, allocations: 8.75 MB / 0.7544 GB, free: 77.06 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01097/1.915, allocations: 6.141 MB / 0.7604 GB, free: 74.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002966/1.915, allocations: 48.53 kB / 0.7605 GB, free: 74.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=1100) (initialization): time 0.0438/1.959, allocations: 18.11 MB / 0.7781 GB, free: 64.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002755/1.959, allocations: 68 kB / 0.7782 GB, free: 64.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004296/1.959, allocations: 158.1 kB / 0.7784 GB, free: 64.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01916/1.979, allocations: 6.535 MB / 0.7847 GB, free: 59.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007749/1.986, allocations: 1.848 MB / 0.7865 GB, free: 58.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05246/2.039, allocations: 33.7 MB / 0.8195 GB, free: 28.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009662/2.049, allocations: 447 kB / 0.8199 GB, free: 28.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003218/2.052, allocations: 0.5066 MB / 0.8204 GB, free: 27.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 702 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (938): * Single equations (assignments): 930 * 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 {(8,71.9%) 104,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005129/2.057, allocations: 0.5116 MB / 0.8209 GB, free: 27.29 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0335/2.091, allocations: 13.26 MB / 0.8338 GB, free: 13.97 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002907/2.094, allocations: 462.1 kB / 0.8343 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03528/2.129, allocations: 13.43 MB / 0.8474 GB, free: 24 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001546/2.129, allocations: 40.05 kB / 0.8474 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001005/2.129, allocations: 28 kB / 0.8475 GB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001595/2.13, allocations: 15.89 kB / 0.8475 GB, free: 15.94 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4353/2.565, allocations: 25.13 MB / 0.872 GB, free: 98.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.912e-05/2.565, allocations: 3.812 kB / 0.872 GB, free: 98.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002934/2.568, allocations: 0.5297 MB / 0.8725 GB, free: 98.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01891/2.587, allocations: 6.24 MB / 0.8786 GB, free: 98.82 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001672/2.589, allocations: 21.67 kB / 0.8786 GB, free: 98.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05558/2.644, allocations: 32.44 MB / 0.9103 GB, free: 85.19 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.116e-05/2.644, allocations: 6.531 kB / 0.9103 GB, free: 85.19 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03711/2.681, allocations: 19.7 MB / 0.9296 GB, free: 77.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005263/2.687, allocations: 1.315 MB / 0.9309 GB, free: 77.36 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002372/2.689, allocations: 3.906 kB / 0.9309 GB, free: 77.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005285/2.694, allocations: 292.8 kB / 0.9311 GB, free: 77.32 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002151/2.697, allocations: 278.8 kB / 0.9314 GB, free: 77.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006888/2.697, allocations: 102.7 kB / 0.9315 GB, free: 77.06 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006528/2.704, allocations: 2.651 MB / 0.9341 GB, free: 74.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.51e-07/2.704, allocations: 3.219 kB / 0.9341 GB, free: 74.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0144/2.718, allocations: 1.664 MB / 0.9357 GB, free: 73.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 231 * 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 {(8,71.9%) 101,(1,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03915/2.758, allocations: 21.32 MB / 0.9565 GB, free: 55.31 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02199/2.78, allocations: 11.5 MB / 0.9678 GB, free: 44.98 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/2.78, allocations: 0 / 0.9678 GB, free: 44.98 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0117/2.791, allocations: 5.491 MB / 0.9731 GB, free: 39.97 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005435/2.797, allocations: 484.4 kB / 0.9736 GB, free: 39.57 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05731/2.854, allocations: 16.13 MB / 0.9893 GB, free: 23.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01101/2.865, allocations: 4.705 MB / 0.9939 GB, free: 19.07 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00808/2.873, allocations: 2.558 MB / 0.9964 GB, free: 16.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005995/2.879, allocations: 2.764 MB / 0.9991 GB, free: 13.75 MB / 442.7 MB Notification: Performance of SimCode: time 2.054e-06/2.88, allocations: 0 / 0.9991 GB, free: 13.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5185/3.398, allocations: 141.1 MB / 1.137 GB, free: 20.92 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/3.398, allocations: 193.9 kB / 1.137 GB, free: 20.72 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.204/9.602, allocations: 0 / 1.137 GB, free: 20.72 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetPulling_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetPulling.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling_res.mat does not exist to compare? outputFormat=mat