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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 180.7 kB / 15.45 MB, free: 0.6523 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.334/1.334, allocations: 223.3 MB / 239.5 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008012/0.0008012, allocations: 95.5 kB / 290.6 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.03904/0.03904, allocations: 9.118 MB / 350.9 MB, free: 4.277 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003339/0.000334, allocations: 9.984 kB / 414.1 MB, free: 42.32 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09702/0.09737, allocations: 52.43 MB / 466.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.08159/0.179, allocations: 74.23 MB / 0.5281 GB, free: 2.324 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.26/0.4391, allocations: 15.23 MB / 0.543 GB, free: 2.156 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01658/0.4557, allocations: 290.1 kB / 0.5433 GB, free: 2.152 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002227/0.458, allocations: 0.5242 MB / 0.5438 GB, free: 2.152 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006477/0.4645, allocations: 2.045 MB / 0.5458 GB, free: 2.055 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001534/0.466, allocations: 407.8 kB / 0.5462 GB, free: 2.043 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007418/0.4734, allocations: 6.21 MB / 0.5522 GB, free: 1.562 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003175/0.4766, allocations: 1.701 MB / 0.5539 GB, free: 1.309 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003864/0.4805, allocations: 1.477 MB / 0.5554 GB, free: 1.188 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004918/0.4855, allocations: 2.407 MB / 0.5577 GB, free: 284 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001682/0.4872, allocations: 241.2 kB / 0.5579 GB, free: 284 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002797/0.49, allocations: 0.915 MB / 0.5588 GB, free: 48 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00268/0.4927, allocations: 2.024 MB / 0.5608 GB, free: 15.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004464/0.4972, allocations: 2.671 MB / 0.5634 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009574/0.5068, allocations: 7.393 MB / 0.5706 GB, free: 9.066 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.5068, allocations: 0 / 0.5706 GB, free: 9.066 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.819e-06/0.5068, allocations: 0 / 0.5706 GB, free: 9.066 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004237/0.5073, allocations: 0 / 0.5706 GB, free: 9.066 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.04661/0.5539, allocations: 10.75 MB / 0.5811 GB, free: 3.059 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.5539, allocations: 14.91 kB / 0.5811 GB, free: 3.055 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00298/0.5569, allocations: 0.9431 MB / 0.5821 GB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008871/0.5658, allocations: 2.116 MB / 0.5841 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006248/0.5721, allocations: 2.494 MB / 0.5866 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004111/0.5726, allocations: 305.4 kB / 0.5869 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002092/0.5747, allocations: 402.6 kB / 0.5872 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03643/0.6111, allocations: 15.3 MB / 0.6022 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003758/0.6116, allocations: 59.44 kB / 0.6022 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00185/0.6134, allocations: 194.3 kB / 0.6024 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005086/0.6185, allocations: 2.857 MB / 0.6052 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03862/0.6572, allocations: 16.04 MB / 0.6209 GB, free: 10.76 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08391/0.7411, allocations: 52.72 MB / 0.6724 GB, free: 5.195 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0353/0.7765, allocations: 7.697 MB / 0.6799 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005748/0.7823, allocations: 2.994 MB / 0.6828 GB, free: 10.37 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03157/0.8139, allocations: 20.39 MB / 0.7027 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01243/0.8264, allocations: 3.797 MB / 0.7064 GB, free: 196 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=429): time 1.212e-05/0.8265, allocations: 0 / 0.7064 GB, free: 196 kB / 0.4981 GB Notification: Performance of matching and sorting (n=504): time 0.3651/1.192, allocations: 42.48 MB / 0.7479 GB, free: 110.6 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002141/1.192, allocations: 0.8188 MB / 0.7487 GB, free: 109.7 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006292/1.198, allocations: 4.414 MB / 0.753 GB, free: 109.2 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0007858/1.199, allocations: 100.5 kB / 0.7531 GB, free: 109.1 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003333/1.202, allocations: 3.509 MB / 0.7566 GB, free: 107.1 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002525/1.205, allocations: 1.808 MB / 0.7583 GB, free: 106 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001086/1.206, allocations: 0.7094 MB / 0.759 GB, free: 105.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.435e-05/1.206, allocations: 306.4 kB / 0.7593 GB, free: 105.5 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004345/1.21, allocations: 3.002 MB / 0.7622 GB, free: 104.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006751/1.217, allocations: 7.137 MB / 0.7692 GB, free: 97.03 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01227/1.229, allocations: 11.14 MB / 0.7801 GB, free: 85.22 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001425/1.23, allocations: 40 kB / 0.7801 GB, free: 85.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.02087/1.25, allocations: 11.06 MB / 0.7909 GB, free: 76.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002967/1.251, allocations: 95.42 kB / 0.791 GB, free: 76.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003199/1.251, allocations: 143.9 kB / 0.7911 GB, free: 76.03 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002409/1.254, allocations: 0.9409 MB / 0.7921 GB, free: 75.08 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007773/1.261, allocations: 1.994 MB / 0.794 GB, free: 73.24 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/1.272, allocations: 7.509 MB / 0.8013 GB, free: 65.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007898/1.28, allocations: 479.2 kB / 0.8018 GB, free: 65.21 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00165/1.281, allocations: 485.3 kB / 0.8023 GB, free: 64.74 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.005513/1.287, allocations: 2.533 MB / 0.8047 GB, free: 62.36 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001256/1.288, allocations: 474 kB / 0.8052 GB, free: 61.89 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01083/1.299, allocations: 5.862 MB / 0.8109 GB, free: 56.02 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001667/1.299, allocations: 67.98 kB / 0.811 GB, free: 55.95 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.557e-05/1.299, allocations: 16 kB / 0.811 GB, free: 55.94 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-05/1.299, allocations: 31.91 kB / 0.811 GB, free: 55.91 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.026/1.325, allocations: 18.93 MB / 0.8295 GB, free: 36.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.257e-05/1.325, allocations: 8.75 kB / 0.8295 GB, free: 36.64 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003236/1.329, allocations: 0.814 MB / 0.8303 GB, free: 35.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001771/1.33, allocations: 0.7743 MB / 0.8311 GB, free: 35.08 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006157/1.331, allocations: 103.3 kB / 0.8312 GB, free: 34.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008287/1.339, allocations: 6.806 MB / 0.8378 GB, free: 28.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/1.339, allocations: 11.09 kB / 0.8378 GB, free: 28.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01472/1.354, allocations: 10.04 MB / 0.8476 GB, free: 17.82 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001593/1.356, allocations: 0.5457 MB / 0.8482 GB, free: 17.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001339/1.357, allocations: 96 kB / 0.8483 GB, free: 17.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003036/1.36, allocations: 235.4 kB / 0.8485 GB, free: 16.94 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008536/1.361, allocations: 321.3 kB / 0.8488 GB, free: 16.63 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004239/1.361, allocations: 137.5 kB / 0.8489 GB, free: 16.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005491/1.367, allocations: 2.786 MB / 0.8516 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.5e-07/1.367, allocations: 2.188 kB / 0.8516 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008384/1.375, allocations: 1.514 MB / 0.8531 GB, free: 12.2 MB / 0.4981 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.01727/1.393, allocations: 10.82 MB / 0.8637 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01377/1.407, allocations: 8.23 MB / 0.8717 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/1.407, allocations: 0 / 0.8717 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005976/1.413, allocations: 3.642 MB / 0.8753 GB, free: 5.195 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01033/1.423, allocations: 0.654 MB / 0.8759 GB, free: 4.551 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3246/1.748, allocations: 76.36 MB / 0.9505 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004139/1.752, allocations: 4.016 MB / 0.9544 GB, free: 175.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005731/1.758, allocations: 2.404 MB / 0.9568 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003217/1.761, allocations: 2.596 MB / 0.9593 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.793e-06/1.761, allocations: 0 / 0.9593 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1295/1.89, allocations: 104 MB / 1.061 GB, free: 68.59 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/1.891, allocations: 248.1 kB / 1.061 GB, free: 68.33 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.569/7.46, allocations: 0 / 1.061 GB, free: 68.33 MB / 0.5294 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/linux/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)