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.005456/0.005455, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001317/0.001317, allocations: 195.8 kB / 16.67 MB, free: 5.977 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.298/1.298, 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.1696/0.1696, allocations: 9.104 MB / 299.6 MB, free: 1.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 67.89 kB / 414.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2321, allocations: 51.43 MB / 465.6 MB, free: 17.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.01307/0.2452, allocations: 16.15 MB / 481.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007834/0.2531, allocations: 4.118 MB / 485.9 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001763/0.2549, allocations: 71.16 kB / 485.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001133/0.2561, allocations: 0.6431 MB / 486.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003908/0.26, allocations: 2.205 MB / 488.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009128/0.2609, allocations: 484.2 kB / 489.2 MB, free: 420 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00498/0.2659, allocations: 4.64 MB / 493.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002323/0.2683, allocations: 1.897 MB / 495.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002642/0.2709, allocations: 1.744 MB / 497.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003075/0.274, allocations: 2.417 MB / 499.9 MB, free: 9.727 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007479/0.2748, allocations: 412 kB / 0.4886 GB, free: 9.324 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001925/0.2767, allocations: 1.034 MB / 0.4896 GB, free: 8.289 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001651/0.2784, allocations: 2.15 MB / 0.4917 GB, free: 6.133 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00253/0.2809, allocations: 2.815 MB / 0.4945 GB, free: 3.301 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007531/0.2884, allocations: 8.185 MB / 0.5025 GB, free: 11.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2885, allocations: 0 / 0.5025 GB, free: 11.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2885, allocations: 0 / 0.5025 GB, free: 11.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001342/0.2886, allocations: 0 / 0.5025 GB, free: 11.09 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.04449/0.3331, allocations: 11.97 MB / 0.5142 GB, free: 15.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3332, allocations: 12.03 kB / 0.5142 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00138/0.3346, allocations: 0.9442 MB / 0.5151 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007376/0.3419, allocations: 2.076 MB / 0.5171 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004115/0.3461, allocations: 2.503 MB / 0.5196 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002084/0.3463, allocations: 311.5 kB / 0.5199 GB, free: 9.102 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000812/0.3471, allocations: 403.6 kB / 0.5202 GB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03049/0.3776, allocations: 15.28 MB / 0.5352 GB, free: 8.574 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001468/0.3778, allocations: 59.42 kB / 0.5352 GB, free: 8.516 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000652/0.3785, allocations: 191.8 kB / 0.5354 GB, free: 8.328 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004181/0.3827, allocations: 2.859 MB / 0.5382 GB, free: 5.465 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03463/0.4173, allocations: 16.01 MB / 0.5538 GB, free: 5.438 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2621/0.6794, allocations: 52.56 MB / 0.6052 GB, free: 75.59 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03159/0.7111, allocations: 7.609 MB / 0.6126 GB, free: 74.83 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004458/0.7156, allocations: 2.992 MB / 0.6155 GB, free: 73.84 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02176/0.7373, allocations: 20.39 MB / 0.6354 GB, free: 59.86 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009687/0.7471, allocations: 3.8 MB / 0.6391 GB, free: 58.79 MB / 462.1 MB Notification: Performance of pre-optimization done (n=429): time 6.943e-06/0.7471, allocations: 0 / 0.6391 GB, free: 58.79 MB / 462.1 MB Notification: Performance of matching and sorting (n=504): time 0.05831/0.8054, allocations: 42.45 MB / 0.6806 GB, free: 24.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001851/0.8057, allocations: 0.8255 MB / 0.6814 GB, free: 23.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005291/0.811, allocations: 4.4 MB / 0.6857 GB, free: 18.67 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007199/0.8117, allocations: 105.7 kB / 0.6858 GB, free: 18.56 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002092/0.8138, allocations: 3.507 MB / 0.6892 GB, free: 15.05 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0014/0.8152, allocations: 1.81 MB / 0.691 GB, free: 13.27 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001974/0.8172, allocations: 1.679 MB / 0.6926 GB, free: 11.57 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.982e-05/0.8173, allocations: 305.1 kB / 0.6929 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004026/0.8213, allocations: 2.992 MB / 0.6958 GB, free: 8.273 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005284/0.8266, allocations: 7.131 MB / 0.7028 GB, free: 15.22 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01293/0.8395, allocations: 11.13 MB / 0.7137 GB, free: 2.137 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.555e-05/0.8397, allocations: 40 kB / 0.7137 GB, free: 2.098 MB / 478.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.01939/0.8591, allocations: 11.06 MB / 0.7245 GB, free: 7.012 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001428/0.8592, allocations: 93.69 kB / 0.7246 GB, free: 6.914 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001783/0.8594, allocations: 143.9 kB / 0.7247 GB, free: 6.773 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002222/0.8617, allocations: 0.9462 MB / 0.7257 GB, free: 5.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006718/0.8684, allocations: 1.989 MB / 0.7276 GB, free: 3.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/0.8796, allocations: 8.111 MB / 0.7355 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005611/0.8852, allocations: 471.2 kB / 0.736 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001148/0.8864, allocations: 485.9 kB / 0.7364 GB, free: 10.63 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.004259/0.8906, allocations: 2.534 MB / 0.7389 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009748/0.8916, allocations: 482 kB / 0.7394 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01023/0.9019, allocations: 5.843 MB / 0.7451 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001579/0.9021, allocations: 67.98 kB / 0.7451 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.554e-05/0.9021, allocations: 20.06 kB / 0.7452 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.856e-05/0.9022, allocations: 33.88 kB / 0.7452 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0294/0.9316, allocations: 18.61 MB / 0.7634 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.421e-05/0.9316, allocations: 8 kB / 0.7634 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003405/0.9351, allocations: 0.8035 MB / 0.7642 GB, free: 13.72 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001957/0.937, allocations: 0.7796 MB / 0.7649 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005495/0.9376, allocations: 99.98 kB / 0.765 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/0.9477, allocations: 7.397 MB / 0.7722 GB, free: 5.289 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.597e-06/0.9477, allocations: 11.94 kB / 0.7722 GB, free: 5.277 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01553/0.9632, allocations: 10.03 MB / 0.782 GB, free: 11 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.9644, allocations: 0.5263 MB / 0.7826 GB, free: 10.45 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001031/0.9655, allocations: 99.92 kB / 0.7827 GB, free: 10.35 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002414/0.9679, allocations: 231.7 kB / 0.7829 GB, free: 10.12 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006646/0.9686, allocations: 319.1 kB / 0.7832 GB, free: 9.809 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003133/0.9689, allocations: 136 kB / 0.7833 GB, free: 9.676 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0042/0.9731, allocations: 2.79 MB / 0.786 GB, free: 6.879 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.9e-07/0.9731, allocations: 0 / 0.786 GB, free: 6.879 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006507/0.9796, allocations: 1.513 MB / 0.7875 GB, free: 5.371 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.2011/1.181, allocations: 10.78 MB / 0.798 GB, free: 184.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01271/1.194, allocations: 8.27 MB / 0.8061 GB, free: 181.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/1.194, allocations: 3.469 kB / 0.8061 GB, free: 181.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00492/1.198, allocations: 3.636 MB / 0.8097 GB, free: 179.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003151/1.202, allocations: 0.6927 MB / 0.8103 GB, free: 179.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07295/1.275, allocations: 61.21 MB / 0.8701 GB, free: 134.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004486/1.279, allocations: 4.026 MB / 0.8741 GB, free: 131.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005724/1.285, allocations: 2.391 MB / 0.8764 GB, free: 128.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003581/1.289, allocations: 2.596 MB / 0.8789 GB, free: 126.1 MB / 0.545 GB Notification: Performance of SimCode: time 7.62e-07/1.289, allocations: 2.953 kB / 0.8789 GB, free: 126.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1363/1.425, allocations: 104.9 MB / 0.9814 GB, free: 21.57 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.33/23.76, allocations: 18.47 kB / 0.9814 GB, free: 21.56 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 & /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)