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.005228/0.005228, allocations: 101.9 kB / 15.73 MB, free: 6.496 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.00124/0.00124, allocations: 199.1 kB / 16.68 MB, free: 6.375 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1483/0.1483, allocations: 9.095 MB / 299.6 MB, free: 1.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 71.81 kB / 414.2 MB, free: 8.809 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.2236, allocations: 51.43 MB / 465.6 MB, free: 17.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.01212/0.2358, allocations: 16.16 MB / 481.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006946/0.2428, allocations: 4.109 MB / 485.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002116/0.2449, allocations: 67 kB / 485.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00119/0.2461, allocations: 0.6472 MB / 486.6 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004186/0.2503, allocations: 2.205 MB / 488.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009419/0.2513, allocations: 484.2 kB / 489.3 MB, free: 408 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005291/0.2566, allocations: 4.651 MB / 493.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002389/0.259, allocations: 1.889 MB / 495.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002513/0.2615, allocations: 1.728 MB / 497.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002967/0.2645, allocations: 2.422 MB / 499.9 MB, free: 9.727 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007102/0.2652, allocations: 408 kB / 0.4886 GB, free: 9.328 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001974/0.2672, allocations: 1.042 MB / 0.4896 GB, free: 8.285 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001985/0.2692, allocations: 2.142 MB / 0.4917 GB, free: 6.137 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002979/0.2722, allocations: 2.819 MB / 0.4945 GB, free: 3.301 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00915/0.2814, allocations: 8.219 MB / 0.5025 GB, free: 11.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2814, allocations: 0 / 0.5025 GB, free: 11.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.078e-06/0.2814, allocations: 0 / 0.5025 GB, free: 11.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000143/0.2816, allocations: 3.938 kB / 0.5025 GB, free: 11.04 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.04762/0.3292, allocations: 12.13 MB / 0.5143 GB, free: 14.81 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3292, allocations: 12.03 kB / 0.5144 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001276/0.3305, allocations: 0.9442 MB / 0.5153 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00782/0.3384, allocations: 2.103 MB / 0.5173 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004151/0.3425, allocations: 2.516 MB / 0.5198 GB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002413/0.3428, allocations: 307.7 kB / 0.5201 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008027/0.3436, allocations: 407.7 kB / 0.5205 GB, free: 8.461 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03197/0.3756, allocations: 15.27 MB / 0.5354 GB, free: 8.336 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001504/0.3757, allocations: 59.52 kB / 0.5354 GB, free: 8.277 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006171/0.3764, allocations: 191.8 kB / 0.5356 GB, free: 8.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004774/0.3812, allocations: 2.855 MB / 0.5384 GB, free: 5.23 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03645/0.4176, allocations: 16.01 MB / 0.5541 GB, free: 5.199 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2601/0.6778, allocations: 52.67 MB / 0.6055 GB, free: 75.55 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03214/0.71, allocations: 7.603 MB / 0.6129 GB, free: 74.79 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00427/0.7143, allocations: 2.992 MB / 0.6158 GB, free: 73.78 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02097/0.7353, allocations: 20.4 MB / 0.6358 GB, free: 59.92 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008909/0.7442, allocations: 3.8 MB / 0.6395 GB, free: 58.85 MB / 462.1 MB Notification: Performance of pre-optimization done (n=429): time 7.173e-06/0.7442, allocations: 0 / 0.6395 GB, free: 58.85 MB / 462.1 MB Notification: Performance of matching and sorting (n=504): time 0.05563/0.7999, allocations: 44.17 MB / 0.6826 GB, free: 22.75 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/0.8001, allocations: 0.825 MB / 0.6834 GB, free: 21.75 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004382/0.8045, allocations: 4.414 MB / 0.6877 GB, free: 17.39 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004842/0.805, allocations: 101.7 kB / 0.6878 GB, free: 17.28 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001711/0.8067, allocations: 3.649 MB / 0.6914 GB, free: 13.76 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001203/0.8079, allocations: 1.894 MB / 0.6932 GB, free: 11.89 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001674/0.8096, allocations: 1.689 MB / 0.6949 GB, free: 10.19 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.851e-05/0.8096, allocations: 301.1 kB / 0.6952 GB, free: 9.895 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003629/0.8133, allocations: 2.992 MB / 0.6981 GB, free: 6.895 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005576/0.8188, allocations: 7.138 MB / 0.7051 GB, free: 13.84 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0142/0.8331, allocations: 11.13 MB / 0.7159 GB, free: 0.7383 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-05/0.8332, allocations: 44 kB / 0.716 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.01911/0.8523, allocations: 11.08 MB / 0.7268 GB, free: 5.586 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001613/0.8525, allocations: 98.66 kB / 0.7269 GB, free: 5.484 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000171/0.8527, allocations: 140 kB / 0.727 GB, free: 5.348 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002216/0.8549, allocations: 0.9402 MB / 0.7279 GB, free: 4.398 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006485/0.8614, allocations: 1.996 MB / 0.7299 GB, free: 2.398 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01212/0.8735, allocations: 8.116 MB / 0.7378 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005757/0.8793, allocations: 471.4 kB / 0.7383 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001264/0.8806, allocations: 495 kB / 0.7387 GB, free: 9.199 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.004748/0.8854, allocations: 2.532 MB / 0.7412 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/0.8865, allocations: 0.4929 MB / 0.7417 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01113/0.8976, allocations: 5.848 MB / 0.7474 GB, free: 264 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001491/0.8978, allocations: 63.98 kB / 0.7475 GB, free: 200 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.193e-05/0.8979, allocations: 23.98 kB / 0.7475 GB, free: 176 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.298e-05/0.8979, allocations: 31.91 kB / 0.7475 GB, free: 144 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02856/0.9265, allocations: 18.61 MB / 0.7657 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.992e-05/0.9266, allocations: 8 kB / 0.7657 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003262/0.9298, allocations: 0.7958 MB / 0.7665 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001983/0.9318, allocations: 0.7835 MB / 0.7672 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003789/0.9322, allocations: 104 kB / 0.7673 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01063/0.9429, allocations: 7.408 MB / 0.7746 GB, free: 3.812 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.2e-05/0.9429, allocations: 15.94 kB / 0.7746 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01605/0.959, allocations: 10.05 MB / 0.7844 GB, free: 9.496 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/0.9602, allocations: 0.5485 MB / 0.7849 GB, free: 8.926 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00092/0.9612, allocations: 91.98 kB / 0.785 GB, free: 8.836 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002368/0.9636, allocations: 231.7 kB / 0.7853 GB, free: 8.609 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006908/0.9643, allocations: 327 kB / 0.7856 GB, free: 8.289 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003051/0.9646, allocations: 128 kB / 0.7857 GB, free: 8.164 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004734/0.9693, allocations: 2.786 MB / 0.7884 GB, free: 5.371 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.31e-07/0.9693, allocations: 0 / 0.7884 GB, free: 5.371 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005683/0.975, allocations: 1.516 MB / 0.7899 GB, free: 3.855 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.2069/1.182, allocations: 10.82 MB / 0.8005 GB, free: 184.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01363/1.196, allocations: 8.273 MB / 0.8085 GB, free: 181.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.336e-05/1.196, allocations: 0.9062 kB / 0.8085 GB, free: 181.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005181/1.201, allocations: 3.636 MB / 0.8121 GB, free: 180.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004559/1.205, allocations: 0.6917 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.06948/1.275, 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.003385/1.278, allocations: 4.018 MB / 0.8767 GB, free: 129.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004417/1.283, allocations: 2.403 MB / 0.879 GB, free: 127.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002509/1.285, allocations: 2.6 MB / 0.8816 GB, free: 124.6 MB / 0.545 GB Notification: Performance of SimCode: time 6.61e-07/1.285, allocations: 0 / 0.8816 GB, free: 124.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1349/1.42, allocations: 103.3 MB / 0.9825 GB, free: 21.65 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.16/23.58, allocations: 11.94 kB / 0.9825 GB, free: 21.64 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)