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.001849/0.001849, allocations: 108 kB / 15.6 MB, free: 132 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.002775/0.002775, allocations: 193.3 kB / 16.53 MB, free: 6.391 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.578/1.578, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.198/0.198, allocations: 9.102 MB / 299.5 MB, free: 1.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 63.89 kB / 362.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.154, allocations: 51.43 MB / 413.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.2812/0.4353, allocations: 16.16 MB / 429.6 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.4463, allocations: 4.103 MB / 433.7 MB, free: 34.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002906/0.4492, allocations: 69.12 kB / 433.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001866/0.4512, allocations: 0.6553 MB / 434.5 MB, free: 33.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006331/0.4575, allocations: 2.201 MB / 436.7 MB, free: 32.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001361/0.4589, allocations: 472 kB / 437.1 MB, free: 32.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005139/0.464, allocations: 4.609 MB / 441.7 MB, free: 30.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002367/0.4664, allocations: 1.9 MB / 443.6 MB, free: 29.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002661/0.4691, allocations: 1.726 MB / 445.4 MB, free: 28.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002458/0.4716, allocations: 2.416 MB / 447.8 MB, free: 27.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007871/0.4724, allocations: 412.2 kB / 448.2 MB, free: 27.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001951/0.4743, allocations: 1.041 MB / 449.2 MB, free: 27.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001636/0.476, allocations: 2.148 MB / 451.4 MB, free: 26.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002795/0.4788, allocations: 2.815 MB / 454.2 MB, free: 24.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008221/0.487, allocations: 7.774 MB / 462 MB, free: 21.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.175e-05/0.4871, allocations: 8.094 kB / 462 MB, free: 21.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4871, allocations: 0 / 462 MB, free: 21.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002909/0.4874, allocations: 4 kB / 462 MB, free: 21.47 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.05648/0.5439, allocations: 11.97 MB / 473.9 MB, free: 17.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.544, allocations: 9.562 kB / 473.9 MB, free: 17.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002845/0.5468, allocations: 0.9374 MB / 474.9 MB, free: 17.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009432/0.5563, allocations: 2.077 MB / 477 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006591/0.5629, allocations: 2.497 MB / 479.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003315/0.5633, allocations: 304.2 kB / 479.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001442/0.5647, allocations: 405.7 kB / 480.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03215/0.5969, allocations: 15.27 MB / 495.4 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001645/0.5971, allocations: 71.36 kB / 495.5 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006378/0.5977, allocations: 191.7 kB / 495.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005957/0.6037, allocations: 2.859 MB / 498.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04091/0.6446, allocations: 16 MB / 0.5025 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1243/0.769, allocations: 52.71 MB / 0.554 GB, free: 8.512 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03707/0.8061, allocations: 7.614 MB / 0.5614 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006263/0.8124, allocations: 2.99 MB / 0.5643 GB, free: 13.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.297/1.109, allocations: 20.38 MB / 0.5842 GB, free: 125.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01114/1.121, allocations: 3.807 MB / 0.5879 GB, free: 124.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=429): time 1.058e-05/1.121, allocations: 0 / 0.5879 GB, free: 124.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=504): time 0.07467/1.195, allocations: 42.44 MB / 0.6294 GB, free: 100.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003327/1.196, allocations: 0.8258 MB / 0.6302 GB, free: 99.49 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008451/1.204, allocations: 4.409 MB / 0.6345 GB, free: 97.85 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008378/1.205, allocations: 105.2 kB / 0.6346 GB, free: 97.76 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00329/1.208, allocations: 3.507 MB / 0.638 GB, free: 95.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002479/1.211, allocations: 1.794 MB / 0.6398 GB, free: 93.76 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002633/1.214, allocations: 1.683 MB / 0.6414 GB, free: 92.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.621e-05/1.214, allocations: 305 kB / 0.6417 GB, free: 92.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004808/1.218, allocations: 2.992 MB / 0.6446 GB, free: 90.97 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006206/1.225, allocations: 7.136 MB / 0.6516 GB, free: 82.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01158/1.236, allocations: 11.13 MB / 0.6625 GB, free: 70.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001121/1.236, allocations: 40 kB / 0.6625 GB, free: 70.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.01937/1.256, allocations: 11.05 MB / 0.6733 GB, free: 60.39 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001274/1.256, allocations: 93.7 kB / 0.6734 GB, free: 60.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001688/1.256, allocations: 140 kB / 0.6735 GB, free: 60.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002077/1.258, allocations: 0.9443 MB / 0.6744 GB, free: 59.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006591/1.265, allocations: 2.004 MB / 0.6764 GB, free: 57.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009074/1.274, allocations: 8.119 MB / 0.6843 GB, free: 48.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006377/1.28, allocations: 475.2 kB / 0.6848 GB, free: 48.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001008/1.281, allocations: 488.5 kB / 0.6852 GB, free: 48.04 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.004925/1.286, allocations: 2.53 MB / 0.6877 GB, free: 45.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001196/1.288, allocations: 474 kB / 0.6882 GB, free: 45.03 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009285/1.297, allocations: 5.851 MB / 0.6939 GB, free: 39.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001469/1.297, allocations: 73.03 kB / 0.694 GB, free: 39.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.704e-05/1.297, allocations: 16.66 kB / 0.694 GB, free: 39.06 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-05/1.297, allocations: 31.91 kB / 0.694 GB, free: 39.03 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02391/1.321, allocations: 18.91 MB / 0.7125 GB, free: 19.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.333e-05/1.321, allocations: 11.94 kB / 0.7125 GB, free: 19.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003118/1.324, allocations: 0.8035 MB / 0.7133 GB, free: 18.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001684/1.326, allocations: 0.785 MB / 0.714 GB, free: 18.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005151/1.326, allocations: 99.98 kB / 0.7141 GB, free: 17.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008131/1.335, allocations: 7.41 MB / 0.7214 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/1.335, allocations: 11.94 kB / 0.7214 GB, free: 10.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01379/1.348, allocations: 10.03 MB / 0.7312 GB, free: 136 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001528/1.35, allocations: 0.5164 MB / 0.7317 GB, free: 15.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009278/1.351, allocations: 103.9 kB / 0.7318 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002123/1.353, allocations: 223.7 kB / 0.732 GB, free: 15.28 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006676/1.354, allocations: 323.1 kB / 0.7323 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000259/1.354, allocations: 142.5 kB / 0.7324 GB, free: 14.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004301/1.358, allocations: 2.782 MB / 0.7351 GB, free: 12.04 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/1.358, allocations: 0 / 0.7351 GB, free: 12.04 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007431/1.366, allocations: 1.521 MB / 0.7366 GB, free: 10.52 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.2062/1.572, allocations: 10.79 MB / 0.7472 GB, free: 126.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.03303/1.605, allocations: 17.87 MB / 0.7646 GB, free: 123.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/1.605, allocations: 1.156 kB / 0.7646 GB, free: 123.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005807/1.611, allocations: 3.635 MB / 0.7682 GB, free: 122.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004151/1.615, allocations: 0.6874 MB / 0.7688 GB, free: 121.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09317/1.708, allocations: 73.42 MB / 0.8405 GB, free: 55.76 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004115/1.713, allocations: 4.025 MB / 0.8445 GB, free: 52.62 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005317/1.718, allocations: 2.393 MB / 0.8468 GB, free: 51.08 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003353/1.721, allocations: 2.599 MB / 0.8493 GB, free: 48.68 MB / 462.1 MB Notification: Performance of SimCode: time 1.313e-06/1.721, allocations: 4 kB / 0.8493 GB, free: 48.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.396/2.117, allocations: 107.7 MB / 0.9545 GB, free: 136.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.51/15.63, allocations: 11.69 kB / 0.9545 GB, free: 136.8 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 & 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)