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.007086/0.007086, allocations: 102.5 kB / 15.74 MB, free: 6.027 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.001804/0.001804, allocations: 194.7 kB / 16.67 MB, free: 5.961 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1429/0.1429, allocations: 9.112 MB / 299.6 MB, free: 1.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002936/0.002936, allocations: 68.09 kB / 414.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2601, allocations: 51.43 MB / 465.6 MB, free: 17.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.01286/0.273, allocations: 16.16 MB / 481.7 MB, free: 6.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008263/0.2814, allocations: 4.112 MB / 485.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002498/0.2839, allocations: 67.44 kB / 485.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001564/0.2855, allocations: 0.6465 MB / 486.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005324/0.2908, allocations: 2.209 MB / 488.8 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.2921, allocations: 484.5 kB / 489.3 MB, free: 432 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00668/0.2988, allocations: 4.637 MB / 493.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002885/0.3017, allocations: 1.9 MB / 495.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002974/0.3047, allocations: 1.726 MB / 497.5 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003548/0.3083, allocations: 2.425 MB / 499.9 MB, free: 9.742 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009437/0.3092, allocations: 412 kB / 0.4886 GB, free: 9.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002293/0.3115, allocations: 1.038 MB / 0.4896 GB, free: 8.301 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002096/0.3136, allocations: 2.146 MB / 0.4917 GB, free: 6.148 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003089/0.3167, allocations: 2.811 MB / 0.4945 GB, free: 3.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01017/0.3269, allocations: 8.23 MB / 0.5025 GB, free: 11.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3269, allocations: 0 / 0.5025 GB, free: 11.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3269, allocations: 0 / 0.5025 GB, free: 11.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002234/0.3272, allocations: 0 / 0.5025 GB, free: 11.05 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.04981/0.377, allocations: 12.13 MB / 0.5143 GB, free: 14.83 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.377, allocations: 8.031 kB / 0.5144 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001923/0.379, allocations: 0.9364 MB / 0.5153 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00816/0.3872, allocations: 2.115 MB / 0.5173 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005281/0.3925, allocations: 2.512 MB / 0.5198 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003044/0.3928, allocations: 307.7 kB / 0.5201 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001412/0.3942, allocations: 403.7 kB / 0.5205 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0348/0.429, allocations: 15.28 MB / 0.5354 GB, free: 8.352 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002475/0.4293, allocations: 51.53 kB / 0.5354 GB, free: 8.301 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001295/0.4306, allocations: 195.8 kB / 0.5356 GB, free: 8.109 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005017/0.4356, allocations: 2.851 MB / 0.5384 GB, free: 5.254 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03928/0.4749, allocations: 16.01 MB / 0.554 GB, free: 5.227 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2957/0.7707, allocations: 52.67 MB / 0.6055 GB, free: 75.54 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03328/0.804, allocations: 7.607 MB / 0.6129 GB, free: 74.78 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004737/0.8088, allocations: 2.992 MB / 0.6158 GB, free: 73.77 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02446/0.8333, allocations: 20.41 MB / 0.6358 GB, free: 59.92 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009616/0.8429, allocations: 3.799 MB / 0.6395 GB, free: 58.84 MB / 462.1 MB Notification: Performance of pre-optimization done (n=429): time 1.458e-05/0.843, allocations: 0 / 0.6395 GB, free: 58.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=504): time 0.06162/0.9046, allocations: 44.17 MB / 0.6826 GB, free: 22.79 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001578/0.9048, allocations: 0.8255 MB / 0.6834 GB, free: 21.79 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004801/0.9096, allocations: 4.425 MB / 0.6877 GB, free: 17.42 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005254/0.9102, allocations: 101.7 kB / 0.6878 GB, free: 17.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001902/0.9121, allocations: 3.646 MB / 0.6914 GB, free: 13.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001414/0.9135, allocations: 1.892 MB / 0.6932 GB, free: 11.93 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001762/0.9153, allocations: 1.687 MB / 0.6949 GB, free: 10.23 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.552e-05/0.9153, allocations: 301.1 kB / 0.6952 GB, free: 9.938 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003868/0.9192, allocations: 2.996 MB / 0.6981 GB, free: 6.934 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00619/0.9254, allocations: 7.129 MB / 0.7051 GB, free: 13.88 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01597/0.9414, allocations: 11.13 MB / 0.7159 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001002/0.9415, allocations: 40 kB / 0.716 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.02093/0.9625, allocations: 11.09 MB / 0.7268 GB, free: 5.625 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001639/0.9627, allocations: 100.6 kB / 0.7269 GB, free: 5.523 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001978/0.9629, allocations: 140 kB / 0.727 GB, free: 5.387 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002428/0.9653, allocations: 0.9446 MB / 0.7279 GB, free: 4.434 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006973/0.9723, allocations: 1.993 MB / 0.7299 GB, free: 2.438 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01349/0.9858, allocations: 8.116 MB / 0.7378 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006159/0.992, allocations: 475.3 kB / 0.7383 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001464/0.9935, allocations: 491.8 kB / 0.7387 GB, free: 9.238 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.005637/0.9992, allocations: 2.532 MB / 0.7412 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001291/1, allocations: 0.489 MB / 0.7417 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01179/1.012, allocations: 5.848 MB / 0.7474 GB, free: 308 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001757/1.012, allocations: 67.98 kB / 0.7475 GB, free: 240 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.255e-05/1.013, allocations: 23.98 kB / 0.7475 GB, free: 216 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.818e-05/1.013, allocations: 23.92 kB / 0.7475 GB, free: 192 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03235/1.045, allocations: 18.62 MB / 0.7657 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-05/1.045, allocations: 8 kB / 0.7657 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003458/1.048, allocations: 0.8074 MB / 0.7665 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002153/1.051, allocations: 0.7796 MB / 0.7672 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000529/1.051, allocations: 99.97 kB / 0.7673 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0115/1.063, allocations: 7.413 MB / 0.7746 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-05/1.063, allocations: 11.94 kB / 0.7746 GB, free: 3.824 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01856/1.081, allocations: 10.05 MB / 0.7844 GB, free: 9.527 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/1.083, allocations: 0.5485 MB / 0.7849 GB, free: 8.957 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00113/1.084, allocations: 95.97 kB / 0.785 GB, free: 8.863 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002654/1.087, allocations: 231.7 kB / 0.7853 GB, free: 8.637 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008002/1.087, allocations: 327 kB / 0.7856 GB, free: 8.316 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004133/1.088, allocations: 128 kB / 0.7857 GB, free: 8.191 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005286/1.093, allocations: 2.782 MB / 0.7884 GB, free: 5.402 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.91e-07/1.093, allocations: 4 kB / 0.7884 GB, free: 5.398 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007226/1.1, allocations: 1.512 MB / 0.7899 GB, free: 3.887 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.2218/1.322, allocations: 10.82 MB / 0.8005 GB, free: 184.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01354/1.336, allocations: 8.272 MB / 0.8085 GB, free: 181.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.386e-05/1.336, allocations: 1.156 kB / 0.8085 GB, free: 181.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005407/1.341, allocations: 3.641 MB / 0.8121 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.003643/1.345, allocations: 0.6947 MB / 0.8128 GB, free: 179.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0673/1.412, allocations: 61.45 MB / 0.8728 GB, free: 133.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003659/1.416, allocations: 4.021 MB / 0.8767 GB, free: 129.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004648/1.421, allocations: 2.395 MB / 0.879 GB, free: 127.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002677/1.423, allocations: 2.596 MB / 0.8816 GB, free: 124.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.062e-06/1.423, allocations: 0 / 0.8816 GB, free: 124.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1359/1.559, allocations: 103.3 MB / 0.9825 GB, free: 21.69 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.08/23.64, allocations: 13 kB / 0.9825 GB, free: 21.68 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)