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.01268/0.01268, allocations: 95.77 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.002352/0.002352, allocations: 198.7 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 2.396/2.396, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.3539/0.3539, allocations: 9.103 MB / 299.6 MB, free: 1.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002636/0.002636, allocations: 68.11 kB / 414.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4553/0.4579, allocations: 51.43 MB / 465.6 MB, free: 17.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.02612/0.4841, allocations: 16.15 MB / 481.7 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01778/0.502, allocations: 4.115 MB / 485.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005223/0.5072, allocations: 70.44 kB / 485.9 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003629/0.511, allocations: 0.6475 MB / 486.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01291/0.524, allocations: 2.275 MB / 488.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003193/0.5272, allocations: 479.4 kB / 489.3 MB, free: 420 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01505/0.5423, allocations: 4.654 MB / 494 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006197/0.5485, allocations: 1.885 MB / 495.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006858/0.5554, allocations: 1.748 MB / 497.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009625/0.5651, allocations: 2.411 MB / 0.4883 GB, free: 9.656 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002932/0.5681, allocations: 408 kB / 0.4887 GB, free: 9.258 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006365/0.5745, allocations: 1.046 MB / 0.4897 GB, free: 8.211 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005394/0.58, allocations: 2.146 MB / 0.4918 GB, free: 6.059 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008176/0.5882, allocations: 2.815 MB / 0.4945 GB, free: 3.227 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02016/0.6084, allocations: 8.216 MB / 0.5026 GB, free: 10.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/0.6085, allocations: 3.938 kB / 0.5026 GB, free: 10.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.6085, allocations: 0 / 0.5026 GB, free: 10.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003854/0.6089, 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.08997/0.6989, allocations: 12.12 MB / 0.5144 GB, free: 14.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001002/0.699, allocations: 16.03 kB / 0.5144 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003914/0.703, allocations: 0.9441 MB / 0.5153 GB, free: 13.78 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01432/0.7173, allocations: 2.103 MB / 0.5174 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01012/0.7275, allocations: 2.516 MB / 0.5199 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00048/0.728, allocations: 299.7 kB / 0.5201 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0028/0.7308, allocations: 415.6 kB / 0.5205 GB, free: 8.391 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06462/0.7955, allocations: 15.27 MB / 0.5355 GB, free: 8.266 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004999/0.796, allocations: 63.52 kB / 0.5355 GB, free: 8.203 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004021/0.8001, allocations: 191.8 kB / 0.5357 GB, free: 8.016 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0104/0.8106, allocations: 2.863 MB / 0.5385 GB, free: 5.148 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07151/0.8821, allocations: 16 MB / 0.5541 GB, free: 5.129 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5491/1.431, allocations: 52.67 MB / 0.6056 GB, free: 75.54 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0615/1.493, allocations: 7.609 MB / 0.613 GB, free: 74.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00953/1.502, allocations: 2.991 MB / 0.6159 GB, free: 73.79 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04126/1.544, allocations: 20.4 MB / 0.6358 GB, free: 59.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01195/1.556, allocations: 3.801 MB / 0.6396 GB, free: 58.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=429): time 1.385e-05/1.556, allocations: 0 / 0.6396 GB, free: 58.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=504): time 0.07543/1.631, allocations: 44.16 MB / 0.6827 GB, free: 22.76 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000362/1.632, allocations: 0.8328 MB / 0.6835 GB, free: 21.75 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007283/1.639, allocations: 4.419 MB / 0.6878 GB, free: 17.39 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001045/1.64, allocations: 101.7 kB / 0.6879 GB, free: 17.29 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003073/1.643, allocations: 3.648 MB / 0.6915 GB, free: 13.77 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00272/1.646, allocations: 1.885 MB / 0.6933 GB, free: 11.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002984/1.649, allocations: 1.695 MB / 0.695 GB, free: 10.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.419e-05/1.649, allocations: 301.1 kB / 0.6953 GB, free: 9.906 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00467/1.654, allocations: 2.992 MB / 0.6982 GB, free: 6.906 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008084/1.662, allocations: 7.133 MB / 0.7051 GB, free: 13.85 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01775/1.68, allocations: 11.13 MB / 0.716 GB, free: 0.75 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001396/1.68, allocations: 44 kB / 0.716 GB, free: 0.707 MB / 478.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.03035/1.71, allocations: 11.07 MB / 0.7269 GB, free: 5.602 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004033/1.711, allocations: 97.64 kB / 0.727 GB, free: 5.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004326/1.711, allocations: 140.9 kB / 0.7271 GB, free: 5.363 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002843/1.714, allocations: 0.9417 MB / 0.728 GB, free: 4.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00943/1.723, allocations: 1.996 MB / 0.73 GB, free: 2.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01349/1.737, allocations: 8.119 MB / 0.7379 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00822/1.745, allocations: 478 kB / 0.7383 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002337/1.748, allocations: 486.2 kB / 0.7388 GB, free: 9.211 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.006636/1.754, allocations: 2.532 MB / 0.7413 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001505/1.756, allocations: 0.489 MB / 0.7418 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01116/1.767, allocations: 5.852 MB / 0.7475 GB, free: 276 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002088/1.767, allocations: 71.89 kB / 0.7475 GB, free: 208 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.018e-05/1.767, allocations: 16 kB / 0.7476 GB, free: 192 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.172e-05/1.767, allocations: 31.91 kB / 0.7476 GB, free: 160 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03314/1.801, allocations: 18.61 MB / 0.7658 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.48e-05/1.801, allocations: 12.03 kB / 0.7658 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003914/1.805, allocations: 0.8104 MB / 0.7666 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002076/1.807, allocations: 0.7718 MB / 0.7673 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009074/1.808, allocations: 104 kB / 0.7674 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01176/1.819, allocations: 7.421 MB / 0.7747 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.061e-05/1.82, allocations: 11.94 kB / 0.7747 GB, free: 3.789 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02019/1.84, allocations: 10.05 MB / 0.7845 GB, free: 9.488 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002254/1.842, allocations: 0.5446 MB / 0.785 GB, free: 8.922 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001795/1.844, allocations: 91.98 kB / 0.7851 GB, free: 8.832 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003456/1.847, allocations: 235.7 kB / 0.7853 GB, free: 8.602 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00105/1.848, allocations: 319.1 kB / 0.7856 GB, free: 8.289 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003475/1.849, allocations: 136 kB / 0.7858 GB, free: 8.156 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005722/1.854, allocations: 2.786 MB / 0.7885 GB, free: 5.363 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.81e-07/1.855, allocations: 0 / 0.7885 GB, free: 5.363 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01029/1.865, allocations: 1.512 MB / 0.79 GB, free: 3.852 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.3336/2.199, allocations: 10.82 MB / 0.8005 GB, free: 185 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02681/2.225, allocations: 8.266 MB / 0.8086 GB, free: 181.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.787e-05/2.225, allocations: 2.344 kB / 0.8086 GB, free: 181.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01031/2.236, allocations: 3.637 MB / 0.8122 GB, free: 180.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006909/2.243, allocations: 0.6947 MB / 0.8128 GB, free: 179.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1453/2.388, allocations: 61.45 MB / 0.8728 GB, free: 133.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0076/2.396, allocations: 4.025 MB / 0.8768 GB, free: 129.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009608/2.405, allocations: 2.403 MB / 0.8791 GB, free: 127.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006438/2.412, allocations: 2.598 MB / 0.8817 GB, free: 124.7 MB / 0.545 GB Notification: Performance of SimCode: time 2.024e-06/2.412, allocations: 4 kB / 0.8817 GB, free: 124.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2491/2.661, allocations: 103.3 MB / 0.9826 GB, free: 21.71 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 43.31/45.97, allocations: 18.22 kB / 0.9826 GB, free: 21.7 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)