Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002029/0.002035, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.037/2.037, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001077/0.001076, allocations: 83.53 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.839e-05/2.837e-05, allocations: 4 kB / 314.9 MB, free: 9.031 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.327, allocations: 47.57 MB / 362.4 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1661/0.4931, allocations: 102.5 MB / 465 MB, free: 15.71 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003331/0.4935, allocations: 88.8 kB / 465.1 MB, free: 15.62 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7348/1.228, allocations: 118.9 MB / 0.5703 GB, free: 72.3 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.264e-06/1.228, allocations: 0 / 0.5703 GB, free: 72.3 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003913/1.229, allocations: 120 kB / 0.5704 GB, free: 72.18 MB / 395.1 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.02542/1.254, allocations: 6.265 MB / 0.5765 GB, free: 65.86 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/1.254, allocations: 8.031 kB / 0.5765 GB, free: 65.85 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02136/1.276, allocations: 2.769 MB / 0.5792 GB, free: 63.07 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02451/1.3, allocations: 7.718 MB / 0.5868 GB, free: 55.36 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000303/1.301, allocations: 192 kB / 0.587 GB, free: 55.17 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002896/1.303, allocations: 363.8 kB / 0.5873 GB, free: 54.82 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02316/1.327, allocations: 9.851 MB / 0.5969 GB, free: 44.96 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03187/1.359, allocations: 13.63 MB / 0.6102 GB, free: 30.13 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000365/1.359, allocations: 83.23 kB / 0.6103 GB, free: 30.05 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001755/1.361, allocations: 36 kB / 0.6103 GB, free: 30.02 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003162/1.364, allocations: 1.468 MB / 0.6118 GB, free: 28.55 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4733/1.837, allocations: 66.81 MB / 0.677 GB, free: 51.12 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02018/1.857, allocations: 6.475 MB / 0.6833 GB, free: 50.45 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01482/1.872, allocations: 4.888 MB / 0.6881 GB, free: 50.41 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003311/1.876, allocations: 1.286 MB / 0.6894 GB, free: 49.28 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01734/1.893, allocations: 4.837 MB / 0.6941 GB, free: 49.14 MB / 411.1 MB Notification: Performance of pre-optimization done (n=300): time 1.378e-05/1.893, allocations: 0.5 kB / 0.6941 GB, free: 49.14 MB / 411.1 MB Notification: Performance of matching and sorting (n=388): time 0.2092/2.102, allocations: 37.42 MB / 0.7306 GB, free: 37.86 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.661e-05/2.102, allocations: 163.1 kB / 0.7308 GB, free: 37.66 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009108/2.112, allocations: 3.933 MB / 0.7346 GB, free: 34.29 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001251/2.113, allocations: 29.7 kB / 0.7347 GB, free: 34.25 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004193/2.117, allocations: 4 MB / 0.7386 GB, free: 30.65 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00261/2.12, allocations: 1.369 MB / 0.7399 GB, free: 29.41 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00165/2.121, allocations: 0 / 0.7399 GB, free: 29.41 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0006928/2.122, allocations: 0.6736 MB / 0.7406 GB, free: 28.82 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01032/2.132, allocations: 4.369 MB / 0.7448 GB, free: 24.9 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01326/2.146, allocations: 8.737 MB / 0.7534 GB, free: 14.77 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01383/2.16, allocations: 6.15 MB / 0.7594 GB, free: 9.754 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001832/2.16, allocations: 44 kB / 0.7594 GB, free: 9.711 MB / 411.1 MB Notification: Performance of matching and sorting (n=1100) (initialization): time 0.0733/2.233, allocations: 18.43 MB / 0.7774 GB, free: 12.5 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001729/2.233, allocations: 72 kB / 0.7775 GB, free: 12.43 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003304/2.234, allocations: 156.7 kB / 0.7776 GB, free: 12.28 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03619/2.27, allocations: 6.536 MB / 0.784 GB, free: 7.656 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01299/2.283, allocations: 1.848 MB / 0.7858 GB, free: 5.941 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1383/2.421, allocations: 33.71 MB / 0.8187 GB, free: 4.02 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01656/2.438, allocations: 443.1 kB / 0.8192 GB, free: 3.586 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004107/2.442, allocations: 0.5038 MB / 0.8196 GB, free: 3.082 MB / 459.1 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.006654/2.449, allocations: 0.5061 MB / 0.8201 GB, free: 2.57 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3719/2.821, allocations: 13.25 MB / 0.8331 GB, free: 119.8 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002286/2.823, allocations: 465.8 kB / 0.8335 GB, free: 119.8 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05297/2.876, allocations: 13.42 MB / 0.8466 GB, free: 119.5 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.531e-05/2.876, allocations: 42.5 kB / 0.8467 GB, free: 119.5 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.679e-05/2.876, allocations: 29.25 kB / 0.8467 GB, free: 119.5 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.338e-05/2.876, allocations: 23.64 kB / 0.8467 GB, free: 119.4 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0864/2.963, allocations: 25.14 MB / 0.8713 GB, free: 115 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.824e-05/2.963, allocations: 2.938 kB / 0.8713 GB, free: 115 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004939/2.968, allocations: 0.5368 MB / 0.8718 GB, free: 115 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03329/3.001, allocations: 6.236 MB / 0.8779 GB, free: 113.7 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00138/3.003, allocations: 19.36 kB / 0.8779 GB, free: 113.7 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08122/3.084, allocations: 32.44 MB / 0.9096 GB, free: 92.22 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.969e-06/3.084, allocations: 4 kB / 0.9096 GB, free: 92.22 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0595/3.143, allocations: 19.7 MB / 0.9288 GB, free: 73.89 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005365/3.149, allocations: 1.316 MB / 0.9301 GB, free: 72.56 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002545/3.151, allocations: 13.03 kB / 0.9301 GB, free: 72.55 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006924/3.158, allocations: 288.5 kB / 0.9304 GB, free: 72.27 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002199/3.161, allocations: 278 kB / 0.9307 GB, free: 72 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009027/3.162, allocations: 100.8 kB / 0.9308 GB, free: 71.9 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.006732/3.168, allocations: 2.651 MB / 0.9334 GB, free: 69.25 MB / 459.1 MB Notification: Performance of sort global known variables: time 7.52e-07/3.168, allocations: 0 / 0.9334 GB, free: 69.25 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.013/3.181, allocations: 1.668 MB / 0.935 GB, free: 67.6 MB / 459.1 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.07103/3.252, allocations: 21.31 MB / 0.9558 GB, free: 46.34 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.03734/3.29, allocations: 11.5 MB / 0.967 GB, free: 34.79 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-05/3.29, allocations: 5.25 kB / 0.967 GB, free: 34.79 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.02027/3.31, allocations: 5.496 MB / 0.9724 GB, free: 29.21 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006881/3.317, allocations: 486 kB / 0.9729 GB, free: 28.75 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3732/3.69, allocations: 16.86 MB / 0.9893 GB, free: 115.8 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01008/3.701, allocations: 4.703 MB / 0.9939 GB, free: 115 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007292/3.708, allocations: 2.833 MB / 0.9967 GB, free: 115 MB / 459.1 MB Notification: Performance of SimCode: time 1.613e-06/3.708, allocations: 0 / 0.9967 GB, free: 115 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.014/9.722, allocations: 254.7 MB / 1.245 GB, free: 60.53 MB / 459.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetPulling_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetPulling.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling_res.mat does not exist to compare? outputFormat=mat