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/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002872/0.002872, allocations: 181.2 kB / 7.458 MB, free: 2.242 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.191/1.191, allocations: 221.4 MB / 229.3 MB, free: 3.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 97.16 kB / 280.1 MB, free: 1.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04282/0.04282, allocations: 8.837 MB / 339.7 MB, free: 5.711 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2023/0.2452, allocations: 58.5 MB / 398.2 MB, free: 67.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0975/0.3427, allocations: 52.39 MB / 450.6 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2898/0.6326, allocations: 90.94 MB / 0.5289 GB, free: 2.488 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/0.6328, allocations: 77.77 kB / 0.5289 GB, free: 2.453 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.3385/0.9714, allocations: 118.2 MB / 0.6444 GB, free: 2.66 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.9715, allocations: 8 kB / 0.6444 GB, free: 2.652 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01191/0.9834, allocations: 1.919 MB / 0.6463 GB, free: 0.7227 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1951/1.178, allocations: 2.865 MB / 0.6491 GB, free: 130.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003473/1.179, allocations: 180 kB / 0.6492 GB, free: 130.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003/1.182, allocations: 313.7 kB / 0.6495 GB, free: 130.4 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01663/1.199, allocations: 9.897 MB / 0.6592 GB, free: 130.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03171/1.23, allocations: 13.31 MB / 0.6722 GB, free: 128 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005461/1.231, allocations: 58.09 kB / 0.6723 GB, free: 128 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003803/1.235, allocations: 26.97 kB / 0.6723 GB, free: 128 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003583/1.238, allocations: 1.697 MB / 0.6739 GB, free: 128 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07748/1.316, allocations: 51.7 MB / 0.7244 GB, free: 99.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005622/1.322, allocations: 3.135 MB / 0.7275 GB, free: 98.43 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004927/1.326, allocations: 2.751 MB / 0.7302 GB, free: 97.45 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02817/1.355, allocations: 20.19 MB / 0.7499 GB, free: 83.72 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004688/1.359, allocations: 2.472 MB / 0.7523 GB, free: 82.76 MB / 458.7 MB Notification: Performance of pre-optimization done (n=427): time 9.829e-06/1.359, allocations: 0 / 0.7523 GB, free: 82.76 MB / 458.7 MB Notification: Performance of matching and sorting (n=502): time 0.04102/1.4, allocations: 19.44 MB / 0.7713 GB, free: 66.06 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.055e-05/1.401, allocations: 205.4 kB / 0.7715 GB, free: 65.83 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005736/1.406, allocations: 3.139 MB / 0.7746 GB, free: 63.06 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006238/1.407, allocations: 25.7 kB / 0.7746 GB, free: 63.03 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002817/1.41, allocations: 3.406 MB / 0.7779 GB, free: 59.95 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001901/1.412, allocations: 1.727 MB / 0.7796 GB, free: 58.38 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008054/1.413, allocations: 0 / 0.7796 GB, free: 58.38 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007582/1.413, allocations: 0.6868 MB / 0.7803 GB, free: 57.79 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004621/1.418, allocations: 2.82 MB / 0.783 GB, free: 55.23 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006137/1.424, allocations: 7.01 MB / 0.7899 GB, free: 46.76 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007154/1.431, allocations: 4.547 MB / 0.7943 GB, free: 43.17 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001388/1.431, allocations: 40 kB / 0.7943 GB, free: 43.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=1181) (initialization): time 0.01786/1.449, allocations: 9.936 MB / 0.804 GB, free: 34.58 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/1.449, allocations: 4.938 kB / 0.804 GB, free: 34.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002641/1.45, allocations: 147.3 kB / 0.8042 GB, free: 34.43 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002256/1.452, allocations: 0.9301 MB / 0.8051 GB, free: 33.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00752/1.459, allocations: 2.008 MB / 0.8071 GB, free: 31.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009125/1.469, allocations: 6.617 MB / 0.8135 GB, free: 25.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007106/1.476, allocations: 258.6 kB / 0.8138 GB, free: 25.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00202/1.478, allocations: 498.6 kB / 0.8142 GB, free: 25.21 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 41 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rightTrail.color[3],rightTrail.color[2],rightTrail.color[1],leftTrail.color[3],leftTrail.color[2],leftTrail.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[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],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1096): * Single equations (assignments): 1086 * 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.003094/1.481, allocations: 0.4926 MB / 0.8147 GB, free: 24.71 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00134/1.482, allocations: 418.7 kB / 0.8151 GB, free: 24.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01128/1.494, allocations: 5.34 MB / 0.8203 GB, free: 19.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002252/1.494, allocations: 54.86 kB / 0.8204 GB, free: 19.75 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.734e-05/1.494, allocations: 12 kB / 0.8204 GB, free: 19.74 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.95e-05/1.494, allocations: 29.72 kB / 0.8204 GB, free: 19.74 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02631/1.52, allocations: 14.2 MB / 0.8343 GB, free: 6.344 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.538e-05/1.52, allocations: 8 kB / 0.8343 GB, free: 6.336 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003493/1.524, allocations: 0.7645 MB / 0.835 GB, free: 5.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001878/1.526, allocations: 0.7515 MB / 0.8358 GB, free: 4.801 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006607/1.527, allocations: 27.98 kB / 0.8358 GB, free: 4.773 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1657/1.692, allocations: 6.002 MB / 0.8417 GB, free: 123.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.166e-05/1.692, allocations: 11.06 kB / 0.8417 GB, free: 123.3 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01255/1.705, allocations: 10.22 MB / 0.8517 GB, free: 121.6 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01612/1.721, allocations: 13.93 MB / 0.8653 GB, free: 119.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001252/1.722, allocations: 491.1 kB / 0.8657 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006525/1.723, allocations: 17.81 kB / 0.8658 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001979/1.725, allocations: 88.78 kB / 0.8658 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004148/1.725, allocations: 264 kB / 0.8661 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000252/1.726, allocations: 132.7 kB / 0.8662 GB, free: 119.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002694/1.728, allocations: 2.069 MB / 0.8682 GB, free: 119.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006498/1.735, allocations: 1.257 MB / 0.8695 GB, free: 119.1 MB / 458.7 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,revolute2.phi,revolute.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (430): * Single equations (assignments): 419 * 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.0006316/1.736, allocations: 219.9 kB / 0.8697 GB, free: 119.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01043/1.746, allocations: 7.583 MB / 0.8771 GB, free: 118.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/1.746, allocations: 3.844 kB / 0.8771 GB, free: 118.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00452/1.751, allocations: 3.311 MB / 0.8803 GB, free: 117.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002618/1.753, allocations: 337.4 kB / 0.8806 GB, free: 117.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02332/1.777, allocations: 11.36 MB / 0.8917 GB, free: 115.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006193/1.783, allocations: 4.585 MB / 0.8962 GB, free: 114.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.683e-06/1.783, allocations: 3.469 kB / 0.8962 GB, free: 114.8 MB / 458.7 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)