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.002205/0.002205, allocations: 181.1 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.053/2.053, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001162/0.001161, allocations: 97.22 kB / 270.9 MB, free: 8.355 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.5308/0.5308, allocations: 43.56 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000482/0.0004819, allocations: 16 kB / 431.5 MB, free: 6.062 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1381, allocations: 58.84 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.514/0.6521, allocations: 109.5 MB / 0.5858 GB, free: 9.043 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003307/0.6525, allocations: 83.95 kB / 0.5859 GB, free: 8.961 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.252/2.905, allocations: 285.7 MB / 0.8648 GB, free: 34.94 MB / 0.4949 GB Notification: Performance of FrontEnd: time 3.407e-06/2.905, allocations: 3.75 kB / 0.8649 GB, free: 34.94 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 0.002709/2.907, allocations: 280.5 kB / 0.8651 GB, free: 34.94 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.0737/2.981, allocations: 14.12 MB / 0.8789 GB, free: 32.43 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/2.981, allocations: 9.062 kB / 0.8789 GB, free: 32.43 MB / 0.4949 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0145/2.996, allocations: 2.703 MB / 0.8816 GB, free: 32.26 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1401/3.136, allocations: 18.51 MB / 0.8996 GB, free: 31.25 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05787/3.194, allocations: 14.96 MB / 0.9142 GB, free: 29.79 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001636/3.196, allocations: 1.105 MB / 0.9153 GB, free: 29.75 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009567/3.205, allocations: 1.468 MB / 0.9168 GB, free: 29.74 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1197/3.325, allocations: 36.58 MB / 0.9525 GB, free: 24.07 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001345/3.326, allocations: 133.9 kB / 0.9526 GB, free: 24.06 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009647/3.336, allocations: 0.6748 MB / 0.9533 GB, free: 24.05 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008438/3.345, allocations: 3.717 MB / 0.9569 GB, free: 24.03 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1017/3.446, allocations: 33.11 MB / 0.9892 GB, free: 15.3 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7515/4.198, allocations: 141.3 MB / 1.127 GB, free: 26.24 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05933/4.257, allocations: 15.78 MB / 1.143 GB, free: 24.35 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1024/4.36, allocations: 35.74 MB / 1.177 GB, free: 21.43 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001063/4.36, allocations: 105.1 kB / 1.178 GB, free: 21.38 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=747): time 1.17e-05/4.36, allocations: 0 / 1.178 GB, free: 21.38 MB / 0.5574 GB Notification: Performance of matching and sorting (n=829): time 0.4231/4.783, allocations: 83.23 MB / 1.259 GB, free: 6.398 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002499/4.783, allocations: 308.7 kB / 1.259 GB, free: 6.039 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02846/4.812, allocations: 9.415 MB / 1.268 GB, free: 14.26 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 0.001998/4.814, allocations: 144.9 kB / 1.269 GB, free: 14.12 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0112/4.825, allocations: 9.495 MB / 1.278 GB, free: 5.578 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 0.006201/4.831, allocations: 2.993 MB / 1.281 GB, free: 2.926 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00386/4.835, allocations: 353.4 kB / 1.281 GB, free: 2.582 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.002793/4.838, allocations: 1.112 MB / 1.282 GB, free: 1.684 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.06062/4.899, allocations: 10.52 MB / 1.292 GB, free: 0 / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4641/5.363, allocations: 17.89 MB / 1.31 GB, free: 109.6 MB / 0.5887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02973/5.393, allocations: 12.18 MB / 1.322 GB, free: 109.5 MB / 0.5887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004685/5.393, allocations: 101.4 kB / 1.322 GB, free: 109.5 MB / 0.5887 GB Notification: Performance of matching and sorting (n=2404) (initialization): time 0.08442/5.478, allocations: 27.59 MB / 1.349 GB, free: 108 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003823/5.478, allocations: 144.2 kB / 1.349 GB, free: 108 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006661/5.479, allocations: 332 kB / 1.349 GB, free: 108 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01214/5.491, allocations: 2.419 MB / 1.352 GB, free: 107.9 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02965/5.521, allocations: 4.285 MB / 1.356 GB, free: 107.6 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03246/5.553, allocations: 14.83 MB / 1.37 GB, free: 104.7 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02228/5.575, allocations: 1.093 MB / 1.371 GB, free: 104.7 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005245/5.581, allocations: 0.9944 MB / 1.372 GB, free: 104.7 MB / 0.5887 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 () * Number of clocked 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.0244/5.605, allocations: 7.193 MB / 1.379 GB, free: 103.3 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004246/5.609, allocations: 1.018 MB / 1.38 GB, free: 103.3 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.053/5.662, allocations: 16.06 MB / 1.396 GB, free: 97.28 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003194/5.663, allocations: 171.3 kB / 1.396 GB, free: 97.26 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.857e-05/5.663, allocations: 11.09 kB / 1.396 GB, free: 97.26 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002105/5.663, allocations: 37.55 kB / 1.396 GB, free: 97.26 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1097/5.773, allocations: 34.98 MB / 1.43 GB, free: 84.73 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001206/5.773, allocations: 7.25 kB / 1.43 GB, free: 84.73 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01387/5.787, allocations: 1.398 MB / 1.432 GB, free: 84.62 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01056/5.797, allocations: 1.779 MB / 1.434 GB, free: 83.82 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002081/5.8, allocations: 133.1 kB / 1.434 GB, free: 83.7 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02846/5.828, allocations: 13.36 MB / 1.447 GB, free: 71.92 MB / 0.5887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.07e-05/5.828, allocations: 11.94 kB / 1.447 GB, free: 71.91 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06356/5.892, allocations: 26.86 MB / 1.473 GB, free: 48.05 MB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009016/5.901, allocations: 2.25 MB / 1.475 GB, free: 45.97 MB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0043/5.905, allocations: 120 kB / 1.475 GB, free: 45.85 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0116/5.917, allocations: 0.5365 MB / 1.476 GB, free: 45.52 MB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002857/5.92, allocations: 443.7 kB / 1.476 GB, free: 45.24 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001389/5.921, allocations: 194 kB / 1.476 GB, free: 45.06 MB / 0.5887 GB Notification: Performance of sorting global known variables: time 0.01838/5.94, allocations: 6.517 MB / 1.483 GB, free: 39.77 MB / 0.5887 GB Notification: Performance of sort global known variables: time 9.52e-07/5.94, allocations: 0 / 1.483 GB, free: 39.77 MB / 0.5887 GB Notification: Performance of remove unused functions: time 0.02299/5.963, allocations: 3.44 MB / 1.486 GB, free: 36.34 MB / 0.5887 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 (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.5399/6.503, allocations: 29.9 MB / 1.515 GB, free: 102.6 MB / 0.5887 GB Notification: Performance of simCode: created initialization part: time 0.05029/6.553, allocations: 19.89 MB / 1.535 GB, free: 102.2 MB / 0.5887 GB Notification: Performance of simCode: created event and clocks part: time 1.408e-05/6.553, allocations: 0 / 1.535 GB, free: 102.2 MB / 0.5887 GB Notification: Performance of simCode: created simulation system equations: time 0.02217/6.575, allocations: 7.787 MB / 1.542 GB, free: 101.8 MB / 0.5887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01121/6.586, allocations: 1.254 MB / 1.544 GB, free: 101.8 MB / 0.5887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8744/7.461, allocations: 373.8 MB / 1.909 GB, free: 24.84 MB / 0.6512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03306/7.494, allocations: 10.59 MB / 1.919 GB, free: 23.75 MB / 0.6512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0237/7.518, allocations: 7.596 MB / 1.926 GB, free: 21.72 MB / 0.6512 GB Notification: Performance of SimCode: time 1.463e-06/7.518, allocations: 3.656 kB / 1.926 GB, free: 21.72 MB / 0.6512 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.936/16.45, allocations: 410.1 MB / 2.327 GB, free: 159.6 MB / 0.6512 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