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.001777/0.001777, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002379/0.002378, allocations: 196.3 kB / 16.53 MB, free: 6.664 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.361/1.361, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1807/0.1807, allocations: 9.109 MB / 299.5 MB, free: 1.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 63.89 kB / 362 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1062, allocations: 51.43 MB / 413.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.2258/0.3321, allocations: 16.16 MB / 429.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007876/0.34, allocations: 4.106 MB / 433.7 MB, free: 34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00227/0.3423, allocations: 69.41 kB / 433.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001626/0.344, allocations: 0.6468 MB / 434.5 MB, free: 33.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005326/0.3494, allocations: 2.2 MB / 436.7 MB, free: 32.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.3508, allocations: 474 kB / 437.1 MB, free: 32.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005021/0.3558, allocations: 4.619 MB / 441.7 MB, free: 30.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00289/0.3588, allocations: 1.901 MB / 443.6 MB, free: 29.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00294/0.3617, allocations: 1.723 MB / 445.4 MB, free: 28.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003238/0.365, allocations: 2.423 MB / 447.8 MB, free: 27.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001414/0.3664, allocations: 410 kB / 448.2 MB, free: 27.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00261/0.369, allocations: 1.037 MB / 449.2 MB, free: 27.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002474/0.3715, allocations: 2.146 MB / 451.4 MB, free: 26.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004302/0.3758, allocations: 2.816 MB / 454.2 MB, free: 24.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008844/0.3847, allocations: 7.782 MB / 462 MB, free: 21.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/0.3848, allocations: 0 / 462 MB, free: 21.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3848, allocations: 0 / 462 MB, free: 21.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003243/0.3851, allocations: 0 / 462 MB, free: 21.41 MB / 350.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.05281/0.4379, allocations: 11.97 MB / 473.9 MB, free: 17.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.438, allocations: 10.03 kB / 474 MB, free: 17.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002401/0.4404, allocations: 0.9402 MB / 474.9 MB, free: 17.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008379/0.4488, allocations: 2.073 MB / 477 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005395/0.4542, allocations: 2.498 MB / 479.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003364/0.4546, allocations: 304.5 kB / 479.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001698/0.4563, allocations: 409.6 kB / 480.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03141/0.4877, allocations: 15.27 MB / 495.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002045/0.488, allocations: 59.42 kB / 495.5 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0011/0.4891, allocations: 191.8 kB / 495.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004547/0.4936, allocations: 2.859 MB / 498.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03755/0.5312, allocations: 16.01 MB / 0.5025 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08645/0.6177, allocations: 52.7 MB / 0.5539 GB, free: 8.559 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03441/0.6522, allocations: 7.62 MB / 0.5614 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005686/0.6579, allocations: 2.994 MB / 0.5643 GB, free: 13.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2266/0.8845, allocations: 20.38 MB / 0.5842 GB, free: 125.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009474/0.894, allocations: 3.81 MB / 0.5879 GB, free: 124.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=429): time 8.496e-06/0.8941, allocations: 0 / 0.5879 GB, free: 124.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=504): time 0.0842/0.9783, allocations: 42.44 MB / 0.6294 GB, free: 100.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002065/0.9785, allocations: 0.8207 MB / 0.6302 GB, free: 99.47 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01027/0.9888, allocations: 4.408 MB / 0.6345 GB, free: 97.83 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009528/0.9898, allocations: 108.6 kB / 0.6346 GB, free: 97.74 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004128/0.994, allocations: 3.505 MB / 0.638 GB, free: 95.08 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003253/0.9973, allocations: 1.798 MB / 0.6398 GB, free: 93.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004342/1.002, allocations: 1.677 MB / 0.6414 GB, free: 92.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.525e-05/1.002, allocations: 305 kB / 0.6417 GB, free: 92.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007188/1.009, allocations: 2.995 MB / 0.6446 GB, free: 91.01 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009876/1.019, allocations: 7.135 MB / 0.6516 GB, free: 82.58 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01688/1.036, allocations: 11.13 MB / 0.6625 GB, free: 70.24 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001239/1.036, allocations: 40 kB / 0.6625 GB, free: 70.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.03032/1.066, allocations: 11.06 MB / 0.6733 GB, free: 60.42 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001821/1.067, allocations: 89.7 kB / 0.6734 GB, free: 60.33 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002446/1.067, allocations: 144.4 kB / 0.6735 GB, free: 60.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002945/1.07, allocations: 0.9423 MB / 0.6744 GB, free: 59.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01081/1.081, allocations: 2 MB / 0.6764 GB, free: 57.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01493/1.096, allocations: 8.124 MB / 0.6843 GB, free: 49.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009253/1.105, allocations: 471.2 kB / 0.6848 GB, free: 48.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001275/1.106, allocations: 487.9 kB / 0.6852 GB, free: 48.1 MB / 446.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.005352/1.111, allocations: 2.533 MB / 0.6877 GB, free: 45.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00145/1.113, allocations: 474 kB / 0.6882 GB, free: 45.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009762/1.123, allocations: 5.861 MB / 0.6939 GB, free: 39.19 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001337/1.123, allocations: 63.98 kB / 0.6939 GB, free: 39.12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.24e-05/1.123, allocations: 20 kB / 0.694 GB, free: 39.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.867e-05/1.123, allocations: 27.91 kB / 0.694 GB, free: 39.08 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02252/1.146, allocations: 18.92 MB / 0.7125 GB, free: 19.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-05/1.146, allocations: 9.031 kB / 0.7125 GB, free: 19.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003096/1.149, allocations: 0.8036 MB / 0.7133 GB, free: 18.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001636/1.15, allocations: 0.7835 MB / 0.714 GB, free: 18.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003644/1.151, allocations: 99.98 kB / 0.7141 GB, free: 18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008015/1.159, allocations: 7.415 MB / 0.7214 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.159, allocations: 8 kB / 0.7214 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01377/1.173, allocations: 10.02 MB / 0.7312 GB, free: 192 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002037/1.175, allocations: 0.5147 MB / 0.7317 GB, free: 15.65 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001337/1.176, allocations: 103.9 kB / 0.7318 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002809/1.179, allocations: 231.7 kB / 0.732 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007036/1.18, allocations: 315.2 kB / 0.7323 GB, free: 15.01 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002692/1.18, allocations: 144.4 kB / 0.7324 GB, free: 14.88 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005289/1.185, allocations: 2.782 MB / 0.7351 GB, free: 12.09 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.359e-06/1.185, allocations: 0 / 0.7351 GB, free: 12.09 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007968/1.193, allocations: 1.525 MB / 0.7366 GB, free: 10.57 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.2243/1.417, allocations: 10.79 MB / 0.7472 GB, free: 126 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.03097/1.448, allocations: 17.86 MB / 0.7646 GB, free: 123.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/1.448, allocations: 4.875 kB / 0.7646 GB, free: 123.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004996/1.453, allocations: 3.633 MB / 0.7682 GB, free: 122 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003696/1.457, allocations: 0.6907 MB / 0.7688 GB, free: 121.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07842/1.536, allocations: 73.42 MB / 0.8405 GB, free: 55.73 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00453/1.54, allocations: 4.014 MB / 0.8444 GB, free: 52.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005252/1.546, allocations: 2.4 MB / 0.8468 GB, free: 51.05 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003034/1.549, allocations: 2.595 MB / 0.8493 GB, free: 48.66 MB / 462.1 MB Notification: Performance of SimCode: time 6.62e-07/1.549, allocations: 0 / 0.8493 GB, free: 48.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3404/1.889, allocations: 107.7 MB / 0.9545 GB, free: 137 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/14.27, allocations: 5.859 kB / 0.9545 GB, free: 137 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)