Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TwoTrackWithDifferentialGear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TwoTrackWithDifferentialGear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001816/0.001816, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008244/0.0008245, allocations: 90.69 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03984/0.03984, allocations: 8.83 MB / 345.3 MB, free: 1.297 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.016e-05/3.026e-05, allocations: 8 kB / 405.7 MB, free: 61.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09438/0.09444, allocations: 52.39 MB / 458.1 MB, free: 8.949 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3767/0.4711, allocations: 91.33 MB / 0.5365 GB, free: 10.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/0.4715, allocations: 75.22 kB / 0.5366 GB, free: 10.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5767/1.048, allocations: 113.8 MB / 0.6477 GB, free: 96.07 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.074e-06/1.048, allocations: 0.9375 kB / 0.6477 GB, free: 96.07 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002677/1.048, allocations: 95.52 kB / 0.6478 GB, free: 96.07 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.05071/1.099, allocations: 7.778 MB / 0.6554 GB, free: 94.99 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/1.099, allocations: 10.19 kB / 0.6554 GB, free: 94.99 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006047/1.105, allocations: 0.998 MB / 0.6564 GB, free: 94.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01336/1.119, allocations: 2.265 MB / 0.6586 GB, free: 94.54 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009773/1.128, allocations: 2.861 MB / 0.6614 GB, free: 94.03 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007582/1.129, allocations: 400 kB / 0.6617 GB, free: 94.02 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005034/1.134, allocations: 0.5276 MB / 0.6623 GB, free: 94.01 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04853/1.183, allocations: 14.8 MB / 0.6767 GB, free: 91.66 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007197/1.184, allocations: 53.91 kB / 0.6768 GB, free: 91.66 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004173/1.188, allocations: 248.6 kB / 0.677 GB, free: 91.66 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003375/1.191, allocations: 1.626 MB / 0.6786 GB, free: 91.65 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03988/1.231, allocations: 15.83 MB / 0.694 GB, free: 91.6 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08327/1.314, allocations: 53 MB / 0.7458 GB, free: 57.32 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03223/1.347, allocations: 7.337 MB / 0.753 GB, free: 51.36 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004604/1.351, allocations: 2.836 MB / 0.7557 GB, free: 48.78 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03377/1.385, allocations: 20.33 MB / 0.7756 GB, free: 29.09 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01866/1.404, allocations: 3.645 MB / 0.7791 GB, free: 26.25 MB / 458.7 MB Notification: Performance of pre-optimization done (n=421): time 2.144e-05/1.404, allocations: 0 / 0.7791 GB, free: 26.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=496): time 0.1065/1.51, allocations: 39.34 MB / 0.8176 GB, free: 4.664 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005181/1.511, allocations: 0.8263 MB / 0.8184 GB, free: 3.652 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3339/1.845, allocations: 3.748 MB / 0.822 GB, free: 106.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001047/1.846, allocations: 101.4 kB / 0.8221 GB, free: 106.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004251/1.85, allocations: 3.525 MB / 0.8256 GB, free: 105.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002283/1.853, allocations: 1.78 MB / 0.8273 GB, free: 104.7 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006322/1.853, allocations: 175 kB / 0.8275 GB, free: 104.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000559/1.854, allocations: 0.6749 MB / 0.8281 GB, free: 104.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005522/1.859, allocations: 2.8 MB / 0.8309 GB, free: 104.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007175/1.867, allocations: 6.897 MB / 0.8376 GB, free: 99.23 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008971/1.876, allocations: 4.484 MB / 0.842 GB, free: 99.14 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001988/1.876, allocations: 40.03 kB / 0.842 GB, free: 99.14 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.02138/1.897, allocations: 10.66 MB / 0.8524 GB, free: 98.41 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001303/1.897, allocations: 94.92 kB / 0.8525 GB, free: 98.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001575/1.898, allocations: 142 kB / 0.8527 GB, free: 98.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002012/1.9, allocations: 0.9497 MB / 0.8536 GB, free: 98.33 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006685/1.906, allocations: 1.966 MB / 0.8555 GB, free: 98.17 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009162/1.915, allocations: 7.433 MB / 0.8628 GB, free: 96.59 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00729/1.923, allocations: 483.8 kB / 0.8632 GB, free: 96.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001744/1.925, allocations: 476.6 kB / 0.8637 GB, free: 96.56 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 641 * Number of states: 0 () * Number of discrete variables: 41 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rightTrail.color[3],rightTrail.color[2],rightTrail.color[1],leftTrail.color[3],leftTrail.color[2],leftTrail.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],fixedTranslation5.color[3],fixedTranslation5.color[2],fixedTranslation5.color[1],fixedTranslation4.color[3],fixedTranslation4.color[2],fixedTranslation4.color[1],fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1066): * Single equations (assignments): 1056 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(2,100.0%),(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: 1 {(4,87.5%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001611/1.926, allocations: 0.7164 MB / 0.8644 GB, free: 96.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001022/1.927, allocations: 484.2 kB / 0.8648 GB, free: 95.95 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008931/1.936, allocations: 5.554 MB / 0.8703 GB, free: 94.63 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001504/1.936, allocations: 69.08 kB / 0.8703 GB, free: 94.63 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.507e-05/1.936, allocations: 17.41 kB / 0.8703 GB, free: 94.63 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.485e-05/1.936, allocations: 33.2 kB / 0.8704 GB, free: 94.63 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.026/1.962, allocations: 18.27 MB / 0.8882 GB, free: 85.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-05/1.963, allocations: 5.969 kB / 0.8882 GB, free: 85.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003167/1.966, allocations: 0.7728 MB / 0.889 GB, free: 85.83 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001735/1.967, allocations: 0.7455 MB / 0.8897 GB, free: 85.64 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000445/1.968, allocations: 98.05 kB / 0.8898 GB, free: 85.58 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007913/1.976, allocations: 6.596 MB / 0.8962 GB, free: 82.09 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/1.976, allocations: 19.17 kB / 0.8963 GB, free: 82.09 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01325/1.989, allocations: 10.36 MB / 0.9064 GB, free: 76.95 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001824/1.991, allocations: 0.5295 MB / 0.9069 GB, free: 76.55 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006517/1.992, allocations: 99.91 kB / 0.907 GB, free: 76.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002069/1.994, allocations: 212.9 kB / 0.9072 GB, free: 76.43 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005768/1.994, allocations: 323 kB / 0.9075 GB, free: 76.36 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002441/1.995, allocations: 135.5 kB / 0.9076 GB, free: 76.33 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004159/1.999, allocations: 2.606 MB / 0.9102 GB, free: 75.18 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.633e-06/1.999, allocations: 0 / 0.9102 GB, free: 75.18 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007877/2.007, allocations: 1.524 MB / 0.9117 GB, free: 73.67 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 16 (body1.r[1],body1.r[2],body1.v[1],body1.v[2],body1.phi,body1.w,inertia.phi,inertia.w,inertia1.phi,inertia1.w,inertia2.phi,inertia2.w,inertia3.phi,inertia3.w,revolute2.phi,revolute.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (424): * Single equations (assignments): 413 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(2,100.0%),(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: 1 {(4,87.5%) 51} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01313/2.02, allocations: 13.02 MB / 0.9244 GB, free: 61.37 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01148/2.031, allocations: 7.802 MB / 0.932 GB, free: 54.08 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/2.031, allocations: 4 kB / 0.932 GB, free: 54.07 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00469/2.036, allocations: 3.429 MB / 0.9353 GB, free: 50.81 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004155/2.04, allocations: 0.5989 MB / 0.9359 GB, free: 50.31 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02945/2.07, allocations: 13.11 MB / 0.9487 GB, free: 38.76 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004272/2.074, allocations: 4.136 MB / 0.9528 GB, free: 35.64 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006157/2.08, allocations: 2.352 MB / 0.9551 GB, free: 34.14 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003797/2.084, allocations: 2.593 MB / 0.9576 GB, free: 31.75 MB / 474.7 MB Notification: Performance of SimCode: time 1.803e-06/2.084, allocations: 0 / 0.9576 GB, free: 31.75 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.445/2.529, allocations: 108.7 MB / 1.064 GB, free: 78.3 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001736/2.529, allocations: 200 kB / 1.064 GB, free: 78.07 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.796/8.325, allocations: 0 / 1.064 GB, free: 78.07 MB / 474.7 MB (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TwoTrackWithDifferentialGear_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TwoTrackWithDifferentialGear.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.pipe 2>&1)