Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 95.12 kB / 292.1 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4255/0.4255, allocations: 44.21 MB / 387.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.00036, allocations: 8 kB / 460 MB, free: 1.457 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4211/0.4215, allocations: 61.9 MB / 0.5096 GB, free: 37.97 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1572/0.5787, allocations: 110.6 MB / 0.6177 GB, free: 496 kB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003042/0.5791, allocations: 91.92 kB / 0.6178 GB, free: 408 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.346/1.925, allocations: 280.7 MB / 0.8919 GB, free: 43.73 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.168e-06/1.925, allocations: 0 / 0.8919 GB, free: 43.73 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0015/1.927, allocations: 280 kB / 0.8921 GB, free: 43.72 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5288 * Number of variables: 5288 Notification: Performance of Generate backend data structure: time 0.05517/1.982, allocations: 13.75 MB / 0.9056 GB, free: 38.34 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/1.982, allocations: 10.47 kB / 0.9056 GB, free: 38.34 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01565/1.998, allocations: 2.618 MB / 0.9081 GB, free: 38.17 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07837/2.076, allocations: 18.43 MB / 0.9261 GB, free: 37.2 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04039/2.116, allocations: 14.15 MB / 0.9399 GB, free: 35.72 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001465/2.118, allocations: 1.071 MB / 0.941 GB, free: 35.69 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009435/2.127, allocations: 1.425 MB / 0.9424 GB, free: 35.68 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09702/2.225, allocations: 35.64 MB / 0.9772 GB, free: 30.09 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00147/2.226, allocations: 136.8 kB / 0.9773 GB, free: 30.08 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009984/2.236, allocations: 0.6475 MB / 0.9779 GB, free: 30.08 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005949/2.242, allocations: 3.598 MB / 0.9815 GB, free: 30.05 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06675/2.309, allocations: 32.27 MB / 1.013 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6257/2.935, allocations: 138.3 MB / 1.148 GB, free: 31.44 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03406/2.969, allocations: 15.2 MB / 1.163 GB, free: 29.55 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06905/3.038, allocations: 34.51 MB / 1.197 GB, free: 26.66 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.417e-05/3.038, allocations: 99.16 kB / 1.197 GB, free: 26.61 MB / 0.573 GB Notification: Performance of pre-optimization done (n=705): time 9.748e-06/3.038, allocations: 3.594 kB / 1.197 GB, free: 26.61 MB / 0.573 GB Notification: Performance of matching and sorting (n=787): time 0.2487/3.287, allocations: 83.28 MB / 1.278 GB, free: 14.49 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001637/3.287, allocations: 304.9 kB / 1.278 GB, free: 14.14 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02166/3.309, allocations: 9.175 MB / 1.287 GB, free: 6.66 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001829/3.31, allocations: 129.7 kB / 1.287 GB, free: 6.527 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.009656/3.32, allocations: 9.579 MB / 1.297 GB, free: 14.04 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.004933/3.325, allocations: 2.851 MB / 1.3 GB, free: 11.52 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002917/3.328, allocations: 346.5 kB / 1.3 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.001663/3.33, allocations: 1.077 MB / 1.301 GB, free: 10.31 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01492/3.345, allocations: 8.001 MB / 1.309 GB, free: 3.484 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4283/3.773, allocations: 18.68 MB / 1.327 GB, free: 113.6 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03536/3.808, allocations: 11.76 MB / 1.338 GB, free: 113.4 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001622/3.81, allocations: 93.38 kB / 1.339 GB, free: 113.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2328) (initialization): time 0.07824/3.888, allocations: 27 MB / 1.365 GB, free: 111.9 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003807/3.889, allocations: 140.9 kB / 1.365 GB, free: 111.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006023/3.89, allocations: 328.4 kB / 1.365 GB, free: 111.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007531/3.897, allocations: 2.402 MB / 1.368 GB, free: 111.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01734/3.914, allocations: 4.133 MB / 1.372 GB, free: 111.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01939/3.934, allocations: 14.78 MB / 1.386 GB, free: 108.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01708/3.951, allocations: 1.062 MB / 1.387 GB, free: 108.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004952/3.956, allocations: 0.9732 MB / 1.388 GB, free: 108.7 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1479 * Number of states: 0 () * Number of discrete variables: 97 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2132): * Single equations (assignments): 2115 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01895/3.975, allocations: 6.999 MB / 1.395 GB, free: 108.2 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002701/3.978, allocations: 0.9809 MB / 1.396 GB, free: 108.2 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03304/4.011, allocations: 15.32 MB / 1.411 GB, free: 103.7 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002197/4.011, allocations: 158.9 kB / 1.411 GB, free: 103.7 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-05/4.011, allocations: 13.75 kB / 1.411 GB, free: 103.7 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001776/4.011, allocations: 38.52 kB / 1.411 GB, free: 103.7 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07927/4.091, allocations: 33.56 MB / 1.444 GB, free: 91.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.103e-05/4.091, allocations: 3.719 kB / 1.444 GB, free: 91.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007364/4.098, allocations: 1.318 MB / 1.445 GB, free: 91.56 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006234/4.104, allocations: 1.773 MB / 1.447 GB, free: 91.2 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001932/4.106, allocations: 129.9 kB / 1.447 GB, free: 91.12 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01721/4.124, allocations: 13.38 MB / 1.46 GB, free: 83.75 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-06/4.124, allocations: 11.94 kB / 1.46 GB, free: 83.74 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04219/4.166, allocations: 25.63 MB / 1.485 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003432/4.169, allocations: 0.9671 MB / 1.486 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00449/4.174, allocations: 119.6 kB / 1.486 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007949/4.182, allocations: 0.5117 MB / 1.487 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00221/4.184, allocations: 418.6 kB / 1.487 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00148/4.186, allocations: 186.7 kB / 1.487 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.01479/4.2, allocations: 6.358 MB / 1.493 GB, free: 53.79 MB / 0.6042 GB Notification: Performance of sort global known variables: time 8.71e-07/4.2, allocations: 0 / 1.493 GB, free: 53.79 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0233/4.224, allocations: 3.323 MB / 1.497 GB, free: 50.48 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (611): * Single equations (assignments): 594 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04463/4.268, allocations: 27.1 MB / 1.523 GB, free: 26.04 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.3684/4.637, allocations: 19.23 MB / 1.542 GB, free: 119.5 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/4.637, allocations: 4.484 kB / 1.542 GB, free: 119.5 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.01393/4.651, allocations: 7.416 MB / 1.549 GB, free: 119.2 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00865/4.66, allocations: 1.243 MB / 1.55 GB, free: 119.2 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6831/5.343, allocations: 361.1 MB / 1.903 GB, free: 80.66 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02574/5.368, allocations: 10.29 MB / 1.913 GB, free: 79.57 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.02136/5.39, allocations: 6.478 MB / 1.919 GB, free: 79.47 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01317/5.403, allocations: 7.212 MB / 1.927 GB, free: 78.13 MB / 0.6823 GB Notification: Performance of SimCode: time 1.332e-06/5.403, allocations: 0 / 1.927 GB, free: 78.13 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6752/6.078, allocations: 229.6 MB / 2.151 GB, free: 132.2 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001603/6.079, allocations: 215.1 kB / 2.151 GB, free: 132 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/17.78, allocations: 3.375 kB / 2.151 GB, free: 132 MB / 0.6823 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat