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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9384/0.9384, allocations: 177.2 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.02866/0.02866, allocations: 7.121 MB / 266.3 MB, free: 6.312 MB / 250.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 392.4 MB, free: 3.977 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.031e-05/1.167e-05, allocations: 2.281 kB / 392.4 MB, free: 3.973 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.01249/0.01251, allocations: 13.96 MB / 406.4 MB, free: 5.953 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006765/0.01927, allocations: 3.994 MB / 410.3 MB, free: 1.945 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001323/0.02059, allocations: 75.69 kB / 410.4 MB, free: 1.871 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001197/0.02179, allocations: 0.6785 MB / 411.1 MB, free: 1.188 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1591/0.1809, allocations: 2.341 MB / 413.4 MB, free: 15.32 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001447/0.1824, allocations: 479.8 kB / 413.9 MB, free: 15.3 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005258/0.1876, allocations: 4.713 MB / 418.6 MB, free: 14.35 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001843/0.1895, allocations: 1.595 MB / 420.2 MB, free: 14.16 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002998/0.1925, allocations: 2.624 MB / 422.8 MB, free: 13.43 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002558/0.195, allocations: 2.301 MB / 425.1 MB, free: 12.95 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007823/0.1958, allocations: 410.7 kB / 425.5 MB, free: 12.95 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001561/0.1974, allocations: 1.054 MB / 426.6 MB, free: 12.84 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001282/0.1986, allocations: 2.23 MB / 428.8 MB, free: 11.91 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001443/0.2001, allocations: 1.55 MB / 430.4 MB, free: 11.22 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004788/0.2049, allocations: 8.13 MB / 438.5 MB, free: 6.461 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2049, allocations: 3.531 kB / 438.5 MB, free: 6.461 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2049, allocations: 1.031 kB / 438.5 MB, free: 6.461 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.312e-05/0.2049, allocations: 0 / 438.5 MB, free: 6.461 MB / 330.7 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.02454/0.2295, allocations: 12.23 MB / 450.7 MB, free: 12.26 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.2295, allocations: 8.625 kB / 450.7 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009271/0.2305, allocations: 0.9434 MB / 451.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004306/0.2348, allocations: 2.271 MB / 454 MB, free: 9.082 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003129/0.2379, allocations: 2.371 MB / 456.3 MB, free: 6.875 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001542/0.238, allocations: 308.2 kB / 456.6 MB, free: 6.629 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005548/0.2386, allocations: 406.2 kB / 457 MB, free: 6.289 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01735/0.2559, allocations: 15.3 MB / 472.3 MB, free: 6.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.373e-05/0.256, allocations: 58.2 kB / 472.4 MB, free: 6.375 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004292/0.2565, allocations: 199.6 kB / 472.6 MB, free: 6.238 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002603/0.2591, allocations: 2.858 MB / 475.4 MB, free: 3.414 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02102/0.2801, allocations: 15.93 MB / 491.4 MB, free: 3.699 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0437/0.3238, allocations: 50.14 MB / 0.5288 GB, free: 1.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01664/0.3404, allocations: 7.219 MB / 0.5359 GB, free: 9.945 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002813/0.3432, allocations: 2.831 MB / 0.5386 GB, free: 7.109 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.014/0.3572, allocations: 11.79 MB / 0.5501 GB, free: 11.45 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006374/0.3636, allocations: 4.074 MB / 0.5541 GB, free: 7.258 MB / 458.7 MB Notification: Performance of pre-optimization done (n=429): time 6.813e-06/0.3636, allocations: 0 / 0.5541 GB, free: 7.258 MB / 458.7 MB Notification: Performance of matching and sorting (n=504): time 0.2043/0.5679, allocations: 44.06 MB / 0.5971 GB, free: 138.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/0.568, allocations: 0.8239 MB / 0.598 GB, free: 137.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004483/0.5725, allocations: 4.54 MB / 0.6024 GB, free: 135.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003865/0.5729, allocations: 103.7 kB / 0.6025 GB, free: 135.6 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001661/0.5746, allocations: 3.615 MB / 0.606 GB, free: 132.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001103/0.5757, allocations: 1.864 MB / 0.6078 GB, free: 131.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001492/0.5772, allocations: 1.671 MB / 0.6095 GB, free: 130.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 3.309e-05/0.5772, allocations: 311 kB / 0.6098 GB, free: 130.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003228/0.5804, allocations: 3.013 MB / 0.6127 GB, free: 129.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003913/0.5843, allocations: 7.148 MB / 0.6197 GB, free: 122.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007275/0.5916, allocations: 11.11 MB / 0.6305 GB, free: 114.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.541e-05/0.5917, allocations: 40.69 kB / 0.6306 GB, free: 114.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.00981/0.6015, allocations: 11.07 MB / 0.6414 GB, free: 106.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.697e-05/0.6015, allocations: 89.7 kB / 0.6415 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.446e-05/0.6016, allocations: 140 kB / 0.6416 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/0.6027, allocations: 0.9415 MB / 0.6425 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002949/0.6057, allocations: 2.002 MB / 0.6445 GB, free: 103.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006403/0.6121, allocations: 7.904 MB / 0.6522 GB, free: 96.29 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00626/0.6183, allocations: 0.4903 MB / 0.6527 GB, free: 95.87 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00151/0.6198, allocations: 483.2 kB / 0.6531 GB, free: 95.42 MB / 474.7 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 (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.004701/0.6245, allocations: 2.538 MB / 0.6556 GB, free: 93.15 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001482/0.626, allocations: 0.489 MB / 0.6561 GB, free: 92.66 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006677/0.6327, allocations: 5.796 MB / 0.6618 GB, free: 87 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00012/0.6328, allocations: 74.38 kB / 0.6618 GB, free: 86.93 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.899e-05/0.6328, allocations: 19.94 kB / 0.6618 GB, free: 86.91 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.578e-05/0.6329, allocations: 31.91 kB / 0.6619 GB, free: 86.88 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02011/0.653, allocations: 17.87 MB / 0.6793 GB, free: 68.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.169e-05/0.653, allocations: 8.969 kB / 0.6793 GB, free: 68.65 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001904/0.6549, allocations: 0.8035 MB / 0.6801 GB, free: 67.85 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001092/0.656, allocations: 0.7784 MB / 0.6809 GB, free: 67.05 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003256/0.6563, allocations: 99.98 kB / 0.681 GB, free: 66.96 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005486/0.6618, allocations: 7.191 MB / 0.688 GB, free: 59.66 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.838e-06/0.6618, allocations: 16.91 kB / 0.688 GB, free: 59.64 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/0.6722, allocations: 9.977 MB / 0.6978 GB, free: 49.42 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001499/0.6737, allocations: 480.6 kB / 0.6982 GB, free: 48.95 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007446/0.6745, allocations: 99.58 kB / 0.6983 GB, free: 48.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/0.6759, allocations: 252.6 kB / 0.6986 GB, free: 48.61 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004696/0.6764, allocations: 338.9 kB / 0.6989 GB, free: 48.28 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000175/0.6765, allocations: 136 kB / 0.699 GB, free: 48.14 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003063/0.6796, allocations: 2.692 MB / 0.7016 GB, free: 45.45 MB / 474.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6796, allocations: 0 / 0.7016 GB, free: 45.45 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006182/0.6858, allocations: 1.488 MB / 0.7031 GB, free: 43.96 MB / 474.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,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.01091/0.6967, allocations: 10.75 MB / 0.7136 GB, free: 32.96 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009608/0.7063, allocations: 7.66 MB / 0.7211 GB, free: 25.29 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/0.7063, allocations: 4 kB / 0.7211 GB, free: 25.28 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003102/0.7094, allocations: 3.099 MB / 0.7241 GB, free: 22.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002941/0.7123, allocations: 0.6929 MB / 0.7248 GB, free: 21.49 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2334/0.9457, allocations: 60.89 MB / 0.7842 GB, free: 144.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003914/0.9497, allocations: 3.516 MB / 0.7877 GB, free: 143.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004395/0.954, allocations: 2.403 MB / 0.79 GB, free: 143.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003537/0.9576, allocations: 2.595 MB / 0.7926 GB, free: 141 MB / 490.7 MB Notification: Performance of SimCode: time 1.743e-06/0.9576, allocations: 0 / 0.7926 GB, free: 141 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1154/1.073, allocations: 104.7 MB / 0.8948 GB, free: 38.29 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/14.19, allocations: 15 kB / 0.8949 GB, free: 38.28 MB / 490.7 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TwoTrackWithDifferentialGear.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.18147059623152] Failed to read output from testmodel.py, exit status != 0: 14.324880240485072 14.332269733 14.125763967 Calling exit ...