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.008293/0.008293, allocations: 95.05 kB / 15.73 MB, free: 6.039 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.001927/0.001927, allocations: 202 kB / 16.68 MB, free: 5.969 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1636/0.1636, allocations: 9.102 MB / 299.6 MB, free: 1.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 64.11 kB / 414.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2367, allocations: 51.43 MB / 465.6 MB, free: 17.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.01376/0.2505, allocations: 16.16 MB / 481.7 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008719/0.2592, allocations: 4.112 MB / 485.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003037/0.2623, allocations: 70.88 kB / 485.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001892/0.2643, allocations: 0.6509 MB / 486.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005956/0.2702, allocations: 2.272 MB / 488.8 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001413/0.2717, allocations: 480.1 kB / 489.3 MB, free: 364 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006866/0.2785, allocations: 4.638 MB / 494 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003127/0.2817, allocations: 1.9 MB / 495.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003454/0.2852, allocations: 1.744 MB / 497.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004218/0.2894, allocations: 2.423 MB / 0.4883 GB, free: 9.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001702/0.2911, allocations: 408 kB / 0.4887 GB, free: 9.262 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003532/0.2947, allocations: 1.042 MB / 0.4897 GB, free: 8.219 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003369/0.2981, allocations: 2.142 MB / 0.4918 GB, free: 6.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005694/0.3038, allocations: 2.819 MB / 0.4946 GB, free: 3.234 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01191/0.3157, allocations: 8.223 MB / 0.5026 GB, free: 10.97 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3157, allocations: 0 / 0.5026 GB, free: 10.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3157, allocations: 0 / 0.5026 GB, free: 10.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002991/0.316, allocations: 0 / 0.5026 GB, free: 10.97 MB / 382.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.05082/0.3669, allocations: 12.12 MB / 0.5144 GB, free: 14.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.3669, allocations: 12.03 kB / 0.5144 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002472/0.3694, allocations: 0.9442 MB / 0.5153 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008504/0.3779, allocations: 2.107 MB / 0.5174 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005943/0.3839, allocations: 2.508 MB / 0.5199 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003276/0.3843, allocations: 303.7 kB / 0.5201 GB, free: 8.809 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001617/0.3859, allocations: 407.7 kB / 0.5205 GB, free: 8.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03362/0.4195, allocations: 15.28 MB / 0.5355 GB, free: 8.277 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000319/0.4199, allocations: 63.52 kB / 0.5355 GB, free: 8.215 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001654/0.4216, allocations: 195.7 kB / 0.5357 GB, free: 8.023 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004983/0.4266, allocations: 2.855 MB / 0.5385 GB, free: 5.164 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03715/0.4637, allocations: 16.01 MB / 0.5541 GB, free: 5.133 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2747/0.7385, allocations: 52.66 MB / 0.6056 GB, free: 76.68 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03433/0.7729, allocations: 7.618 MB / 0.613 GB, free: 75.91 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004855/0.7778, allocations: 2.993 MB / 0.6159 GB, free: 74.92 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02582/0.8036, allocations: 20.4 MB / 0.6358 GB, free: 60.92 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01088/0.8145, allocations: 3.797 MB / 0.6395 GB, free: 59.85 MB / 462.1 MB Notification: Performance of pre-optimization done (n=429): time 1.296e-05/0.8146, allocations: 0 / 0.6395 GB, free: 59.85 MB / 462.1 MB Notification: Performance of matching and sorting (n=504): time 0.06439/0.879, allocations: 44.17 MB / 0.6827 GB, free: 23.76 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001513/0.8792, allocations: 0.8254 MB / 0.6835 GB, free: 22.75 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005157/0.8844, allocations: 4.417 MB / 0.6878 GB, free: 18.31 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006225/0.885, allocations: 105.7 kB / 0.6879 GB, free: 18.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001929/0.887, allocations: 3.647 MB / 0.6915 GB, free: 14.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001778/0.8888, allocations: 1.887 MB / 0.6933 GB, free: 12.71 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003038/0.8918, allocations: 1.697 MB / 0.695 GB, free: 11 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.04e-05/0.8919, allocations: 301.1 kB / 0.6953 GB, free: 10.71 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004531/0.8964, allocations: 2.992 MB / 0.6982 GB, free: 7.711 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00661/0.9031, allocations: 7.138 MB / 0.7051 GB, free: 14.65 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0155/0.9186, allocations: 11.13 MB / 0.716 GB, free: 1.559 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000139/0.9188, allocations: 41.56 kB / 0.716 GB, free: 1.52 MB / 478.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.02182/0.9406, allocations: 11.08 MB / 0.7269 GB, free: 6.41 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001583/0.9408, allocations: 97.73 kB / 0.727 GB, free: 6.309 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002036/0.941, allocations: 140 kB / 0.7271 GB, free: 6.172 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002334/0.9434, allocations: 0.9359 MB / 0.728 GB, free: 5.223 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006819/0.9502, allocations: 2.004 MB / 0.73 GB, free: 3.215 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/0.9614, allocations: 8.109 MB / 0.7379 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00612/0.9676, allocations: 479.4 kB / 0.7383 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001269/0.9689, allocations: 486 kB / 0.7388 GB, free: 10.02 MB / 0.4981 GB 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.00482/0.9737, allocations: 2.532 MB / 0.7413 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001309/0.975, allocations: 0.5006 MB / 0.7418 GB, free: 6.973 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01031/0.9853, allocations: 5.844 MB / 0.7475 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001586/0.9855, allocations: 74.17 kB / 0.7475 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.049e-05/0.9856, allocations: 16 kB / 0.7476 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.107e-05/0.9856, allocations: 31.91 kB / 0.7476 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.029/1.015, allocations: 18.62 MB / 0.7658 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.967e-05/1.015, allocations: 12 kB / 0.7658 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003389/1.018, allocations: 0.7996 MB / 0.7666 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001864/1.02, allocations: 0.78 MB / 0.7673 GB, free: 12.28 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004036/1.02, allocations: 99.98 kB / 0.7674 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009548/1.03, allocations: 7.408 MB / 0.7747 GB, free: 4.633 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.217e-06/1.03, allocations: 11.94 kB / 0.7747 GB, free: 4.621 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01445/1.044, allocations: 10.06 MB / 0.7845 GB, free: 10.31 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00125/1.046, allocations: 0.5447 MB / 0.785 GB, free: 9.746 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007224/1.046, allocations: 96 kB / 0.7851 GB, free: 9.652 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002119/1.049, allocations: 227.7 kB / 0.7853 GB, free: 9.43 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005694/1.049, allocations: 319.1 kB / 0.7856 GB, free: 9.117 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002743/1.049, allocations: 140 kB / 0.7858 GB, free: 8.98 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004182/1.054, allocations: 2.79 MB / 0.7885 GB, free: 6.184 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.51e-07/1.054, allocations: 0 / 0.7885 GB, free: 6.184 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006815/1.06, allocations: 1.512 MB / 0.79 GB, free: 4.672 MB / 0.545 GB 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.2034/1.264, allocations: 10.82 MB / 0.8005 GB, free: 185.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01238/1.276, allocations: 8.275 MB / 0.8086 GB, free: 182.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.197e-05/1.276, allocations: 4.25 kB / 0.8086 GB, free: 182.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004866/1.281, allocations: 3.633 MB / 0.8122 GB, free: 180.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003386/1.285, allocations: 0.6897 MB / 0.8128 GB, free: 180.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06918/1.354, allocations: 61.45 MB / 0.8729 GB, free: 135.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003575/1.358, allocations: 4.027 MB / 0.8768 GB, free: 131.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004736/1.362, allocations: 2.395 MB / 0.8791 GB, free: 128.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003353/1.366, allocations: 2.6 MB / 0.8817 GB, free: 126.3 MB / 0.545 GB Notification: Performance of SimCode: time 9.02e-07/1.366, allocations: 0 / 0.8817 GB, free: 126.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1298/1.495, allocations: 103.3 MB / 0.9826 GB, free: 23.33 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.7/23.19, allocations: 19.08 kB / 0.9826 GB, free: 23.31 MB / 0.545 GB (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TwoTrackWithDifferentialGear.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.pipe 2>&1)