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.001133/0.001133, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001364/0.001364, allocations: 195.5 kB / 16.14 MB, free: 6.734 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.239/1.239, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1184/0.1184, allocations: 9.093 MB / 299 MB, free: 1.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 63.84 kB / 361.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09463/0.09599, allocations: 51.44 MB / 412.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.1825/0.2786, allocations: 76.01 MB / 488.8 MB, free: 10.13 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02806/0.3067, allocations: 15.28 MB / 0.4923 GB, free: 15.6 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0111/0.3178, allocations: 287.9 kB / 0.4925 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001382/0.3192, allocations: 0.5261 MB / 0.4931 GB, free: 15.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004542/0.3238, allocations: 2.042 MB / 0.495 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.3248, allocations: 406.9 kB / 0.4954 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006975/0.3318, allocations: 6.225 MB / 0.5015 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002417/0.3342, allocations: 1.729 MB / 0.5032 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002151/0.3364, allocations: 1.528 MB / 0.5047 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002658/0.339, allocations: 2.453 MB / 0.5071 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005014/0.3396, allocations: 267 kB / 0.5073 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001638/0.3412, allocations: 0.9347 MB / 0.5083 GB, free: 8.789 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001541/0.3428, allocations: 2.027 MB / 0.5102 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002044/0.3448, allocations: 2.69 MB / 0.5129 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005654/0.3505, allocations: 7.558 MB / 0.5202 GB, free: 12.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.3505, allocations: 0 / 0.5202 GB, free: 12.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.3505, allocations: 0 / 0.5202 GB, free: 12.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.785e-05/0.3506, allocations: 0 / 0.5202 GB, free: 12.79 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.04231/0.3929, allocations: 11.97 MB / 0.5319 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.3929, allocations: 12.59 kB / 0.5319 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001024/0.394, allocations: 0.9403 MB / 0.5329 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006883/0.4009, allocations: 2.076 MB / 0.5349 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00396/0.4048, allocations: 2.496 MB / 0.5373 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001834/0.405, allocations: 303.7 kB / 0.5376 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007326/0.4058, allocations: 399.6 kB / 0.538 GB, free: 10.43 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02593/0.4317, allocations: 15.28 MB / 0.5529 GB, free: 10.3 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001065/0.4318, allocations: 51.53 kB / 0.553 GB, free: 10.25 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005363/0.4324, allocations: 195.8 kB / 0.5532 GB, free: 10.06 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004047/0.4364, allocations: 2.86 MB / 0.556 GB, free: 7.195 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03326/0.4697, allocations: 16.01 MB / 0.5716 GB, free: 7.172 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2131/0.6828, allocations: 52.7 MB / 0.623 GB, free: 88.17 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03293/0.7158, allocations: 7.613 MB / 0.6305 GB, free: 85.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00514/0.721, allocations: 2.991 MB / 0.6334 GB, free: 84.65 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02758/0.7486, allocations: 20.39 MB / 0.6533 GB, free: 70.63 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01116/0.7598, allocations: 3.792 MB / 0.657 GB, free: 69.56 MB / 446.1 MB Notification: Performance of pre-optimization done (n=429): time 6.262e-06/0.7599, allocations: 1.312 kB / 0.657 GB, free: 69.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=504): time 0.06334/0.8232, allocations: 42.42 MB / 0.6985 GB, free: 36.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001523/0.8234, allocations: 0.8264 MB / 0.6993 GB, free: 35.42 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004876/0.8283, allocations: 4.408 MB / 0.7036 GB, free: 30.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005679/0.8289, allocations: 109.7 kB / 0.7037 GB, free: 30.87 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001697/0.8306, allocations: 3.503 MB / 0.7071 GB, free: 27.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001381/0.832, allocations: 1.807 MB / 0.7089 GB, free: 25.49 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001784/0.8338, allocations: 1.672 MB / 0.7105 GB, free: 23.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.488e-05/0.8338, allocations: 301.1 kB / 0.7108 GB, free: 23.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003973/0.8378, allocations: 2.996 MB / 0.7137 GB, free: 20.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005222/0.843, allocations: 7.134 MB / 0.7207 GB, free: 11.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01082/0.8539, allocations: 11.13 MB / 0.7315 GB, free: 14.25 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.495e-05/0.854, allocations: 40 kB / 0.7316 GB, free: 14.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.01987/0.8739, allocations: 11.05 MB / 0.7424 GB, free: 3.121 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/0.874, allocations: 97.73 kB / 0.7425 GB, free: 3.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001482/0.8742, allocations: 140 kB / 0.7426 GB, free: 2.883 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002279/0.8764, allocations: 0.9371 MB / 0.7435 GB, free: 1.934 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1495/1.026, allocations: 1.994 MB / 0.7455 GB, free: 127.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009139/1.035, allocations: 7.511 MB / 0.7528 GB, free: 125.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005475/1.041, allocations: 476.4 kB / 0.7533 GB, free: 125.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008223/1.041, allocations: 486.5 kB / 0.7537 GB, free: 125.4 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.003182/1.045, allocations: 2.535 MB / 0.7562 GB, free: 124.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006871/1.045, allocations: 476.9 kB / 0.7566 GB, free: 124.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008321/1.054, allocations: 5.853 MB / 0.7624 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001265/1.054, allocations: 67.05 kB / 0.7624 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.146e-05/1.054, allocations: 15.75 kB / 0.7624 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.854e-05/1.054, allocations: 33.41 kB / 0.7625 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02088/1.075, allocations: 18.91 MB / 0.7809 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.471e-05/1.075, allocations: 8.812 kB / 0.7809 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00313/1.078, allocations: 0.801 MB / 0.7817 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001853/1.08, allocations: 0.7855 MB / 0.7825 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002577/1.08, allocations: 98.34 kB / 0.7826 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008085/1.088, allocations: 6.813 MB / 0.7892 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/1.088, allocations: 13.94 kB / 0.7893 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01357/1.102, allocations: 10.02 MB / 0.799 GB, free: 105.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008725/1.103, allocations: 0.5179 MB / 0.7996 GB, free: 105.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005711/1.103, allocations: 98.47 kB / 0.7996 GB, free: 105.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001934/1.105, allocations: 232 kB / 0.7999 GB, free: 105.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006335/1.106, allocations: 324.9 kB / 0.8002 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002395/1.106, allocations: 136 kB / 0.8003 GB, free: 105.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003406/1.11, allocations: 2.789 MB / 0.803 GB, free: 104.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.11e-07/1.11, allocations: 0 / 0.803 GB, free: 104.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004681/1.114, allocations: 1.515 MB / 0.8045 GB, free: 104 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.01242/1.127, allocations: 10.8 MB / 0.8151 GB, free: 97.61 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009913/1.137, allocations: 8.211 MB / 0.8231 GB, free: 90.29 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/1.137, allocations: 5.5 kB / 0.8231 GB, free: 90.29 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004011/1.141, allocations: 3.633 MB / 0.8266 GB, free: 86.95 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003065/1.144, allocations: 0.6491 MB / 0.8273 GB, free: 86.39 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07818/1.222, allocations: 76.09 MB / 0.9016 GB, free: 2.742 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003612/1.226, allocations: 4.014 MB / 0.9055 GB, free: 14.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006393/1.232, allocations: 2.404 MB / 0.9078 GB, free: 12.29 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003927/1.236, allocations: 2.6 MB / 0.9104 GB, free: 9.688 MB / 478.1 MB Notification: Performance of SimCode: time 6.21e-07/1.236, allocations: 1.203 kB / 0.9104 GB, free: 9.688 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9714/2.207, allocations: 105.3 MB / 1.013 GB, free: 87.33 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001592/2.208, allocations: 264 kB / 1.013 GB, free: 87.06 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.85/6.058, allocations: 4 kB / 1.013 GB, free: 87.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)