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.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 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.0007723/0.0007721, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009148/0.0009147, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1898/0.1898, allocations: 9.113 MB / 300.2 MB, free: 2.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003286/0.0003288, allocations: 15.98 kB / 363.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1059, allocations: 52.43 MB / 415.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.2411/0.347, allocations: 69.03 MB / 484.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03495/0.3819, allocations: 14.73 MB / 499.4 MB, free: 4.363 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01461/0.3966, allocations: 285.4 kB / 499.7 MB, free: 4.332 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01125/0.4079, allocations: 3.411 MB / 0.4913 GB, free: 3.129 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03928/0.4472, allocations: 11.69 MB / 0.5027 GB, free: 13.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004659/0.4519, allocations: 436.2 kB / 0.5031 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008121/0.4601, allocations: 5.114 MB / 0.5081 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003543/0.4636, allocations: 1.668 MB / 0.5097 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003497/0.4672, allocations: 1.552 MB / 0.5113 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004026/0.4712, allocations: 2.374 MB / 0.5136 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001298/0.4725, allocations: 244 kB / 0.5138 GB, free: 5.336 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002707/0.4753, allocations: 0.8075 MB / 0.5146 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002763/0.478, allocations: 1.951 MB / 0.5165 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001874/0.4799, allocations: 1.088 MB / 0.5176 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006887/0.4868, allocations: 5.939 MB / 0.5234 GB, free: 11.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.4869, allocations: 0 / 0.5234 GB, free: 11.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4869, allocations: 0 / 0.5234 GB, free: 11.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002846/0.4872, allocations: 0 / 0.5234 GB, free: 11.52 MB / 398.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.04117/0.5283, allocations: 10.81 MB / 0.5339 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.5284, allocations: 16.03 kB / 0.5339 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002981/0.5314, allocations: 0.9362 MB / 0.5349 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007885/0.5393, allocations: 2.12 MB / 0.5369 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004906/0.5442, allocations: 2.448 MB / 0.5393 GB, free: 11.02 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000327/0.5446, allocations: 299.5 kB / 0.5396 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001523/0.5461, allocations: 409.8 kB / 0.54 GB, free: 10.32 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03143/0.5776, allocations: 15.27 MB / 0.5549 GB, free: 10.2 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001738/0.5778, allocations: 55.52 kB / 0.555 GB, free: 10.15 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00077/0.5785, allocations: 191.8 kB / 0.5551 GB, free: 9.961 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004236/0.5828, allocations: 2.859 MB / 0.5579 GB, free: 7.098 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03453/0.6173, allocations: 15.98 MB / 0.5735 GB, free: 7.102 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2639/0.8812, allocations: 52.72 MB / 0.625 GB, free: 84.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02966/0.9109, allocations: 7.677 MB / 0.6325 GB, free: 82.52 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005836/0.9168, allocations: 2.983 MB / 0.6354 GB, free: 81.44 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0307/0.9475, allocations: 20.38 MB / 0.6553 GB, free: 67.42 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01095/0.9585, allocations: 3.797 MB / 0.659 GB, free: 66.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=429): time 1.313e-05/0.9586, allocations: 0 / 0.659 GB, free: 66.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=504): time 0.06725/1.026, allocations: 42.42 MB / 0.7005 GB, free: 33.72 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001946/1.026, allocations: 0.8264 MB / 0.7013 GB, free: 32.71 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00496/1.031, allocations: 4.377 MB / 0.7056 GB, free: 28.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006596/1.032, allocations: 101.7 kB / 0.7057 GB, free: 28.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00218/1.034, allocations: 3.506 MB / 0.7091 GB, free: 24.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001842/1.036, allocations: 1.802 MB / 0.7108 GB, free: 22.91 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004166/1.036, allocations: 180 kB / 0.711 GB, free: 22.73 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003553/1.037, allocations: 0.6704 MB / 0.7117 GB, free: 22.05 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003975/1.041, allocations: 2.969 MB / 0.7146 GB, free: 19.08 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005672/1.046, allocations: 7.102 MB / 0.7215 GB, free: 9.988 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006397/1.053, allocations: 4.602 MB / 0.726 GB, free: 5.375 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-05/1.053, allocations: 40 kB / 0.726 GB, free: 5.336 MB / 446.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.01718/1.07, allocations: 11.01 MB / 0.7368 GB, free: 10.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001071/1.07, allocations: 89.7 kB / 0.7369 GB, free: 10.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001417/1.07, allocations: 140 kB / 0.737 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002016/1.072, allocations: 0.9589 MB / 0.7379 GB, free: 9.098 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00637/1.079, allocations: 2 MB / 0.7399 GB, free: 7.094 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2008/1.28, allocations: 7.463 MB / 0.7472 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006042/1.286, allocations: 479.5 kB / 0.7476 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001153/1.287, allocations: 489.9 kB / 0.7481 GB, free: 121.7 MB / 462.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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004416/1.291, allocations: 2.529 MB / 0.7506 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008219/1.292, allocations: 478 kB / 0.751 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008612/1.301, allocations: 5.839 MB / 0.7567 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001229/1.301, allocations: 66.48 kB / 0.7568 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-05/1.301, allocations: 19.56 kB / 0.7568 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.575e-05/1.301, allocations: 33.41 kB / 0.7568 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02245/1.323, allocations: 18.9 MB / 0.7753 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.757e-05/1.323, allocations: 6.031 kB / 0.7753 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002988/1.326, allocations: 0.8082 MB / 0.7761 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001611/1.328, allocations: 0.7849 MB / 0.7769 GB, free: 112.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003493/1.328, allocations: 105.2 kB / 0.777 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008575/1.337, allocations: 6.781 MB / 0.7836 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.12e-05/1.337, allocations: 12.72 kB / 0.7836 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01497/1.352, allocations: 9.991 MB / 0.7933 GB, free: 105.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/1.353, allocations: 0.5395 MB / 0.7939 GB, free: 104.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000624/1.354, allocations: 95.5 kB / 0.794 GB, free: 104.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001971/1.356, allocations: 231.7 kB / 0.7942 GB, free: 104.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006765/1.357, allocations: 328.4 kB / 0.7945 GB, free: 104.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002762/1.357, allocations: 138.6 kB / 0.7946 GB, free: 104.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004869/1.362, allocations: 2.753 MB / 0.7973 GB, free: 103.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.1e-07/1.362, allocations: 1.125 kB / 0.7973 GB, free: 103.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006511/1.368, allocations: 1.51 MB / 0.7988 GB, free: 103.5 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 (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 51} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01365/1.382, allocations: 10.76 MB / 0.8093 GB, free: 98.74 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01222/1.394, allocations: 8.188 MB / 0.8173 GB, free: 93.36 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/1.394, allocations: 4 kB / 0.8173 GB, free: 93.36 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004616/1.399, allocations: 3.623 MB / 0.8208 GB, free: 90.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003259/1.402, allocations: 0.6595 MB / 0.8215 GB, free: 89.48 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0639/1.466, allocations: 47.14 MB / 0.8675 GB, free: 41.35 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003429/1.47, allocations: 4.02 MB / 0.8714 GB, free: 37.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005279/1.475, allocations: 2.399 MB / 0.8738 GB, free: 34.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002749/1.478, allocations: 2.6 MB / 0.8763 GB, free: 32.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.353e-06/1.478, allocations: 0 / 0.8763 GB, free: 32.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3775/1.855, allocations: 108.5 MB / 0.9822 GB, free: 108.7 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001679/1.855, allocations: 230.8 kB / 0.9825 GB, free: 108.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.451/6.306, allocations: 0 / 0.9825 GB, free: 108.4 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 & /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) Environment - environmentSimulation: