Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001/0.001, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008103/0.0008103, allocations: 88.67 kB / 292.1 MB, free: 5.977 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1847/0.1847, allocations: 45.14 MB / 389.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.716e-05/2.724e-05, allocations: 4 kB / 460.5 MB, free: 69.9 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08161/0.08165, allocations: 63.25 MB / 0.5115 GB, free: 6.684 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.348/0.4297, allocations: 111.5 MB / 0.6203 GB, free: 14.63 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.43, allocations: 83.95 kB / 0.6204 GB, free: 14.59 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8679/1.298, allocations: 286.2 MB / 0.8999 GB, free: 49.04 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.084e-06/1.298, allocations: 0 / 0.8999 GB, free: 49.04 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0008034/1.299, allocations: 283.9 kB / 0.9002 GB, free: 48.77 MB / 0.5261 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.03771/1.336, allocations: 12.95 MB / 0.9128 GB, free: 35.71 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/1.336, allocations: 11.97 kB / 0.9128 GB, free: 35.7 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009637/1.346, allocations: 2.619 MB / 0.9154 GB, free: 33.07 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06542/1.412, allocations: 18.45 MB / 0.9334 GB, free: 14.56 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02898/1.441, allocations: 13.2 MB / 0.9463 GB, free: 1.277 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009166/1.442, allocations: 1.063 MB / 0.9474 GB, free: 216 kB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006923/1.448, allocations: 1.429 MB / 0.9487 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3819/1.83, allocations: 35.31 MB / 0.9832 GB, free: 65.05 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008924/1.831, allocations: 130.7 kB / 0.9834 GB, free: 65.05 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006445/1.838, allocations: 0.6489 MB / 0.984 GB, free: 65.05 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005743/1.844, allocations: 3.59 MB / 0.9875 GB, free: 65.02 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05727/1.901, allocations: 31.71 MB / 1.018 GB, free: 64.89 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1566/2.058, allocations: 137.2 MB / 1.152 GB, free: 9.305 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03483/2.092, allocations: 15.09 MB / 1.167 GB, free: 12.12 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01348/2.106, allocations: 9.234 MB / 1.176 GB, free: 3.59 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3845/2.49, allocations: 34.48 MB / 1.21 GB, free: 117.7 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.877e-05/2.491, allocations: 108 kB / 1.21 GB, free: 117.7 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=705): time 9.748e-06/2.491, allocations: 0 / 1.21 GB, free: 117.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=787): time 0.181/2.672, allocations: 68.62 MB / 1.277 GB, free: 107 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001425/2.672, allocations: 307.1 kB / 1.277 GB, free: 106.7 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02072/2.693, allocations: 9.078 MB / 1.286 GB, free: 103.6 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001838/2.694, allocations: 132.8 kB / 1.286 GB, free: 103.5 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.006762/2.701, allocations: 9.581 MB / 1.296 GB, free: 96.43 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.004293/2.706, allocations: 2.847 MB / 1.298 GB, free: 94.32 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002981/2.709, allocations: 353.8 kB / 1.299 GB, free: 94.05 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.002365/2.711, allocations: 1.078 MB / 1.3 GB, free: 93.42 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01291/2.724, allocations: 7.802 MB / 1.307 GB, free: 87.02 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01814/2.742, allocations: 17.15 MB / 1.324 GB, free: 66.79 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01744/2.759, allocations: 11.67 MB / 1.336 GB, free: 57.44 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004728/2.76, allocations: 92 kB / 1.336 GB, free: 57.35 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2328) (initialization): time 0.04903/2.809, allocations: 26.6 MB / 1.362 GB, free: 34.78 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005138/2.81, allocations: 144 kB / 1.362 GB, free: 34.64 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006892/2.81, allocations: 324 kB / 1.362 GB, free: 34.32 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006688/2.817, allocations: 2.403 MB / 1.364 GB, free: 32.45 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01537/2.832, allocations: 4.137 MB / 1.368 GB, free: 28.92 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01754/2.85, allocations: 14.33 MB / 1.382 GB, free: 16.22 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01491/2.865, allocations: 1.054 MB / 1.383 GB, free: 15.36 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004348/2.869, allocations: 0.9685 MB / 1.384 GB, free: 14.41 MB / 0.5886 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 () * 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.006379/2.876, allocations: 1.384 MB / 1.386 GB, free: 13.04 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003393/2.879, allocations: 0.99 MB / 1.387 GB, free: 12.04 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3785/3.258, allocations: 16.77 MB / 1.403 GB, free: 99.2 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002477/3.258, allocations: 164.1 kB / 1.403 GB, free: 99.2 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.915e-05/3.258, allocations: 13 kB / 1.403 GB, free: 99.2 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001757/3.258, allocations: 32.8 kB / 1.403 GB, free: 99.2 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08172/3.34, allocations: 33.32 MB / 1.436 GB, free: 97.68 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001204/3.34, allocations: 6.875 kB / 1.436 GB, free: 97.68 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009496/3.35, allocations: 1.305 MB / 1.437 GB, free: 97.68 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007675/3.357, allocations: 1.772 MB / 1.439 GB, free: 97.66 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002032/3.359, allocations: 123 kB / 1.439 GB, free: 97.66 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01603/3.375, allocations: 12.92 MB / 1.452 GB, free: 94.96 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/3.376, allocations: 10.75 kB / 1.452 GB, free: 94.96 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03756/3.413, allocations: 25.28 MB / 1.476 GB, free: 89.19 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003668/3.417, allocations: 0.9693 MB / 1.477 GB, free: 89.05 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00378/3.421, allocations: 116.2 kB / 1.477 GB, free: 88.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007267/3.428, allocations: 0.5083 MB / 1.478 GB, free: 88.89 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002224/3.43, allocations: 422.1 kB / 1.478 GB, free: 88.83 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00147/3.432, allocations: 181.9 kB / 1.478 GB, free: 88.79 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01417/3.446, allocations: 6.268 MB / 1.485 GB, free: 86.7 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.01e-07/3.446, allocations: 0 / 1.485 GB, free: 86.7 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0172/3.463, allocations: 3.323 MB / 1.488 GB, free: 86.34 MB / 0.5886 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 (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.03683/3.5, allocations: 26.76 MB / 1.514 GB, free: 74.88 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02657/3.527, allocations: 18.75 MB / 1.532 GB, free: 65.39 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/3.527, allocations: 4 kB / 1.532 GB, free: 65.38 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0103/3.537, allocations: 7.272 MB / 1.539 GB, free: 58.87 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007156/3.544, allocations: 1.251 MB / 1.541 GB, free: 57.84 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07698/3.621, allocations: 33.13 MB / 1.573 GB, free: 28.95 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01896/3.64, allocations: 10.29 MB / 1.583 GB, free: 21.51 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0173/3.657, allocations: 6.483 MB / 1.589 GB, free: 17.59 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01166/3.669, allocations: 7.207 MB / 1.596 GB, free: 10.9 MB / 0.5886 GB Notification: Performance of SimCode: time 7.72e-07/3.669, allocations: 0 / 1.596 GB, free: 10.9 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6207/4.29, allocations: 231.5 MB / 1.822 GB, free: 316 kB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002024/4.29, allocations: 187.1 kB / 1.823 GB, free: 88 kB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.361/12.65, allocations: 3.938 kB / 1.823 GB, free: 84 kB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat