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.0008165/0.0008166, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004873/0.004873, allocations: 169.2 kB / 16.26 MB, free: 6.66 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.21/1.21, allocations: 223.2 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.143/0.143, allocations: 9.104 MB / 300.5 MB, free: 2.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003154/0.0003154, allocations: 8 kB / 363.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08284/0.08317, allocations: 52.43 MB / 416.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.1855/0.2687, allocations: 74.22 MB / 490.5 MB, free: 9.887 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02945/0.2982, allocations: 15.22 MB / 0.4938 GB, free: 15.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01113/0.3094, allocations: 283.4 kB / 0.4941 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00153/0.311, allocations: 0.5314 MB / 0.4946 GB, free: 15.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004692/0.3157, allocations: 2.048 MB / 0.4966 GB, free: 14.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000954/0.3166, allocations: 415.5 kB / 0.497 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00668/0.3233, allocations: 6.21 MB / 0.5031 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002379/0.3257, allocations: 1.693 MB / 0.5047 GB, free: 11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002158/0.3279, allocations: 1.48 MB / 0.5062 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002747/0.3306, allocations: 2.408 MB / 0.5085 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005157/0.3312, allocations: 242 kB / 0.5088 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001781/0.333, allocations: 0.9127 MB / 0.5096 GB, free: 9.062 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001779/0.3348, allocations: 2.017 MB / 0.5116 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002118/0.3369, allocations: 2.676 MB / 0.5142 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00605/0.3429, allocations: 7.397 MB / 0.5215 GB, free: 13.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.343, allocations: 0 / 0.5215 GB, free: 13.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.343, allocations: 0 / 0.5215 GB, free: 13.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.932e-05/0.3431, allocations: 0 / 0.5215 GB, free: 13.7 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.04241/0.3855, allocations: 10.75 MB / 0.532 GB, free: 2.859 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.3855, allocations: 12.59 kB / 0.532 GB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001548/0.3871, allocations: 0.9364 MB / 0.5329 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007314/0.3944, allocations: 2.127 MB / 0.535 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003829/0.3983, allocations: 2.48 MB / 0.5374 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001953/0.3985, allocations: 307.6 kB / 0.5377 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007937/0.3993, allocations: 407.6 kB / 0.5381 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02671/0.426, allocations: 15.3 MB / 0.553 GB, free: 12.37 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001284/0.4262, allocations: 63.42 kB / 0.5531 GB, free: 12.31 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005463/0.4267, allocations: 195.7 kB / 0.5533 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004109/0.4308, allocations: 2.851 MB / 0.556 GB, free: 9.262 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03105/0.4619, allocations: 16.04 MB / 0.5717 GB, free: 9.199 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.198/0.6599, allocations: 52.72 MB / 0.6232 GB, free: 85.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03012/0.6901, allocations: 7.694 MB / 0.6307 GB, free: 82.68 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004343/0.6944, allocations: 2.993 MB / 0.6336 GB, free: 81.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02215/0.7166, allocations: 20.4 MB / 0.6535 GB, free: 67.56 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009666/0.7263, allocations: 3.809 MB / 0.6573 GB, free: 66.47 MB / 446.1 MB Notification: Performance of pre-optimization done (n=429): time 6.883e-06/0.7264, allocations: 0 / 0.6573 GB, free: 66.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=504): time 0.05533/0.7817, allocations: 42.47 MB / 0.6987 GB, free: 35.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001657/0.7819, allocations: 0.8316 MB / 0.6996 GB, free: 34.49 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004558/0.7865, allocations: 4.404 MB / 0.7039 GB, free: 30.05 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004829/0.787, allocations: 101.7 kB / 0.7039 GB, free: 29.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001683/0.7886, allocations: 3.511 MB / 0.7074 GB, free: 26.44 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001128/0.7898, allocations: 1.792 MB / 0.7091 GB, free: 24.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006653/0.7905, allocations: 0.7203 MB / 0.7098 GB, free: 23.94 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.623e-05/0.7905, allocations: 305.1 kB / 0.7101 GB, free: 23.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003711/0.7942, allocations: 2.996 MB / 0.713 GB, free: 20.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005031/0.7993, allocations: 7.137 MB / 0.72 GB, free: 11.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009867/0.8091, allocations: 11.14 MB / 0.7309 GB, free: 14.38 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.697e-05/0.8092, allocations: 40 kB / 0.7309 GB, free: 14.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.01665/0.8259, allocations: 11.07 MB / 0.7417 GB, free: 3.234 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/0.826, allocations: 90.73 kB / 0.7418 GB, free: 3.141 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001371/0.8262, allocations: 148 kB / 0.742 GB, free: 2.996 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002056/0.8282, allocations: 0.9357 MB / 0.7429 GB, free: 2.047 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006015/0.8343, allocations: 2 MB / 0.7448 GB, free: 44 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009804/0.8441, allocations: 7.501 MB / 0.7522 GB, free: 8.406 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005303/0.8494, allocations: 483.2 kB / 0.7526 GB, free: 7.934 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007815/0.8502, allocations: 483.9 kB / 0.7531 GB, free: 7.461 MB / 478.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.004145/0.8543, allocations: 2.537 MB / 0.7556 GB, free: 4.914 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007198/0.8551, allocations: 482 kB / 0.756 GB, free: 4.438 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1698/1.025, allocations: 5.85 MB / 0.7617 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001638/1.025, allocations: 72.06 kB / 0.7618 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-05/1.025, allocations: 18.03 kB / 0.7618 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.648e-05/1.025, allocations: 32.8 kB / 0.7619 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02077/1.046, allocations: 18.93 MB / 0.7803 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-05/1.046, allocations: 9.188 kB / 0.7804 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002794/1.049, allocations: 0.8051 MB / 0.7811 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001572/1.05, allocations: 0.7808 MB / 0.7819 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002137/1.051, allocations: 98.62 kB / 0.782 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007312/1.058, allocations: 6.801 MB / 0.7886 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/1.058, allocations: 12.62 kB / 0.7886 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01229/1.07, allocations: 10.05 MB / 0.7985 GB, free: 126.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/1.071, allocations: 0.5411 MB / 0.799 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00049/1.072, allocations: 92.77 kB / 0.7991 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001948/1.074, allocations: 232.8 kB / 0.7993 GB, free: 126 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000553/1.074, allocations: 322.9 kB / 0.7996 GB, free: 125.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002373/1.075, allocations: 138.8 kB / 0.7997 GB, free: 125.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003538/1.078, allocations: 2.783 MB / 0.8025 GB, free: 125 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.078, allocations: 0 / 0.8025 GB, free: 125 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005068/1.083, allocations: 1.514 MB / 0.8039 GB, free: 124.7 MB / 478.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.01312/1.096, allocations: 10.82 MB / 0.8145 GB, free: 120 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01064/1.107, allocations: 8.215 MB / 0.8225 GB, free: 116.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/1.107, allocations: 3.438 kB / 0.8225 GB, free: 116.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004431/1.112, allocations: 3.64 MB / 0.8261 GB, free: 114.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00749/1.119, allocations: 0.6563 MB / 0.8267 GB, free: 114.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0706/1.19, allocations: 76.38 MB / 0.9013 GB, free: 32.27 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003219/1.193, allocations: 4.016 MB / 0.9052 GB, free: 28.22 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004934/1.198, allocations: 2.397 MB / 0.9076 GB, free: 25.82 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00249/1.2, allocations: 2.6 MB / 0.9101 GB, free: 23.22 MB / 478.1 MB Notification: Performance of SimCode: time 7.72e-07/1.2, allocations: 0 / 0.9101 GB, free: 23.22 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5451/1.745, allocations: 104 MB / 1.012 GB, free: 92.32 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001661/1.746, allocations: 257.7 kB / 1.012 GB, free: 92.06 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.123/5.869, allocations: 6.5 kB / 1.012 GB, free: 92.06 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)