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.001211/0.001211, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.253/1.253, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008422/0.0008422, allocations: 94.64 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002486/0.0002486, allocations: 7.984 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2037, allocations: 47.58 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1089/0.3127, allocations: 103.3 MB / 479.2 MB, free: 9.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.313, allocations: 91.94 kB / 479.3 MB, free: 9.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4013/0.7143, allocations: 121.4 MB / 0.5866 GB, free: 29.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.7143, allocations: 0 / 0.5866 GB, free: 29.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003109/0.7146, allocations: 123.9 kB / 0.5867 GB, free: 29.82 MB / 378.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.01765/0.7323, allocations: 6.664 MB / 0.5932 GB, free: 23.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.7324, allocations: 12.03 kB / 0.5933 GB, free: 23.07 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00365/0.736, allocations: 1.034 MB / 0.5943 GB, free: 22.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0114/0.7474, allocations: 2.761 MB / 0.597 GB, free: 19.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01514/0.7626, allocations: 7.766 MB / 0.6046 GB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003421/0.763, allocations: 456 kB / 0.605 GB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002333/0.7653, allocations: 0.5973 MB / 0.6056 GB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02837/0.7937, allocations: 15.73 MB / 0.6209 GB, free: 9.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001969/0.7939, allocations: 79.25 kB / 0.621 GB, free: 9.352 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008218/0.7948, allocations: 283.9 kB / 0.6213 GB, free: 9.074 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001966/0.7968, allocations: 1.466 MB / 0.6227 GB, free: 7.602 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0244/0.8212, allocations: 13.63 MB / 0.636 GB, free: 9.965 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2284/1.05, allocations: 68.96 MB / 0.7034 GB, free: 28.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01799/1.068, allocations: 7.689 MB / 0.7109 GB, free: 27.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0154/1.083, allocations: 14.41 MB / 0.7249 GB, free: 22.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01422/1.097, allocations: 5.664 MB / 0.7305 GB, free: 21.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=295): time 4.879e-06/1.097, allocations: 0 / 0.7305 GB, free: 21.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=387): time 0.1492/1.247, allocations: 53.97 MB / 0.7832 GB, free: 6.645 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/1.247, allocations: 247.4 kB / 0.7834 GB, free: 6.355 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00812/1.255, allocations: 4.61 MB / 0.7879 GB, free: 1.844 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001162/1.256, allocations: 85.7 kB / 0.788 GB, free: 1.754 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004263/1.26, allocations: 4.024 MB / 0.7919 GB, free: 13.77 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002326/1.263, allocations: 1.413 MB / 0.7933 GB, free: 12.37 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009345/1.264, allocations: 164 kB / 0.7935 GB, free: 12.21 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005438/1.264, allocations: 0.6571 MB / 0.7941 GB, free: 11.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007115/1.271, allocations: 4.592 MB / 0.7986 GB, free: 6.941 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009992/1.281, allocations: 8.871 MB / 0.8073 GB, free: 12.02 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009875/1.291, allocations: 6.319 MB / 0.8134 GB, free: 5.816 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001046/1.292, allocations: 40 kB / 0.8135 GB, free: 5.777 MB / 458.7 MB Notification: Performance of matching and sorting (n=1074) (initialization): time 0.2305/1.522, allocations: 19.24 MB / 0.8323 GB, free: 105.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.497e-05/1.522, allocations: 70.91 kB / 0.8323 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001334/1.522, allocations: 151.4 kB / 0.8325 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01704/1.539, allocations: 6.788 MB / 0.8391 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006288/1.546, allocations: 1.8 MB / 0.8409 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04395/1.59, allocations: 36.98 MB / 0.877 GB, free: 96.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006382/1.596, allocations: 0.5965 MB / 0.8776 GB, free: 96.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009676/1.597, allocations: 499.6 kB / 0.878 GB, free: 96.54 MB / 458.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 (912): * Single equations (assignments): 904 * 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 {(10,63.0%) 102,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004276/1.601, allocations: 3.011 MB / 0.881 GB, free: 95.31 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007926/1.602, allocations: 0.4899 MB / 0.8814 GB, free: 95.28 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02416/1.626, allocations: 13.94 MB / 0.8951 GB, free: 90.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.4e-05/1.626, allocations: 40.81 kB / 0.8951 GB, free: 90.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.784e-05/1.626, allocations: 25.53 kB / 0.8951 GB, free: 90.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.674e-05/1.627, allocations: 21.42 kB / 0.8951 GB, free: 90.59 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04386/1.67, allocations: 26.64 MB / 0.9212 GB, free: 69.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-05/1.671, allocations: 4 kB / 0.9212 GB, free: 69.87 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002548/1.673, allocations: 0.5349 MB / 0.9217 GB, free: 69.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01623/1.689, allocations: 6.419 MB / 0.928 GB, free: 64.18 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008698/1.69, allocations: 73.55 kB / 0.928 GB, free: 64.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03888/1.729, allocations: 35.85 MB / 0.963 GB, free: 28.05 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.729, allocations: 8.031 kB / 0.963 GB, free: 28.05 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2232/1.952, allocations: 20.44 MB / 0.983 GB, free: 98.65 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005422/1.958, allocations: 1.389 MB / 0.9844 GB, free: 98.56 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002025/1.96, allocations: 75.58 kB / 0.9844 GB, free: 98.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003964/1.964, allocations: 347.3 kB / 0.9848 GB, free: 98.56 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001103/1.965, allocations: 275.3 kB / 0.985 GB, free: 98.55 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003428/1.965, allocations: 107.2 kB / 0.9851 GB, free: 98.55 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00527/1.971, allocations: 3.296 MB / 0.9883 GB, free: 98.38 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.6e-07/1.971, allocations: 0 / 0.9883 GB, free: 98.38 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009052/1.98, allocations: 1.917 MB / 0.9902 GB, free: 98.38 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (240): * Single equations (assignments): 230 * 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.03951/2.019, allocations: 22.14 MB / 1.012 GB, free: 95.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01904/2.038, allocations: 12.21 MB / 1.024 GB, free: 95.15 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/2.038, allocations: 0 / 1.024 GB, free: 95.15 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008339/2.047, allocations: 5.837 MB / 1.029 GB, free: 93.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003634/2.05, allocations: 0.6163 MB / 1.03 GB, free: 93.46 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3217/2.372, allocations: 168 MB / 1.194 GB, free: 116.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004622/2.377, allocations: 4.704 MB / 1.199 GB, free: 115.3 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005725/2.382, allocations: 2.526 MB / 1.201 GB, free: 115.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003241/2.386, allocations: 2.804 MB / 1.204 GB, free: 115.2 MB / 490.7 MB Notification: Performance of SimCode: time 7.71e-07/2.386, allocations: 0 / 1.204 GB, free: 115.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3761/2.762, allocations: 151.7 MB / 1.352 GB, free: 133 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/2.762, allocations: 265.2 kB / 1.352 GB, free: 132.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.34/8.102, allocations: 0 / 1.352 GB, free: 132.6 MB / 490.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