Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002147/0.002147, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.972/1.972, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001096/0.001095, allocations: 93.92 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2973/0.2973, allocations: 43.5 MB / 353.6 MB, free: 2.254 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.241e-05/2.25e-05, allocations: 4.219 kB / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4022/0.4022, allocations: 58.84 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.198/0.6003, allocations: 108.8 MB / 0.5722 GB, free: 6.363 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/0.6007, allocations: 87.94 kB / 0.5723 GB, free: 6.277 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.158/2.759, allocations: 279.2 MB / 0.845 GB, free: 50.78 MB / 0.4953 GB Notification: Performance of FrontEnd: time 4.027e-06/2.759, allocations: 0.5625 kB / 0.845 GB, free: 50.78 MB / 0.4953 GB Notification: Performance of Transformations before backend: time 0.001541/2.761, allocations: 280.9 kB / 0.8452 GB, free: 50.77 MB / 0.4953 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.0644/2.825, allocations: 13.19 MB / 0.8581 GB, free: 45.94 MB / 0.4953 GB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/2.825, allocations: 13.44 kB / 0.8581 GB, free: 45.94 MB / 0.4953 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.139/2.964, allocations: 18.53 MB / 0.8762 GB, free: 44.93 MB / 0.4953 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05668/3.021, allocations: 14.89 MB / 0.8908 GB, free: 43.4 MB / 0.4953 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001146/3.022, allocations: 481.7 kB / 0.8912 GB, free: 43.4 MB / 0.4953 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01009/3.032, allocations: 0.8618 MB / 0.8921 GB, free: 43.39 MB / 0.4953 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06228/3.095, allocations: 24.23 MB / 0.9157 GB, free: 43.32 MB / 0.4953 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09579/3.191, allocations: 33.01 MB / 0.948 GB, free: 36.25 MB / 0.4953 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001299/3.192, allocations: 134.2 kB / 0.9481 GB, free: 36.23 MB / 0.4953 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008717/3.201, allocations: 62.19 kB / 0.9482 GB, free: 36.23 MB / 0.4953 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008272/3.209, allocations: 3.719 MB / 0.9518 GB, free: 34.8 MB / 0.4953 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8046/4.014, allocations: 135.7 MB / 1.084 GB, free: 29.31 MB / 0.5421 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02694/4.041, allocations: 14.53 MB / 1.099 GB, free: 26.38 MB / 0.5421 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01869/4.059, allocations: 9.398 MB / 1.108 GB, free: 26.32 MB / 0.5421 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002455/4.062, allocations: 1.304 MB / 1.109 GB, free: 25.18 MB / 0.5421 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001488/4.062, allocations: 113.2 kB / 1.109 GB, free: 25.13 MB / 0.5421 GB Notification: Performance of pre-optimization done (n=810): time 2.486e-05/4.062, allocations: 0 / 1.109 GB, free: 25.13 MB / 0.5421 GB Notification: Performance of matching and sorting (n=883): time 0.2541/4.316, allocations: 78.76 MB / 1.186 GB, free: 11.22 MB / 0.5421 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/4.317, allocations: 312.2 kB / 1.186 GB, free: 10.93 MB / 0.5421 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02288/4.339, allocations: 8.338 MB / 1.194 GB, free: 5.902 MB / 0.5421 GB Notification: Performance of collectPreVariables (initialization): time 0.002023/4.341, allocations: 33.05 kB / 1.194 GB, free: 5.867 MB / 0.5421 GB Notification: Performance of collectInitialEqns (initialization): time 0.009157/4.351, allocations: 9.628 MB / 1.204 GB, free: 13.56 MB / 0.5578 GB Notification: Performance of collectInitialBindings (initialization): time 0.006261/4.357, allocations: 3.083 MB / 1.207 GB, free: 10.77 MB / 0.5578 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003474/4.361, allocations: 0 / 1.207 GB, free: 10.77 MB / 0.5578 GB Notification: Performance of setup shared object (initialization): time 0.003169/4.364, allocations: 1.152 MB / 1.208 GB, free: 9.848 MB / 0.5578 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02258/4.386, allocations: 7.95 MB / 1.216 GB, free: 2.707 MB / 0.5578 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06288/4.449, allocations: 19.94 MB / 1.235 GB, free: 1.562 MB / 0.5734 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03339/4.483, allocations: 12.21 MB / 1.247 GB, free: 8.328 MB / 0.589 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004958/4.483, allocations: 104 kB / 1.247 GB, free: 8.227 MB / 0.589 GB Notification: Performance of matching and sorting (n=2537) (initialization): time 0.08358/4.567, allocations: 25.72 MB / 1.272 GB, free: 2.371 MB / 0.6046 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004647/4.567, allocations: 156 kB / 1.273 GB, free: 2.219 MB / 0.6046 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008607/4.568, allocations: 360 kB / 1.273 GB, free: 1.867 MB / 0.6046 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01247/4.581, allocations: 2.398 MB / 1.275 GB, free: 4 kB / 0.6046 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.4695/5.05, allocations: 4.544 MB / 1.28 GB, free: 132 MB / 0.6046 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03436/5.085, allocations: 13.7 MB / 1.293 GB, free: 129.5 MB / 0.6046 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02163/5.106, allocations: 0.7683 MB / 1.294 GB, free: 129.5 MB / 0.6046 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005565/5.112, allocations: 1.063 MB / 1.295 GB, free: 129.5 MB / 0.6046 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1634 * 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 (2341): * Single equations (assignments): 2324 * 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.008454/5.121, allocations: 1.013 MB / 1.296 GB, free: 129.3 MB / 0.6046 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04546/5.166, allocations: 14.89 MB / 1.31 GB, free: 129.1 MB / 0.6046 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004108/5.17, allocations: 0.9937 MB / 1.311 GB, free: 129.1 MB / 0.6046 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0502/5.22, allocations: 16.81 MB / 1.328 GB, free: 128.6 MB / 0.6046 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003691/5.221, allocations: 168.8 kB / 1.328 GB, free: 128.6 MB / 0.6046 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.562e-05/5.221, allocations: 14.56 kB / 1.328 GB, free: 128.6 MB / 0.6046 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001964/5.221, allocations: 41.31 kB / 1.328 GB, free: 128.6 MB / 0.6046 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1057/5.327, allocations: 35.19 MB / 1.362 GB, free: 125.1 MB / 0.6046 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001191/5.327, allocations: 14.12 kB / 1.362 GB, free: 125.1 MB / 0.6046 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01442/5.341, allocations: 1.494 MB / 1.364 GB, free: 125 MB / 0.6046 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01026/5.352, allocations: 1.758 MB / 1.366 GB, free: 124.7 MB / 0.6046 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002017/5.354, allocations: 42.83 kB / 1.366 GB, free: 124.6 MB / 0.6046 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02553/5.379, allocations: 12.13 MB / 1.377 GB, free: 118.3 MB / 0.6046 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.165e-05/5.379, allocations: 21.97 kB / 1.377 GB, free: 118.3 MB / 0.6046 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06255/5.442, allocations: 28.89 MB / 1.406 GB, free: 104.4 MB / 0.6046 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009726/5.452, allocations: 2.25 MB / 1.408 GB, free: 103.2 MB / 0.6046 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004475/5.456, allocations: 31.03 kB / 1.408 GB, free: 103.2 MB / 0.6046 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01172/5.468, allocations: 438.6 kB / 1.408 GB, free: 103.2 MB / 0.6046 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002918/5.471, allocations: 490.5 kB / 1.409 GB, free: 103.1 MB / 0.6046 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002076/5.473, allocations: 217.5 kB / 1.409 GB, free: 103.1 MB / 0.6046 GB Notification: Performance of sorting global known variables: time 0.01563/5.489, allocations: 5.555 MB / 1.414 GB, free: 99.17 MB / 0.6046 GB Notification: Performance of sort global known variables: time 1.032e-06/5.489, allocations: 0 / 1.414 GB, free: 99.17 MB / 0.6046 GB Notification: Performance of remove unused functions: time 0.02459/5.514, allocations: 2.989 MB / 1.417 GB, free: 96.19 MB / 0.6046 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * 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 (705): * Single equations (assignments): 688 * 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.06468/5.578, allocations: 31.1 MB / 1.448 GB, free: 67.66 MB / 0.6046 GB Notification: Performance of simCode: created initialization part: time 0.04445/5.623, allocations: 19.23 MB / 1.466 GB, free: 50.35 MB / 0.6046 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-05/5.623, allocations: 6.781 kB / 1.466 GB, free: 50.35 MB / 0.6046 GB Notification: Performance of simCode: created simulation system equations: time 0.01959/5.642, allocations: 7.934 MB / 1.474 GB, free: 43.2 MB / 0.6046 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009971/5.652, allocations: 0.9501 MB / 1.475 GB, free: 42.39 MB / 0.6046 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6096/6.262, allocations: 36.13 MB / 1.51 GB, free: 129.8 MB / 0.6046 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04397/6.306, allocations: 10.59 MB / 1.521 GB, free: 128.7 MB / 0.6046 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03071/6.337, allocations: 7.642 MB / 1.528 GB, free: 128.7 MB / 0.6046 GB Notification: Performance of SimCode: time 2.425e-06/6.337, allocations: 3.156 kB / 1.528 GB, free: 128.7 MB / 0.6046 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.08/15.42, allocations: 406.4 MB / 1.925 GB, free: 103.3 MB / 0.6359 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat