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.001332/0.001332, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001435/0.001435, allocations: 177.3 kB / 15.95 MB, free: 216 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.501/1.501, allocations: 223.2 MB / 239.9 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.2419/0.2419, allocations: 9.103 MB / 300.1 MB, free: 2.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003577, allocations: 8 kB / 363.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1249, allocations: 52.43 MB / 415.5 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.27/0.395, allocations: 64.81 MB / 480.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04185/0.4369, allocations: 15.48 MB / 495.8 MB, free: 7.043 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01602/0.4529, allocations: 282.5 kB / 496.1 MB, free: 7.012 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01216/0.4651, allocations: 3.233 MB / 499.3 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03824/0.5034, allocations: 9.442 MB / 0.4968 GB, free: 1.188 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005558/0.509, allocations: 432.4 kB / 0.4973 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009436/0.5185, allocations: 2.768 MB / 0.5 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003799/0.5224, allocations: 1.652 MB / 0.5016 GB, free: 14.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003471/0.5259, allocations: 1.347 MB / 0.5029 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004011/0.5299, allocations: 1.864 MB / 0.5047 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001368/0.5313, allocations: 241.1 kB / 0.5049 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002788/0.5341, allocations: 0.7949 MB / 0.5057 GB, free: 13.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002554/0.5367, allocations: 1.853 MB / 0.5075 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002152/0.5388, allocations: 1.076 MB / 0.5086 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008909/0.5477, allocations: 5.939 MB / 0.5144 GB, free: 4.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.5478, allocations: 0 / 0.5144 GB, free: 4.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.5478, allocations: 0 / 0.5144 GB, free: 4.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003195/0.5481, allocations: 0 / 0.5144 GB, free: 4.594 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.0465/0.5946, allocations: 11.09 MB / 0.5252 GB, free: 9.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.5947, allocations: 8.031 kB / 0.5252 GB, free: 9.402 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003275/0.598, allocations: 0.9401 MB / 0.5261 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01019/0.6082, allocations: 2.479 MB / 0.5286 GB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007874/0.6161, allocations: 2.398 MB / 0.5309 GB, free: 3.504 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000391/0.6166, allocations: 300.8 kB / 0.5312 GB, free: 3.211 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00227/0.6188, allocations: 406.1 kB / 0.5316 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03885/0.6577, allocations: 15.45 MB / 0.5467 GB, free: 2.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002935/0.658, allocations: 59.42 kB / 0.5467 GB, free: 2.461 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001609/0.6597, allocations: 191.8 kB / 0.5469 GB, free: 2.273 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005229/0.6649, allocations: 2.859 MB / 0.5497 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03978/0.7047, allocations: 16.18 MB / 0.5655 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3485/1.053, allocations: 51.99 MB / 0.6163 GB, free: 28.37 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03398/1.087, allocations: 7.675 MB / 0.6238 GB, free: 27.56 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007305/1.095, allocations: 8.149 MB / 0.6317 GB, free: 20.72 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03005/1.125, allocations: 5.576 MB / 0.6372 GB, free: 19.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=480): time 2.513e-05/1.125, allocations: 3.984 kB / 0.6372 GB, free: 19.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=557): time 0.1274/1.252, allocations: 76.55 MB / 0.7119 GB, free: 11.75 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007534/1.253, allocations: 1.925 MB / 0.7138 GB, free: 9.414 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005734/1.259, allocations: 4.18 MB / 0.7179 GB, free: 6.305 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007597/1.26, allocations: 122.5 kB / 0.718 GB, free: 6.246 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002649/1.262, allocations: 3.365 MB / 0.7213 GB, free: 3.516 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002519/1.265, allocations: 1.978 MB / 0.7232 GB, free: 1.84 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004559/1.265, allocations: 177.4 kB / 0.7234 GB, free: 1.805 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0005525/1.266, allocations: 0.6778 MB / 0.724 GB, free: 1.262 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005561/1.271, allocations: 2.999 MB / 0.727 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008517/1.28, allocations: 7.104 MB / 0.7339 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007832/1.288, allocations: 4.654 MB / 0.7385 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001383/1.288, allocations: 44 kB / 0.7385 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1170) (initialization): time 0.02095/1.309, allocations: 11.08 MB / 0.7493 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001541/1.309, allocations: 89.7 kB / 0.7494 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001967/1.309, allocations: 140 kB / 0.7495 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002273/1.312, allocations: 0.9626 MB / 0.7505 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007612/1.319, allocations: 2.02 MB / 0.7525 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/1.331, allocations: 7.811 MB / 0.7601 GB, free: 4.602 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006626/1.337, allocations: 493 kB / 0.7606 GB, free: 4.258 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001469/1.339, allocations: 493.2 kB / 0.761 GB, free: 3.852 MB / 0.5137 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 ($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 (1084): * Single equations (assignments): 1074 * 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%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005142/1.344, allocations: 2.548 MB / 0.7635 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001271/1.345, allocations: 497.9 kB / 0.764 GB, free: 1.887 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2123/1.557, allocations: 5.93 MB / 0.7698 GB, free: 184.3 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001794/1.558, allocations: 81.14 kB / 0.7699 GB, free: 184.3 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.069e-05/1.558, allocations: 25.69 kB / 0.7699 GB, free: 184.3 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.064e-05/1.558, allocations: 43.78 kB / 0.7699 GB, free: 184.3 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0295/1.587, allocations: 24.07 MB / 0.7934 GB, free: 174.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.694e-05/1.587, allocations: 19.41 kB / 0.7934 GB, free: 174.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003385/1.591, allocations: 0.8931 MB / 0.7943 GB, free: 174.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001707/1.593, allocations: 0.7918 MB / 0.7951 GB, free: 174.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003403/1.593, allocations: 114.6 kB / 0.7952 GB, free: 174.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00813/1.601, allocations: 7.045 MB / 0.8021 GB, free: 170.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.039e-05/1.601, allocations: 23.72 kB / 0.8021 GB, free: 170.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01607/1.617, allocations: 12.94 MB / 0.8147 GB, free: 163.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001458/1.619, allocations: 0.5621 MB / 0.8153 GB, free: 163.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000776/1.619, allocations: 114.9 kB / 0.8154 GB, free: 163.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002478/1.622, allocations: 251.9 kB / 0.8156 GB, free: 163.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008012/1.623, allocations: 389.7 kB / 0.816 GB, free: 163 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003013/1.623, allocations: 154.5 kB / 0.8162 GB, free: 162.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00472/1.628, allocations: 2.653 MB / 0.8187 GB, free: 162 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.6e-07/1.628, allocations: 0 / 0.8187 GB, free: 162 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01084/1.639, allocations: 1.537 MB / 0.8203 GB, free: 161.8 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 75 * 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 (483): * Single equations (assignments): 472 * 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.01762/1.656, allocations: 17.73 MB / 0.8376 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01305/1.669, allocations: 8.398 MB / 0.8458 GB, free: 146.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.441e-05/1.669, allocations: 0 / 0.8458 GB, free: 146.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005931/1.675, allocations: 3.884 MB / 0.8496 GB, free: 143.2 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004017/1.679, allocations: 0.6021 MB / 0.8502 GB, free: 142.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2638/1.943, allocations: 144.2 MB / 0.991 GB, free: 181.8 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0039/1.947, allocations: 4.163 MB / 0.995 GB, free: 181 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006794/1.954, allocations: 2.48 MB / 0.9975 GB, free: 180.9 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004519/1.959, allocations: 2.616 MB / 1 GB, free: 180.9 MB / 0.5137 GB Notification: Performance of SimCode: time 7.92e-07/1.959, allocations: 2.969 kB / 1 GB, free: 180.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.152/2.111, allocations: 109.1 MB / 1.107 GB, free: 107.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001358/2.111, allocations: 232.4 kB / 1.107 GB, free: 107.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.701/7.812, allocations: 0 / 1.107 GB, free: 107.5 MB / 0.5137 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) Environment - environmentSimulation: