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.001938/0.001938, allocations: 172.5 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 221.5 MB / 229.6 MB, free: 7.574 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.000933/0.0009332, allocations: 92.58 kB / 280.5 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03747/0.03747, allocations: 8.828 MB / 340.1 MB, free: 6.41 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.354e-05/2.355e-05, allocations: 1.25 kB / 398.8 MB, free: 47.64 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1047, allocations: 52.4 MB / 451.2 MB, free: 4.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3916/0.4963, allocations: 90.65 MB / 0.5291 GB, free: 29.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/0.4967, allocations: 80.84 kB / 0.5292 GB, free: 29.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2672/0.7639, allocations: 110.8 MB / 0.6374 GB, free: 14.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.764, allocations: 3.938 kB / 0.6374 GB, free: 14.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002417/0.7642, allocations: 104 kB / 0.6375 GB, free: 14.06 MB / 410.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.04906/0.8133, allocations: 7.784 MB / 0.6451 GB, free: 6.195 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.8134, allocations: 8.031 kB / 0.6451 GB, free: 6.188 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01178/0.8252, allocations: 2.246 MB / 0.6473 GB, free: 3.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009359/0.8346, allocations: 2.857 MB / 0.6501 GB, free: 1.008 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003362/0.8349, allocations: 172 kB / 0.6502 GB, free: 0.8398 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003174/0.8381, allocations: 315.8 kB / 0.6505 GB, free: 0.5312 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01828/0.8564, allocations: 9.741 MB / 0.66 GB, free: 6.781 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03193/0.8884, allocations: 13.15 MB / 0.6729 GB, free: 8.773 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003095/0.8888, allocations: 71.34 kB / 0.673 GB, free: 8.703 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002028/0.8908, allocations: 27.95 kB / 0.673 GB, free: 8.676 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00305/0.8938, allocations: 1.618 MB / 0.6746 GB, free: 7.055 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3808/1.275, allocations: 51.27 MB / 0.7246 GB, free: 65.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01686/1.292, allocations: 10.35 MB / 0.7347 GB, free: 60.65 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004523/1.296, allocations: 2.747 MB / 0.7374 GB, free: 60.62 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02136/1.318, allocations: 16.8 MB / 0.7538 GB, free: 52.32 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002748/1.32, allocations: 2.208 MB / 0.756 GB, free: 52.17 MB / 458.7 MB Notification: Performance of pre-optimization done (n=396): time 6.943e-06/1.32, allocations: 3.625 kB / 0.756 GB, free: 52.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=471): time 0.03208/1.353, allocations: 18.25 MB / 0.7738 GB, free: 47.85 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.093e-05/1.353, allocations: 210.9 kB / 0.774 GB, free: 47.65 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004678/1.357, allocations: 3.07 MB / 0.777 GB, free: 47.33 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006496/1.358, allocations: 29.27 kB / 0.777 GB, free: 47.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002787/1.361, allocations: 3.621 MB / 0.7806 GB, free: 45.39 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002549/1.363, allocations: 1.636 MB / 0.7822 GB, free: 44.37 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006395/1.364, allocations: 3.75 kB / 0.7822 GB, free: 44.37 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006097/1.365, allocations: 0.6688 MB / 0.7828 GB, free: 44.05 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003994/1.369, allocations: 2.654 MB / 0.7854 GB, free: 43.13 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005797/1.374, allocations: 6.773 MB / 0.792 GB, free: 36.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006881/1.381, allocations: 4.29 MB / 0.7962 GB, free: 35.36 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001039/1.381, allocations: 46.12 kB / 0.7963 GB, free: 35.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.01819/1.4, allocations: 9.57 MB / 0.8056 GB, free: 32.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000112/1.4, allocations: 98.3 kB / 0.8057 GB, free: 32.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001505/1.4, allocations: 144.2 kB / 0.8059 GB, free: 32.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001846/1.402, allocations: 0.9133 MB / 0.8067 GB, free: 32.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006597/1.408, allocations: 1.972 MB / 0.8087 GB, free: 32.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008993/1.417, allocations: 7.151 MB / 0.8157 GB, free: 27.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007302/1.425, allocations: 289 kB / 0.8159 GB, free: 26.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002247/1.427, allocations: 493 kB / 0.8164 GB, free: 26.54 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 655 * 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 (1063): * Single equations (assignments): 1053 * 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.001807/1.429, allocations: 485.8 kB / 0.8169 GB, free: 26.05 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008071/1.437, allocations: 4.975 MB / 0.8217 GB, free: 21.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000955/1.438, allocations: 422.6 kB / 0.8221 GB, free: 21.28 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007977/1.446, allocations: 5.092 MB / 0.8271 GB, free: 17.01 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001364/1.446, allocations: 63.47 kB / 0.8272 GB, free: 16.95 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.705e-05/1.446, allocations: 8 kB / 0.8272 GB, free: 16.95 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.211e-05/1.446, allocations: 28.38 kB / 0.8272 GB, free: 16.94 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02008/1.466, allocations: 12.76 MB / 0.8397 GB, free: 6.113 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.101e-05/1.466, allocations: 8 kB / 0.8397 GB, free: 6.105 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002955/1.469, allocations: 0.7289 MB / 0.8404 GB, free: 5.488 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001642/1.471, allocations: 0.7323 MB / 0.8411 GB, free: 4.883 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003505/1.471, allocations: 27.52 kB / 0.8411 GB, free: 4.859 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008198/1.48, allocations: 6.445 MB / 0.8474 GB, free: 15.34 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-05/1.48, allocations: 11.94 kB / 0.8474 GB, free: 15.33 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01364/1.493, allocations: 9.26 MB / 0.8565 GB, free: 6.758 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001588/1.495, allocations: 482.7 kB / 0.8569 GB, free: 6.285 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007384/1.496, allocations: 12 kB / 0.8569 GB, free: 6.273 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002/1.498, allocations: 135.4 kB / 0.8571 GB, free: 6.199 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006117/1.498, allocations: 298.3 kB / 0.8574 GB, free: 6.012 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003102/1.499, allocations: 123.5 kB / 0.8575 GB, free: 5.895 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004402/1.503, allocations: 2.021 MB / 0.8594 GB, free: 4.137 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.503, allocations: 0 / 0.8594 GB, free: 4.137 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009157/1.512, allocations: 1.24 MB / 0.8607 GB, free: 2.906 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (399): * Single equations (assignments): 388 * 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.01513/1.527, allocations: 11.45 MB / 0.8718 GB, free: 8.215 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01248/1.54, allocations: 7.279 MB / 0.8789 GB, free: 1.449 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/1.54, allocations: 4 kB / 0.8789 GB, free: 1.445 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2742/1.814, allocations: 3.378 MB / 0.8822 GB, free: 121 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003862/1.818, allocations: 334.5 kB / 0.8826 GB, free: 121 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03533/1.853, allocations: 12.42 MB / 0.8947 GB, free: 118.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005546/1.859, allocations: 4.122 MB / 0.8987 GB, free: 117.8 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006439/1.865, allocations: 2.263 MB / 0.9009 GB, free: 117.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004737/1.87, allocations: 2.587 MB / 0.9035 GB, free: 117.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.243e-06/1.87, allocations: 0 / 0.9035 GB, free: 117.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.175/2.045, allocations: 96.15 MB / 0.9973 GB, free: 65.74 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001896/2.045, allocations: 164.4 kB / 0.9975 GB, free: 65.55 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.382/7.427, allocations: 0 / 0.9975 GB, free: 65.55 MB / 490.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)