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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] 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.0517/0.0517, allocations: 9.248 MB / 311.9 MB, free: 0.7305 MB / 238.1 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 68.12 kB / 434.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.09982, allocations: 54.26 MB / 488.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear): time 0.01921/0.119, allocations: 16.24 MB / 0.4927 GB, free: 7.371 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009645/0.1287, allocations: 4.119 MB / 0.4967 GB, free: 3.238 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00237/0.131, allocations: 67.88 kB / 0.4968 GB, free: 3.172 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001751/0.1328, allocations: 0.6785 MB / 0.4975 GB, free: 2.488 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006218/0.139, allocations: 2.275 MB / 0.4997 GB, free: 208 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001638/0.1406, allocations: 483.2 kB / 0.5002 GB, free: 15.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00761/0.1483, allocations: 4.64 MB / 0.5047 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003025/0.1513, allocations: 1.615 MB / 0.5063 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003511/0.1548, allocations: 1.747 MB / 0.508 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004238/0.159, allocations: 2.603 MB / 0.5105 GB, free: 5.051 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001308/0.1603, allocations: 416 kB / 0.5109 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002712/0.1631, allocations: 1.073 MB / 0.512 GB, free: 3.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002856/0.1659, allocations: 2.192 MB / 0.5141 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2369/0.4028, allocations: 2.814 MB / 0.5168 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01151/0.4143, allocations: 8.227 MB / 0.5249 GB, free: 7.852 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4143, allocations: 0 / 0.5249 GB, free: 7.852 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4143, allocations: 6.719 kB / 0.5249 GB, free: 7.848 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003768/0.4147, allocations: 0 / 0.5249 GB, free: 7.848 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.05147/0.4662, allocations: 12.12 MB / 0.5367 GB, free: 5.246 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.4662, allocations: 14.78 kB / 0.5367 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002978/0.4692, allocations: 0.9361 MB / 0.5376 GB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008286/0.4775, allocations: 2.113 MB / 0.5397 GB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007054/0.4845, allocations: 2.514 MB / 0.5422 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003369/0.4849, allocations: 305.5 kB / 0.5425 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001859/0.4867, allocations: 401.5 kB / 0.5428 GB, free: 2.602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03485/0.5216, allocations: 15.29 MB / 0.5578 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002355/0.5218, allocations: 53.31 kB / 0.5578 GB, free: 8.035 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001093/0.5229, allocations: 191.7 kB / 0.558 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005287/0.5282, allocations: 2.858 MB / 0.5608 GB, free: 5.078 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04187/0.5701, allocations: 16.01 MB / 0.5764 GB, free: 5.281 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09351/0.6636, allocations: 52.66 MB / 0.6279 GB, free: 220 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03541/0.699, allocations: 7.396 MB / 0.6351 GB, free: 8.711 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00598/0.705, allocations: 2.826 MB / 0.6378 GB, free: 5.883 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03709/0.742, allocations: 20.41 MB / 0.6578 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01201/0.7541, allocations: 3.797 MB / 0.6615 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=429): time 1.115e-05/0.7541, allocations: 0 / 0.6615 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=504): time 0.08745/0.8415, allocations: 44.15 MB / 0.7046 GB, free: 15.19 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004514/0.842, allocations: 0.8233 MB / 0.7054 GB, free: 14.19 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007956/0.8499, allocations: 4.417 MB / 0.7097 GB, free: 9.746 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008612/0.8508, allocations: 105.7 kB / 0.7098 GB, free: 9.637 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004169/0.855, allocations: 3.642 MB / 0.7134 GB, free: 6.012 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002973/0.8579, allocations: 1.889 MB / 0.7152 GB, free: 4.148 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004597/0.8625, allocations: 1.689 MB / 0.7169 GB, free: 2.449 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.8627, allocations: 301.1 kB / 0.7172 GB, free: 2.152 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2411/1.104, allocations: 2.994 MB / 0.7201 GB, free: 178.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008711/1.113, allocations: 7.129 MB / 0.727 GB, free: 173.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01333/1.126, allocations: 11.13 MB / 0.7379 GB, free: 166.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001812/1.126, allocations: 43.25 kB / 0.7379 GB, free: 166.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1159) (initialization): time 0.01986/1.146, allocations: 11.05 MB / 0.7487 GB, free: 163 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001378/1.146, allocations: 93.61 kB / 0.7488 GB, free: 162.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001621/1.146, allocations: 144.2 kB / 0.749 GB, free: 162.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001912/1.148, allocations: 0.9392 MB / 0.7499 GB, free: 162.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006652/1.155, allocations: 1.993 MB / 0.7518 GB, free: 162.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009335/1.164, allocations: 8.111 MB / 0.7598 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00666/1.171, allocations: 476.6 kB / 0.7602 GB, free: 157.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001438/1.172, allocations: 488.2 kB / 0.7607 GB, free: 157 MB / 0.545 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.004798/1.177, allocations: 2.542 MB / 0.7632 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008925/1.178, allocations: 0.4949 MB / 0.7636 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008279/1.186, allocations: 5.814 MB / 0.7693 GB, free: 149.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001265/1.186, allocations: 70.08 kB / 0.7694 GB, free: 149.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.331e-05/1.186, allocations: 20 kB / 0.7694 GB, free: 149.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.858e-05/1.186, allocations: 33.03 kB / 0.7694 GB, free: 149.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02426/1.211, allocations: 18.58 MB / 0.7876 GB, free: 131.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.328e-05/1.211, allocations: 8 kB / 0.7876 GB, free: 131.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002876/1.214, allocations: 0.7996 MB / 0.7884 GB, free: 130.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001625/1.215, allocations: 0.7876 MB / 0.7891 GB, free: 130.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003544/1.215, allocations: 95.98 kB / 0.7892 GB, free: 130 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007773/1.223, allocations: 7.406 MB / 0.7965 GB, free: 122.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/1.223, allocations: 11.94 kB / 0.7965 GB, free: 122.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01274/1.236, allocations: 10.02 MB / 0.8063 GB, free: 112.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001607/1.238, allocations: 0.5446 MB / 0.8068 GB, free: 111.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008404/1.238, allocations: 99.98 kB / 0.8069 GB, free: 111.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002053/1.241, allocations: 235.2 kB / 0.8071 GB, free: 111.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005931/1.241, allocations: 323 kB / 0.8074 GB, free: 111 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002293/1.241, allocations: 136 kB / 0.8075 GB, free: 110.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003759/1.245, allocations: 2.786 MB / 0.8103 GB, free: 108 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/1.245, allocations: 0 / 0.8103 GB, free: 108 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006615/1.252, allocations: 1.515 MB / 0.8117 GB, free: 106.5 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.01212/1.264, allocations: 10.8 MB / 0.8223 GB, free: 95.48 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01098/1.275, allocations: 7.935 MB / 0.83 GB, free: 87.46 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.739e-05/1.275, allocations: 0 / 0.83 GB, free: 87.46 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004305/1.279, allocations: 3.415 MB / 0.8334 GB, free: 83.95 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003885/1.283, allocations: 0.7003 MB / 0.8341 GB, free: 83.28 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07599/1.359, allocations: 61.39 MB / 0.894 GB, free: 15.88 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004231/1.363, allocations: 4.029 MB / 0.8979 GB, free: 11.82 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005058/1.368, allocations: 2.395 MB / 0.9003 GB, free: 9.422 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00313/1.371, allocations: 2.592 MB / 0.9028 GB, free: 6.828 MB / 0.545 GB Notification: Performance of SimCode: time 1.062e-06/1.371, allocations: 0 / 0.9028 GB, free: 6.828 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3765/1.748, allocations: 104.1 MB / 1.005 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.47/24.22, allocations: 18.27 kB / 1.005 GB, free: 141.7 MB / 0.5606 GB " [Timeout remaining time 636] (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 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TwoTrackWithDifferentialGear.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TwoTrackWithDifferentialGear.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 27.243661661166698] Failed to read output from testmodel.py, exit status != 0: 24.36824430571869 24.388280193 23.970182224 Calling exit ...