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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 189.6 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1523/0.1523, allocations: 9.108 MB / 299.2 MB, free: 1.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 63.89 kB / 361.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0942/0.0954, allocations: 51.43 MB / 413 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.2142/0.3096, allocations: 76.02 MB / 489 MB, free: 10.03 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03422/0.3439, allocations: 15.23 MB / 0.4924 GB, free: 15.53 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01473/0.3587, allocations: 285.7 kB / 0.4927 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002283/0.361, allocations: 0.534 MB / 0.4932 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006307/0.3674, allocations: 2.019 MB / 0.4952 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001714/0.3691, allocations: 418.8 kB / 0.4956 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007635/0.3768, allocations: 4.659 MB / 0.5001 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003846/0.3806, allocations: 1.941 MB / 0.502 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003789/0.3845, allocations: 1.739 MB / 0.5037 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004297/0.3888, allocations: 2.594 MB / 0.5062 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001626/0.3904, allocations: 411.2 kB / 0.5066 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003248/0.3937, allocations: 1.046 MB / 0.5077 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003153/0.3969, allocations: 2.171 MB / 0.5098 GB, free: 7.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004825/0.4017, allocations: 2.835 MB / 0.5125 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009287/0.411, allocations: 7.82 MB / 0.5202 GB, free: 12.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.411, allocations: 0 / 0.5202 GB, free: 12.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.411, allocations: 0 / 0.5202 GB, free: 12.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002198/0.4113, allocations: 0 / 0.5202 GB, free: 12.86 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2054 * Number of variables: 2054 Notification: Performance of Generate backend data structure: time 0.04805/0.4593, allocations: 11.96 MB / 0.5319 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.4594, allocations: 16.03 kB / 0.5319 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001319/0.4607, allocations: 0.9364 MB / 0.5328 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007506/0.4682, allocations: 2.08 MB / 0.5348 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004556/0.4728, allocations: 2.492 MB / 0.5373 GB, free: 11.2 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002307/0.4731, allocations: 311.6 kB / 0.5376 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001036/0.4741, allocations: 395.7 kB / 0.5379 GB, free: 10.51 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02939/0.5035, allocations: 15.28 MB / 0.5529 GB, free: 10.38 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001401/0.5037, allocations: 51.44 kB / 0.5529 GB, free: 10.32 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005757/0.5043, allocations: 195.7 kB / 0.5531 GB, free: 10.13 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00437/0.5086, allocations: 2.859 MB / 0.5559 GB, free: 7.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03503/0.5437, allocations: 16.01 MB / 0.5715 GB, free: 7.238 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2438/0.7875, allocations: 52.69 MB / 0.623 GB, free: 88.13 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03136/0.8189, allocations: 7.614 MB / 0.6304 GB, free: 85.69 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006291/0.8253, allocations: 2.995 MB / 0.6333 GB, free: 84.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03704/0.8623, allocations: 20.39 MB / 0.6532 GB, free: 70.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01342/0.8758, allocations: 3.805 MB / 0.657 GB, free: 69.51 MB / 446.1 MB Notification: Performance of pre-optimization done (n=429): time 1.499e-05/0.8759, allocations: 0 / 0.657 GB, free: 69.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=504): time 0.06664/0.9425, allocations: 42.44 MB / 0.6984 GB, free: 36.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001603/0.9427, allocations: 0.8225 MB / 0.6992 GB, free: 35.42 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004543/0.9473, allocations: 4.4 MB / 0.7035 GB, free: 30.99 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005858/0.9479, allocations: 101.7 kB / 0.7036 GB, free: 30.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001777/0.9496, allocations: 3.515 MB / 0.707 GB, free: 27.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001359/0.951, allocations: 1.799 MB / 0.7088 GB, free: 25.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001691/0.9527, allocations: 1.68 MB / 0.7104 GB, free: 23.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.237e-05/0.9528, allocations: 301.1 kB / 0.7107 GB, free: 23.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00372/0.9565, allocations: 2.988 MB / 0.7136 GB, free: 20.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004895/0.9614, allocations: 7.146 MB / 0.7206 GB, free: 11.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/0.9717, allocations: 11.12 MB / 0.7315 GB, free: 14.26 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-05/0.9718, allocations: 40 kB / 0.7315 GB, free: 14.22 MB / 462.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.01923/0.991, allocations: 11.06 MB / 0.7423 GB, free: 3.125 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001203/0.9912, allocations: 101.9 kB / 0.7424 GB, free: 3.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001457/0.9913, allocations: 144 kB / 0.7426 GB, free: 2.879 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002291/0.9936, allocations: 0.9397 MB / 0.7435 GB, free: 1.926 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1782/1.172, allocations: 1.998 MB / 0.7454 GB, free: 127.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009655/1.182, allocations: 8.112 MB / 0.7533 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005872/1.187, allocations: 481.6 kB / 0.7538 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001315/1.189, allocations: 484.8 kB / 0.7543 GB, free: 125 MB / 462.1 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],rightTrail.color[3],rightTrail.color[2],rightTrail.color[1],leftTrail.color[3],leftTrail.color[2],leftTrail.color[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],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1074): * Single equations (assignments): 1064 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,51,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003998/1.193, allocations: 2.521 MB / 0.7567 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008487/1.194, allocations: 483.1 kB / 0.7572 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008371/1.202, allocations: 5.852 MB / 0.7629 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000142/1.202, allocations: 66.23 kB / 0.763 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.359e-05/1.202, allocations: 19.69 kB / 0.763 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.582e-05/1.202, allocations: 33.19 kB / 0.763 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02245/1.225, allocations: 18.9 MB / 0.7815 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-05/1.225, allocations: 8.219 kB / 0.7815 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003279/1.228, allocations: 0.8049 MB / 0.7823 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001813/1.23, allocations: 0.7856 MB / 0.783 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004034/1.23, allocations: 102.9 kB / 0.7831 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008609/1.239, allocations: 7.414 MB / 0.7904 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-05/1.239, allocations: 16.59 kB / 0.7904 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01459/1.254, allocations: 10.02 MB / 0.8002 GB, free: 105.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/1.255, allocations: 0.5226 MB / 0.8007 GB, free: 104.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006528/1.255, allocations: 94.36 kB / 0.8008 GB, free: 104.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001986/1.257, allocations: 228 kB / 0.801 GB, free: 104.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007081/1.258, allocations: 323.6 kB / 0.8013 GB, free: 104.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000236/1.258, allocations: 137.9 kB / 0.8014 GB, free: 104.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003654/1.262, allocations: 2.782 MB / 0.8041 GB, free: 103.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.262, allocations: 0 / 0.8041 GB, free: 103.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006163/1.268, allocations: 1.517 MB / 0.8056 GB, free: 103.3 MB / 462.1 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,revolute.phi,revolute2.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 (433): * Single equations (assignments): 422 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,51,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01277/1.281, allocations: 10.81 MB / 0.8162 GB, free: 96.56 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02815/1.309, allocations: 17.86 MB / 0.8336 GB, free: 79.61 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/1.309, allocations: 0 / 0.8336 GB, free: 79.61 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004564/1.314, allocations: 3.64 MB / 0.8372 GB, free: 76.26 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003668/1.318, allocations: 0.6944 MB / 0.8379 GB, free: 75.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08719/1.405, allocations: 76.09 MB / 0.9122 GB, free: 7.812 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004869/1.41, allocations: 4.017 MB / 0.9161 GB, free: 3.766 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00609/1.416, allocations: 2.396 MB / 0.9184 GB, free: 1.363 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1907/1.607, allocations: 2.596 MB / 0.921 GB, free: 140.4 MB / 478.1 MB Notification: Performance of SimCode: time 1.193e-06/1.607, allocations: 0 / 0.921 GB, free: 140.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.158/1.765, allocations: 107.6 MB / 1.026 GB, free: 75.28 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001374/1.765, allocations: 248.8 kB / 1.026 GB, free: 75.03 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.908/6.673, allocations: 3.234 kB / 1.026 GB, free: 75.03 MB / 478.1 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/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)