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.001568/0.001567, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.094/2.094, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001159/0.001159, allocations: 96.22 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000402/0.000402, allocations: 8 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3569, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1726/0.5295, allocations: 103.3 MB / 477.9 MB, free: 9.434 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003445/0.5299, allocations: 95.95 kB / 478 MB, free: 9.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7697/1.3, allocations: 121.4 MB / 0.5854 GB, free: 30.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.136e-06/1.3, allocations: 0 / 0.5854 GB, free: 30.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004555/1.3, allocations: 128 kB / 0.5855 GB, free: 30 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.02952/1.33, allocations: 6.66 MB / 0.592 GB, free: 23.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/1.33, allocations: 8.031 kB / 0.592 GB, free: 23.25 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004881/1.335, allocations: 1.038 MB / 0.593 GB, free: 22.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02207/1.357, allocations: 2.769 MB / 0.5957 GB, free: 19.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02632/1.383, allocations: 7.754 MB / 0.6033 GB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005748/1.384, allocations: 456 kB / 0.6037 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003512/1.387, allocations: 0.6012 MB / 0.6043 GB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05257/1.44, allocations: 15.72 MB / 0.6197 GB, free: 9.617 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006392/1.441, allocations: 79.25 kB / 0.6197 GB, free: 9.539 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003548/1.444, allocations: 291.8 kB / 0.62 GB, free: 9.254 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004268/1.449, allocations: 1.466 MB / 0.6215 GB, free: 7.781 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04939/1.498, allocations: 13.63 MB / 0.6348 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4441/1.942, allocations: 68.96 MB / 0.7021 GB, free: 28 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0365/1.979, allocations: 7.696 MB / 0.7096 GB, free: 27.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03528/2.014, allocations: 14.42 MB / 0.7237 GB, free: 22.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03061/2.045, allocations: 5.659 MB / 0.7292 GB, free: 21.12 MB / 410.7 MB Notification: Performance of pre-optimization done (n=295): time 1.308e-05/2.045, allocations: 0 / 0.7292 GB, free: 21.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=387): time 0.3455/2.39, allocations: 53.96 MB / 0.7819 GB, free: 6.777 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001934/2.391, allocations: 251.3 kB / 0.7822 GB, free: 6.488 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01403/2.405, allocations: 4.6 MB / 0.7867 GB, free: 2.074 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001285/2.406, allocations: 89.7 kB / 0.7867 GB, free: 1.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005744/2.412, allocations: 3.887 MB / 0.7905 GB, free: 14.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003228/2.415, allocations: 1.415 MB / 0.7919 GB, free: 12.74 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002035/2.417, allocations: 160 kB / 0.7921 GB, free: 12.59 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001045/2.418, allocations: 0.658 MB / 0.7927 GB, free: 11.92 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0143/2.433, allocations: 4.592 MB / 0.7972 GB, free: 7.316 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01941/2.452, allocations: 8.873 MB / 0.8059 GB, free: 12.39 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01819/2.47, allocations: 6.313 MB / 0.812 GB, free: 6.191 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001592/2.47, allocations: 40 kB / 0.8121 GB, free: 6.152 MB / 458.7 MB Notification: Performance of matching and sorting (n=1074) (initialization): time 0.4078/2.878, allocations: 19.07 MB / 0.8307 GB, free: 104.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/2.878, allocations: 66.69 kB / 0.8308 GB, free: 104.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002255/2.879, allocations: 153 kB / 0.8309 GB, free: 104.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03408/2.913, allocations: 6.78 MB / 0.8375 GB, free: 104.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01203/2.925, allocations: 1.808 MB / 0.8393 GB, free: 104.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09004/3.015, allocations: 36.98 MB / 0.8754 GB, free: 96.53 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01118/3.026, allocations: 0.5947 MB / 0.876 GB, free: 96.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002361/3.029, allocations: 0.498 MB / 0.8765 GB, free: 96.33 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.009134/3.038, allocations: 3.007 MB / 0.8794 GB, free: 95.11 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001535/3.039, allocations: 0.4918 MB / 0.8799 GB, free: 95.11 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04937/3.089, allocations: 13.94 MB / 0.8935 GB, free: 90.42 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.192e-05/3.089, allocations: 40.12 kB / 0.8935 GB, free: 90.42 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.034e-05/3.089, allocations: 26.47 kB / 0.8936 GB, free: 90.42 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-05/3.089, allocations: 19.55 kB / 0.8936 GB, free: 90.42 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08213/3.171, allocations: 26.65 MB / 0.9196 GB, free: 70.42 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.784e-05/3.171, allocations: 4 kB / 0.9196 GB, free: 70.42 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004718/3.176, allocations: 0.5345 MB / 0.9201 GB, free: 70.01 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.032/3.208, allocations: 6.411 MB / 0.9264 GB, free: 64.77 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001027/3.209, allocations: 71.98 kB / 0.9265 GB, free: 64.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07864/3.288, allocations: 35.85 MB / 0.9615 GB, free: 28.64 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/3.288, allocations: 10.88 kB / 0.9615 GB, free: 28.63 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3906/3.679, allocations: 20.45 MB / 0.9815 GB, free: 98.53 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005879/3.684, allocations: 1.384 MB / 0.9828 GB, free: 98.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002584/3.687, allocations: 67.91 kB / 0.9829 GB, free: 98.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006958/3.694, allocations: 351 kB / 0.9832 GB, free: 98.43 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002171/3.696, allocations: 272.7 kB / 0.9835 GB, free: 98.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007544/3.697, allocations: 100.4 kB / 0.9836 GB, free: 98.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008923/3.706, allocations: 3.305 MB / 0.9868 GB, free: 98.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.82e-07/3.706, allocations: 0 / 0.9868 GB, free: 98.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01195/3.718, allocations: 1.913 MB / 0.9887 GB, free: 98.25 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.06548/3.784, allocations: 22.15 MB / 1.01 GB, free: 95.78 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03176/3.815, allocations: 12.19 MB / 1.022 GB, free: 95.03 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/3.815, allocations: 6.094 kB / 1.022 GB, free: 95.03 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01637/3.832, allocations: 5.846 MB / 1.028 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.005865/3.838, allocations: 0.6022 MB / 1.029 GB, free: 93.47 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5359/4.374, allocations: 168.7 MB / 1.193 GB, free: 114.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01088/4.385, allocations: 4.709 MB / 1.198 GB, free: 113.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00769/4.392, allocations: 2.868 MB / 1.201 GB, free: 113.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.854e-06/4.392, allocations: 0.6562 kB / 1.201 GB, free: 113.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.856/10.25, allocations: 258.8 MB / 1.453 GB, free: 47.75 MB / 490.7 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