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.000956/0.0009561, allocations: 177.6 kB / 8.004 MB, free: 1.07 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.521/1.521, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008942/0.0008941, allocations: 86.62 kB / 261.7 MB, free: 1.68 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.2304/0.2304, allocations: 43.49 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.842e-05/1.845e-05, allocations: 4 kB / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1264, allocations: 58.85 MB / 477.2 MB, free: 1.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4761/0.6026, allocations: 108.8 MB / 0.5723 GB, free: 2.574 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.6029, allocations: 87.36 kB / 0.5724 GB, free: 2.531 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.003/1.606, allocations: 279.2 MB / 0.845 GB, free: 50.83 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.743e-06/1.606, allocations: 0 / 0.845 GB, free: 50.83 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0009706/1.607, allocations: 291 kB / 0.8453 GB, free: 50.55 MB / 0.4948 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.05029/1.657, allocations: 13.18 MB / 0.8582 GB, free: 37.29 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.116e-05/1.657, allocations: 8.031 kB / 0.8582 GB, free: 37.29 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07356/1.731, allocations: 18.53 MB / 0.8763 GB, free: 18.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0387/1.769, allocations: 14.89 MB / 0.8908 GB, free: 3.852 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001002/1.77, allocations: 484 kB / 0.8913 GB, free: 3.379 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01051/1.781, allocations: 0.8629 MB / 0.8921 GB, free: 2.516 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.373/2.154, allocations: 24.23 MB / 0.9158 GB, free: 57.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08563/2.24, allocations: 33.01 MB / 0.948 GB, free: 51.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001143/2.241, allocations: 129.4 kB / 0.9481 GB, free: 51.7 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008469/2.249, allocations: 67.66 kB / 0.9482 GB, free: 51.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005562/2.255, allocations: 3.717 MB / 0.9518 GB, free: 51.67 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1852/2.44, allocations: 135.7 MB / 1.084 GB, free: 5.453 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3851/2.825, allocations: 15.9 MB / 1.1 GB, free: 95.69 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01538/2.841, allocations: 9.395 MB / 1.109 GB, free: 95.62 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002118/2.843, allocations: 1.308 MB / 1.11 GB, free: 94.49 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001749/2.843, allocations: 111.4 kB / 1.11 GB, free: 94.44 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=810): time 2.609e-05/2.843, allocations: 0 / 1.11 GB, free: 94.44 MB / 0.5417 GB Notification: Performance of matching and sorting (n=883): time 0.1551/2.998, allocations: 78.76 MB / 1.187 GB, free: 83.54 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/2.999, allocations: 317.2 kB / 1.188 GB, free: 83.25 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0169/3.015, allocations: 8.332 MB / 1.196 GB, free: 80.32 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.002032/3.018, allocations: 25.7 kB / 1.196 GB, free: 80.29 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.007103/3.025, allocations: 9.897 MB / 1.205 GB, free: 72.91 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004845/3.03, allocations: 3.086 MB / 1.208 GB, free: 70.58 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002381/3.032, allocations: 0 / 1.208 GB, free: 70.58 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001435/3.033, allocations: 1.156 MB / 1.21 GB, free: 69.92 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0117/3.045, allocations: 7.95 MB / 1.217 GB, free: 64.81 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01991/3.065, allocations: 18.14 MB / 1.235 GB, free: 43.24 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01845/3.084, allocations: 12.08 MB / 1.247 GB, free: 33.64 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004013/3.084, allocations: 100 kB / 1.247 GB, free: 33.54 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2537) (initialization): time 0.05055/3.135, allocations: 25.98 MB / 1.272 GB, free: 11.69 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002271/3.135, allocations: 156 kB / 1.272 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005579/3.135, allocations: 362.9 kB / 1.273 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006042/3.141, allocations: 2.396 MB / 1.275 GB, free: 9.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01588/3.157, allocations: 4.541 MB / 1.28 GB, free: 5.441 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01693/3.174, allocations: 13.7 MB / 1.293 GB, free: 9.316 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01587/3.19, allocations: 0.7634 MB / 1.294 GB, free: 8.75 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005018/3.195, allocations: 1.066 MB / 1.295 GB, free: 7.711 MB / 0.5573 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.4043/3.6, allocations: 1.013 MB / 1.296 GB, free: 93.55 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03537/3.635, allocations: 14.9 MB / 1.31 GB, free: 93.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005798/3.641, allocations: 0.9914 MB / 1.311 GB, free: 93.3 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03846/3.679, allocations: 16.82 MB / 1.328 GB, free: 92.79 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002319/3.68, allocations: 168 kB / 1.328 GB, free: 92.79 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-05/3.68, allocations: 17.66 kB / 1.328 GB, free: 92.79 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000207/3.68, allocations: 36 kB / 1.328 GB, free: 92.79 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08556/3.766, allocations: 35.19 MB / 1.362 GB, free: 90.83 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001024/3.766, allocations: 14.06 kB / 1.362 GB, free: 90.83 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009337/3.775, allocations: 1.497 MB / 1.364 GB, free: 90.83 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006096/3.781, allocations: 1.758 MB / 1.365 GB, free: 90.68 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002185/3.783, allocations: 37.89 kB / 1.366 GB, free: 90.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01585/3.799, allocations: 12.13 MB / 1.377 GB, free: 84.37 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-05/3.799, allocations: 23.06 kB / 1.377 GB, free: 84.37 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04782/3.847, allocations: 28.89 MB / 1.406 GB, free: 70.78 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008203/3.855, allocations: 2.254 MB / 1.408 GB, free: 69.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005039/3.861, allocations: 22.2 kB / 1.408 GB, free: 69.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008433/3.869, allocations: 442.5 kB / 1.408 GB, free: 69.64 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002661/3.872, allocations: 496.6 kB / 1.409 GB, free: 69.56 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00171/3.873, allocations: 215 kB / 1.409 GB, free: 69.52 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01577/3.889, allocations: 5.551 MB / 1.414 GB, free: 67.57 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.41e-07/3.889, allocations: 0 / 1.414 GB, free: 67.57 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02323/3.912, allocations: 2.988 MB / 1.417 GB, free: 66.85 MB / 0.5573 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.04713/3.96, allocations: 31.11 MB / 1.448 GB, free: 38.32 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03206/3.992, allocations: 19.22 MB / 1.466 GB, free: 21.71 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.942e-05/3.992, allocations: 4 kB / 1.466 GB, free: 21.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01337/4.005, allocations: 7.942 MB / 1.474 GB, free: 14.55 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009529/4.015, allocations: 0.9413 MB / 1.475 GB, free: 13.76 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.505/4.52, allocations: 34.36 MB / 1.509 GB, free: 111.9 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03471/4.555, allocations: 10.58 MB / 1.519 GB, free: 110.8 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.02701/4.582, allocations: 7.194 MB / 1.526 GB, free: 110.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01917/4.601, allocations: 7.492 MB / 1.533 GB, free: 110.7 MB / 0.573 GB Notification: Performance of SimCode: time 1.242e-06/4.601, allocations: 0 / 1.533 GB, free: 110.7 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8043/5.405, allocations: 223.8 MB / 1.752 GB, free: 62.31 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001632/5.405, allocations: 155 kB / 1.752 GB, free: 62.12 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/16.77, allocations: 3.938 kB / 1.752 GB, free: 62.12 MB / 0.573 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