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.001292/0.001292, allocations: 195.3 kB / 8.765 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009743/0.0009743, allocations: 98.36 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2076/0.2076, allocations: 45.15 MB / 383.8 MB, free: 264 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.817e-05/1.818e-05, allocations: 4 kB / 453.3 MB, free: 75.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1212, allocations: 63.25 MB / 0.5045 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4085/0.5297, allocations: 110.8 MB / 0.6127 GB, free: 7.664 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.5301, allocations: 82.38 kB / 0.6127 GB, free: 7.621 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9478/1.478, allocations: 279.7 MB / 0.8859 GB, free: 67.41 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.804e-06/1.478, allocations: 4 kB / 0.8859 GB, free: 67.4 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0008975/1.479, allocations: 275.3 kB / 0.8862 GB, free: 67.14 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.03908/1.518, allocations: 12.95 MB / 0.8988 GB, free: 54.12 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/1.518, allocations: 12.03 kB / 0.8988 GB, free: 54.11 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06939/1.587, allocations: 18.45 MB / 0.9169 GB, free: 35.61 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03193/1.619, allocations: 13.19 MB / 0.9297 GB, free: 22.43 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008147/1.62, allocations: 468 kB / 0.9302 GB, free: 21.97 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006753/1.627, allocations: 0.8356 MB / 0.931 GB, free: 21.13 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3563/1.983, allocations: 23.57 MB / 0.954 GB, free: 66.24 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07986/2.063, allocations: 32.14 MB / 0.9854 GB, free: 60.71 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009033/2.064, allocations: 133 kB / 0.9855 GB, free: 60.71 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006577/2.071, allocations: 60.16 kB / 0.9856 GB, free: 60.71 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004542/2.075, allocations: 3.595 MB / 0.9891 GB, free: 60.68 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1622/2.238, allocations: 132.7 MB / 1.119 GB, free: 0 / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01736/2.255, allocations: 14.04 MB / 1.132 GB, free: 8.535 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01176/2.267, allocations: 9.076 MB / 1.141 GB, free: 1.297 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001455/2.268, allocations: 1.298 MB / 1.143 GB, free: 15.86 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.14e-05/2.268, allocations: 102.8 kB / 1.143 GB, free: 15.75 MB / 0.573 GB Notification: Performance of pre-optimization done (n=768): time 1.035e-05/2.268, allocations: 3.938 kB / 1.143 GB, free: 15.75 MB / 0.573 GB Notification: Performance of matching and sorting (n=843): time 0.4786/2.747, allocations: 76.08 MB / 1.217 GB, free: 107.1 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.861e-05/2.747, allocations: 309.4 kB / 1.217 GB, free: 106.8 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01151/2.759, allocations: 8.119 MB / 1.225 GB, free: 106.1 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001418/2.76, allocations: 25.7 kB / 1.225 GB, free: 106 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.005135/2.765, allocations: 9.632 MB / 1.235 GB, free: 100.7 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003527/2.769, allocations: 2.942 MB / 1.237 GB, free: 98.87 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008533/2.77, allocations: 1.25 kB / 1.237 GB, free: 98.87 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0008338/2.77, allocations: 1.121 MB / 1.239 GB, free: 98.53 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009131/2.78, allocations: 7.645 MB / 1.246 GB, free: 98.49 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01696/2.797, allocations: 17.54 MB / 1.263 GB, free: 83.02 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01837/2.815, allocations: 11.64 MB / 1.275 GB, free: 79.45 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005503/2.816, allocations: 97.72 kB / 1.275 GB, free: 79.45 MB / 0.573 GB Notification: Performance of matching and sorting (n=2451) (initialization): time 0.04244/2.858, allocations: 25.1 MB / 1.299 GB, free: 61.24 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001921/2.858, allocations: 152 kB / 1.299 GB, free: 61.09 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004071/2.859, allocations: 348 kB / 1.3 GB, free: 60.75 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005904/2.865, allocations: 2.386 MB / 1.302 GB, free: 58.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01561/2.88, allocations: 4.373 MB / 1.306 GB, free: 55.17 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.016/2.896, allocations: 13.68 MB / 1.32 GB, free: 43.06 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01405/2.91, allocations: 0.7291 MB / 1.32 GB, free: 42.52 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004146/2.914, allocations: 1.029 MB / 1.321 GB, free: 41.51 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1588 * 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 (2255): * Single equations (assignments): 2238 * 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.007416/2.922, allocations: 0.9973 MB / 1.322 GB, free: 40.51 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02588/2.948, allocations: 14.34 MB / 1.336 GB, free: 28.03 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003995/2.952, allocations: 0.96 MB / 1.337 GB, free: 27.06 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0325/2.984, allocations: 16.1 MB / 1.353 GB, free: 13.66 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002085/2.985, allocations: 164.8 kB / 1.353 GB, free: 13.52 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.725e-05/2.985, allocations: 16 kB / 1.353 GB, free: 13.5 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001563/2.985, allocations: 33.38 kB / 1.353 GB, free: 13.5 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4464/3.431, allocations: 34.14 MB / 1.386 GB, free: 109.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.237e-05/3.431, allocations: 13.34 kB / 1.387 GB, free: 109.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007979/3.439, allocations: 1.409 MB / 1.388 GB, free: 109.6 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006175/3.446, allocations: 1.756 MB / 1.39 GB, free: 109.6 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002086/3.448, allocations: 34.64 kB / 1.39 GB, free: 109.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01478/3.462, allocations: 12.14 MB / 1.401 GB, free: 107 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-05/3.463, allocations: 21 kB / 1.402 GB, free: 107 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04193/3.504, allocations: 27.73 MB / 1.429 GB, free: 101.6 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003721/3.508, allocations: 0.9088 MB / 1.429 GB, free: 101.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005069/3.513, allocations: 20.89 kB / 1.429 GB, free: 101.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007927/3.521, allocations: 419.3 kB / 1.43 GB, free: 101.5 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002094/3.523, allocations: 476.2 kB / 1.43 GB, free: 101.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000802/3.524, allocations: 210.3 kB / 1.431 GB, free: 101.5 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0113/3.536, allocations: 5.406 MB / 1.436 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.82e-07/3.536, allocations: 0 / 1.436 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01994/3.556, allocations: 2.894 MB / 1.439 GB, free: 101.2 MB / 0.5886 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 (663): * Single equations (assignments): 646 * 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.03698/3.593, allocations: 30.03 MB / 1.468 GB, free: 88.12 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.03291/3.626, allocations: 18.46 MB / 1.486 GB, free: 82.43 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.825e-05/3.626, allocations: 2.094 kB / 1.486 GB, free: 82.43 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0135/3.639, allocations: 7.617 MB / 1.493 GB, free: 75.92 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00867/3.648, allocations: 0.9538 MB / 1.494 GB, free: 75.12 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09784/3.746, allocations: 33.25 MB / 1.527 GB, free: 46.14 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02442/3.77, allocations: 10.29 MB / 1.537 GB, free: 38.69 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01998/3.79, allocations: 6.992 MB / 1.544 GB, free: 34.4 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01572/3.806, allocations: 7.24 MB / 1.551 GB, free: 27.67 MB / 0.5886 GB Notification: Performance of SimCode: time 1.483e-06/3.806, allocations: 0 / 1.551 GB, free: 27.67 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7663/4.572, allocations: 222.2 MB / 1.768 GB, free: 28.2 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001763/4.573, allocations: 160.8 kB / 1.768 GB, free: 28 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/14.75, allocations: 0 / 1.768 GB, free: 28 MB / 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