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.004677/0.004677, allocations: 169.5 kB / 15.11 MB, free: 5.973 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.217/1.217, allocations: 223.2 MB / 239 MB, free: 1.805 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008746/0.0008746, allocations: 100.1 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03931/0.03931, allocations: 8.939 MB / 350.2 MB, free: 2.074 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003078/0.0003079, allocations: 7.594 kB / 413.2 MB, free: 88.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07467/0.07499, allocations: 52.39 MB / 465.6 MB, free: 41.61 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2556/0.3307, allocations: 91.39 MB / 0.5439 GB, free: 16.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001768/0.3309, allocations: 84.91 kB / 0.544 GB, free: 16.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2584/0.5893, allocations: 113.7 MB / 0.655 GB, free: 10.53 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.5893, allocations: 4 kB / 0.655 GB, free: 10.52 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000159/0.5895, allocations: 100 kB / 0.6551 GB, free: 10.43 MB / 426.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.04467/0.6341, allocations: 7.952 MB / 0.6629 GB, free: 2.387 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.6342, allocations: 8.031 kB / 0.6629 GB, free: 2.379 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003647/0.6379, allocations: 1.003 MB / 0.6639 GB, free: 1.367 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009629/0.6475, allocations: 2.25 MB / 0.6661 GB, free: 15.11 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007142/0.6547, allocations: 2.869 MB / 0.6689 GB, free: 12.17 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002894/0.655, allocations: 402.3 kB / 0.6693 GB, free: 11.78 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001562/0.6565, allocations: 0.5232 MB / 0.6698 GB, free: 11.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03468/0.6912, allocations: 14.94 MB / 0.6843 GB, free: 11.45 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001695/0.6914, allocations: 63.44 kB / 0.6844 GB, free: 11.39 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008191/0.6923, allocations: 247.8 kB / 0.6846 GB, free: 11.15 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002631/0.6949, allocations: 1.63 MB / 0.6862 GB, free: 9.516 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2175/0.9124, allocations: 16.07 MB / 0.7019 GB, free: 81.22 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06563/0.9781, allocations: 53 MB / 0.7537 GB, free: 57.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03193/1.01, allocations: 7.435 MB / 0.7609 GB, free: 56.36 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02353/1.034, allocations: 20.33 MB / 0.7808 GB, free: 42.63 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009318/1.043, allocations: 3.706 MB / 0.7844 GB, free: 41.59 MB / 458.7 MB Notification: Performance of pre-optimization done (n=421): time 8.266e-06/1.043, allocations: 0 / 0.7844 GB, free: 41.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=496): time 0.06101/1.104, allocations: 42.54 MB / 0.826 GB, free: 14.69 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001719/1.104, allocations: 0.8241 MB / 0.8268 GB, free: 13.69 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005126/1.109, allocations: 3.806 MB / 0.8305 GB, free: 10.51 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006902/1.11, allocations: 109.6 kB / 0.8306 GB, free: 10.4 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002406/1.113, allocations: 3.524 MB / 0.834 GB, free: 7.234 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001789/1.114, allocations: 1.775 MB / 0.8358 GB, free: 5.652 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004087/1.115, allocations: 176 kB / 0.8359 GB, free: 5.48 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003759/1.115, allocations: 0.6696 MB / 0.8366 GB, free: 4.906 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003933/1.119, allocations: 2.905 MB / 0.8394 GB, free: 2.465 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00684/1.126, allocations: 6.995 MB / 0.8463 GB, free: 10.26 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007768/1.134, allocations: 4.546 MB / 0.8507 GB, free: 6.367 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001103/1.134, allocations: 40 kB / 0.8507 GB, free: 6.328 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.02069/1.155, allocations: 10.85 MB / 0.8613 GB, free: 12.75 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001357/1.155, allocations: 89.7 kB / 0.8614 GB, free: 12.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001957/1.155, allocations: 140 kB / 0.8616 GB, free: 12.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002204/1.157, allocations: 0.9559 MB / 0.8625 GB, free: 11.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007171/1.164, allocations: 1.97 MB / 0.8644 GB, free: 10.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01073/1.175, allocations: 7.735 MB / 0.872 GB, free: 3.102 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006514/1.182, allocations: 472.5 kB / 0.8724 GB, free: 2.703 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002013/1.184, allocations: 485.8 kB / 0.8729 GB, free: 2.25 MB / 490.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 () * Number of clocked 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.006657/1.19, allocations: 2.518 MB / 0.8753 GB, free: 0 / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2094/1.4, allocations: 486.3 kB / 0.8758 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009431/1.409, allocations: 5.67 MB / 0.8813 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001557/1.409, allocations: 69.5 kB / 0.8814 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-05/1.409, allocations: 19.34 kB / 0.8814 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.075e-05/1.41, allocations: 28.5 kB / 0.8814 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02634/1.436, allocations: 18.36 MB / 0.8994 GB, free: 104.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.043e-05/1.436, allocations: 12.77 kB / 0.8994 GB, free: 104.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003112/1.439, allocations: 0.7646 MB / 0.9001 GB, free: 104.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00188/1.441, allocations: 0.7568 MB / 0.9009 GB, free: 104.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004539/1.441, allocations: 98.45 kB / 0.901 GB, free: 104.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008784/1.45, allocations: 6.879 MB / 0.9077 GB, free: 103 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.277e-05/1.45, allocations: 12.83 kB / 0.9077 GB, free: 103 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01365/1.464, allocations: 10.56 MB / 0.918 GB, free: 100.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001384/1.465, allocations: 0.5389 MB / 0.9185 GB, free: 100.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006639/1.466, allocations: 99.66 kB / 0.9186 GB, free: 100.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002044/1.468, allocations: 212.5 kB / 0.9188 GB, free: 100.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005503/1.469, allocations: 316.7 kB / 0.9191 GB, free: 100.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002655/1.469, allocations: 132.6 kB / 0.9193 GB, free: 100.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004332/1.473, allocations: 2.65 MB / 0.9219 GB, free: 100.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.01e-07/1.473, allocations: 3.656 kB / 0.9219 GB, free: 100.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006245/1.48, allocations: 1.516 MB / 0.9233 GB, free: 100.4 MB / 490.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) * Number of clocked states: 0 () * 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.01251/1.492, allocations: 13.21 MB / 0.9362 GB, free: 93.57 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01046/1.503, allocations: 7.992 MB / 0.944 GB, free: 90.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/1.503, allocations: 1.875 kB / 0.944 GB, free: 90.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004254/1.507, allocations: 3.503 MB / 0.9475 GB, free: 89.29 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/1.51, allocations: 0.5934 MB / 0.948 GB, free: 89.05 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2705/1.78, allocations: 142.9 MB / 1.088 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004009/1.784, allocations: 4.135 MB / 1.092 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005819/1.79, allocations: 2.354 MB / 1.094 GB, free: 119 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002777/1.793, allocations: 2.594 MB / 1.096 GB, free: 119 MB / 0.5105 GB Notification: Performance of SimCode: time 8.92e-07/1.793, allocations: 0 / 1.096 GB, free: 119 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1236/1.916, allocations: 108 MB / 1.202 GB, free: 54.31 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001423/1.917, allocations: 218.2 kB / 1.202 GB, free: 54.08 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.696/6.613, allocations: 0 / 1.202 GB, free: 54.08 MB / 0.5105 GB (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)