Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001243/0.001242, allocations: 183.9 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.2 MB / 218.9 MB, free: 9.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008533/0.0008532, allocations: 101.8 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4084/0.4084, allocations: 43.47 MB / 358.6 MB, free: 52.36 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.658e-05/4.701e-05, allocations: 4 kB / 425.4 MB, free: 8.793 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1515, allocations: 58.85 MB / 484.3 MB, free: 13.84 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.475/0.6266, allocations: 109.5 MB / 0.5798 GB, free: 11.44 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.6269, allocations: 85.03 kB / 0.5799 GB, free: 11.36 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.8/2.427, allocations: 286 MB / 0.8592 GB, free: 34.89 MB / 0.4949 GB Notification: Performance of FrontEnd: time 2.385e-06/2.427, allocations: 0 / 0.8592 GB, free: 34.89 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 0.001035/2.428, allocations: 275.2 kB / 0.8595 GB, free: 34.89 MB / 0.4949 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5460 * Number of variables: 5460 Notification: Performance of Generate backend data structure: time 0.05479/2.483, allocations: 13.2 MB / 0.8723 GB, free: 32.96 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 5.8e-05/2.483, allocations: 12.41 kB / 0.8724 GB, free: 32.96 MB / 0.4949 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01653/2.499, allocations: 2.695 MB / 0.875 GB, free: 32.79 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07512/2.574, allocations: 18.53 MB / 0.8931 GB, free: 31.79 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04943/2.624, allocations: 14.9 MB / 0.9076 GB, free: 30.3 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002934/2.627, allocations: 1.103 MB / 0.9087 GB, free: 30.27 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01026/2.637, allocations: 1.459 MB / 0.9101 GB, free: 30.26 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09092/2.728, allocations: 36.24 MB / 0.9455 GB, free: 24.6 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001288/2.729, allocations: 133.7 kB / 0.9457 GB, free: 24.59 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009534/2.739, allocations: 0.6759 MB / 0.9463 GB, free: 24.58 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005806/2.745, allocations: 3.719 MB / 0.9499 GB, free: 24.55 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07137/2.816, allocations: 32.53 MB / 0.9817 GB, free: 15.44 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.64/3.456, allocations: 141.2 MB / 1.12 GB, free: 27.57 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03594/3.492, allocations: 15.61 MB / 1.135 GB, free: 25.68 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01642/3.509, allocations: 9.561 MB / 1.144 GB, free: 25.62 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07343/3.582, allocations: 35.73 MB / 1.179 GB, free: 22.94 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.8e-05/3.582, allocations: 99.98 kB / 1.179 GB, free: 22.89 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=747): time 1.533e-05/3.582, allocations: 3.938 kB / 1.179 GB, free: 22.89 MB / 0.5574 GB Notification: Performance of matching and sorting (n=829): time 0.213/3.795, allocations: 69.97 MB / 1.248 GB, free: 14.71 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003353/3.796, allocations: 306.3 kB / 1.248 GB, free: 14.35 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0298/3.826, allocations: 9.302 MB / 1.257 GB, free: 6.168 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.002733/3.828, allocations: 137.7 kB / 1.257 GB, free: 6.027 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.01176/3.84, allocations: 9.831 MB / 1.267 GB, free: 13.25 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 0.005414/3.846, allocations: 2.996 MB / 1.27 GB, free: 10.59 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003173/3.849, allocations: 354.6 kB / 1.27 GB, free: 10.25 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.00248/3.851, allocations: 1.106 MB / 1.271 GB, free: 9.363 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01668/3.868, allocations: 8.127 MB / 1.279 GB, free: 2.016 MB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05336/3.921, allocations: 19.86 MB / 1.298 GB, free: 2.512 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4783/4.4, allocations: 12.15 MB / 1.31 GB, free: 123.9 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004336/4.4, allocations: 94.59 kB / 1.31 GB, free: 123.9 MB / 0.6043 GB Notification: Performance of matching and sorting (n=2404) (initialization): time 0.0646/4.465, allocations: 27.5 MB / 1.337 GB, free: 122.5 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003669/4.465, allocations: 153.8 kB / 1.337 GB, free: 122.5 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008861/4.466, allocations: 333.3 kB / 1.338 GB, free: 122.5 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008546/4.475, allocations: 2.402 MB / 1.34 GB, free: 122.4 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02698/4.502, allocations: 4.293 MB / 1.344 GB, free: 122.1 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02279/4.525, allocations: 14.37 MB / 1.358 GB, free: 119.2 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01897/4.544, allocations: 1.092 MB / 1.359 GB, free: 119.2 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005843/4.55, allocations: 1.005 MB / 1.36 GB, free: 119.2 MB / 0.6043 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1513 * Number of states: 0 () * Number of discrete variables: 93 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2208): * Single equations (assignments): 2191 * 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.008501/4.558, allocations: 1.419 MB / 1.362 GB, free: 118.7 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00341/4.562, allocations: 1.014 MB / 1.363 GB, free: 118.7 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04299/4.605, allocations: 15.8 MB / 1.378 GB, free: 118.3 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004248/4.605, allocations: 165.3 kB / 1.378 GB, free: 118.3 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001273/4.605, allocations: 15.44 kB / 1.378 GB, free: 118.3 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003039/4.606, allocations: 34.27 kB / 1.378 GB, free: 118.3 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1375/4.743, allocations: 34.72 MB / 1.412 GB, free: 107.1 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001063/4.743, allocations: 11.22 kB / 1.412 GB, free: 107.1 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00866/4.752, allocations: 1.401 MB / 1.413 GB, free: 107 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006099/4.758, allocations: 1.782 MB / 1.415 GB, free: 106.6 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002188/4.76, allocations: 132.5 kB / 1.415 GB, free: 106.5 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01689/4.777, allocations: 12.9 MB / 1.428 GB, free: 99.79 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/4.777, allocations: 11.72 kB / 1.428 GB, free: 99.79 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04801/4.825, allocations: 26.46 MB / 1.454 GB, free: 81.26 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009047/4.834, allocations: 2.256 MB / 1.456 GB, free: 79.18 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005087/4.84, allocations: 127.5 kB / 1.456 GB, free: 79.05 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008996/4.849, allocations: 0.5372 MB / 1.457 GB, free: 78.72 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00285/4.852, allocations: 440.3 kB / 1.457 GB, free: 78.44 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001835/4.853, allocations: 192.7 kB / 1.457 GB, free: 78.26 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.01467/4.868, allocations: 6.42 MB / 1.464 GB, free: 72.65 MB / 0.6043 GB Notification: Performance of sort global known variables: time 8.42e-07/4.868, allocations: 4 kB / 1.464 GB, free: 72.65 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.02201/4.89, allocations: 3.441 MB / 1.467 GB, free: 69.22 MB / 0.6043 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (655): * Single equations (assignments): 638 * 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.04137/4.932, allocations: 27.93 MB / 1.494 GB, free: 43.84 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.4151/5.347, allocations: 19.53 MB / 1.513 GB, free: 124.6 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 1.92e-05/5.347, allocations: 0 / 1.513 GB, free: 124.6 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.01779/5.365, allocations: 7.639 MB / 1.521 GB, free: 124.3 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009616/5.374, allocations: 1.256 MB / 1.522 GB, free: 124.2 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1083/5.483, allocations: 34.28 MB / 1.555 GB, free: 118.8 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03248/5.515, allocations: 10.58 MB / 1.566 GB, free: 117.7 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 0.02702/5.542, allocations: 6.678 MB / 1.572 GB, free: 117.6 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02021/5.563, allocations: 7.449 MB / 1.58 GB, free: 117.6 MB / 0.6043 GB Notification: Performance of SimCode: time 2.405e-06/5.563, allocations: 0 / 1.58 GB, free: 117.6 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8516/6.414, allocations: 238.6 MB / 1.813 GB, free: 85.84 MB / 0.6043 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001946/6.415, allocations: 183.9 kB / 1.813 GB, free: 85.62 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/19.33, allocations: 0 / 1.813 GB, free: 85.62 MB / 0.6043 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat