Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 169.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 221.5 MB / 230.7 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009112/0.0009112, allocations: 97.36 kB / 281.6 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2037/0.2037, allocations: 44.14 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.929e-05/1.949e-05, allocations: 4.219 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.124, allocations: 61.91 MB / 0.4948 GB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4438/0.5678, allocations: 109.9 MB / 0.6021 GB, free: 2.469 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.5682, allocations: 87.84 kB / 0.6022 GB, free: 2.387 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.012/1.58, allocations: 274.4 MB / 0.8701 GB, free: 5.906 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.314e-06/1.58, allocations: 4 kB / 0.8701 GB, free: 5.902 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001032/1.581, allocations: 276 kB / 0.8704 GB, free: 5.633 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: 5288 * Number of variables: 5288 Notification: Performance of Generate backend data structure: time 0.05892/1.64, allocations: 12.85 MB / 0.8829 GB, free: 8.68 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.846e-05/1.64, allocations: 15.98 kB / 0.883 GB, free: 8.664 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.498/2.138, allocations: 18.45 MB / 0.901 GB, free: 54.61 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04685/2.185, allocations: 14.08 MB / 0.9147 GB, free: 54.04 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001014/2.186, allocations: 462.2 kB / 0.9152 GB, free: 54.04 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009371/2.196, allocations: 0.8345 MB / 0.916 GB, free: 54.03 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0485/2.244, allocations: 23.57 MB / 0.939 GB, free: 53.95 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08968/2.334, allocations: 32.15 MB / 0.9704 GB, free: 46.88 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001589/2.336, allocations: 135.8 kB / 0.9705 GB, free: 46.86 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01173/2.348, allocations: 63.47 kB / 0.9706 GB, free: 46.86 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006799/2.354, allocations: 3.597 MB / 0.9741 GB, free: 46.25 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2119/2.566, allocations: 132.7 MB / 1.104 GB, free: 5.016 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4827/3.049, allocations: 15.46 MB / 1.119 GB, free: 106.2 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01557/3.065, allocations: 9.077 MB / 1.128 GB, free: 106.1 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001734/3.066, allocations: 1.299 MB / 1.129 GB, free: 105 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001095/3.067, allocations: 101.9 kB / 1.129 GB, free: 105 MB / 0.573 GB Notification: Performance of pre-optimization done (n=768): time 1.406e-05/3.067, allocations: 0 / 1.129 GB, free: 105 MB / 0.573 GB Notification: Performance of matching and sorting (n=843): time 0.1733/3.24, allocations: 75.93 MB / 1.203 GB, free: 96.48 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/3.24, allocations: 318.1 kB / 1.203 GB, free: 96.19 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01994/3.26, allocations: 8.119 MB / 1.211 GB, free: 93.32 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.00192/3.262, allocations: 25.7 kB / 1.211 GB, free: 93.29 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.007667/3.27, allocations: 9.627 MB / 1.221 GB, free: 86.05 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004927/3.275, allocations: 2.95 MB / 1.224 GB, free: 83.82 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002345/3.277, allocations: 0 / 1.224 GB, free: 83.82 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001623/3.279, allocations: 1.121 MB / 1.225 GB, free: 83.18 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01264/3.291, allocations: 7.646 MB / 1.232 GB, free: 80.49 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02267/3.314, allocations: 17.54 MB / 1.249 GB, free: 64.01 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01944/3.334, allocations: 11.65 MB / 1.261 GB, free: 54.77 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004382/3.334, allocations: 100 kB / 1.261 GB, free: 54.67 MB / 0.573 GB Notification: Performance of matching and sorting (n=2451) (initialization): time 0.05334/3.387, allocations: 25.1 MB / 1.285 GB, free: 33.55 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002569/3.388, allocations: 152 kB / 1.286 GB, free: 33.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006037/3.388, allocations: 348 kB / 1.286 GB, free: 33.06 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007057/3.395, allocations: 2.393 MB / 1.288 GB, free: 31.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01706/3.413, allocations: 4.369 MB / 1.292 GB, free: 27.47 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01676/3.429, allocations: 13.68 MB / 1.306 GB, free: 15.35 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01672/3.446, allocations: 0.7338 MB / 1.307 GB, free: 14.81 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00498/3.451, allocations: 1.037 MB / 1.308 GB, free: 13.8 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.007365/3.459, allocations: 0.9876 MB / 1.309 GB, free: 12.8 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.4687/3.927, allocations: 14.35 MB / 1.323 GB, free: 84.75 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004125/3.932, allocations: 0.9585 MB / 1.323 GB, free: 84.75 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04238/3.974, allocations: 16.09 MB / 1.339 GB, free: 84.24 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002818/3.974, allocations: 167.1 kB / 1.339 GB, free: 84.24 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.052e-05/3.974, allocations: 11.31 kB / 1.339 GB, free: 84.24 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002098/3.975, allocations: 37.48 kB / 1.339 GB, free: 84.24 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07243/4.047, allocations: 33.97 MB / 1.373 GB, free: 82.29 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.862e-05/4.047, allocations: 17.97 kB / 1.373 GB, free: 82.29 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007494/4.055, allocations: 1.411 MB / 1.374 GB, free: 82.29 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005676/4.06, allocations: 1.754 MB / 1.376 GB, free: 82.26 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001916/4.062, allocations: 37.34 kB / 1.376 GB, free: 82.26 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01455/4.077, allocations: 12.12 MB / 1.388 GB, free: 79.7 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.604e-05/4.077, allocations: 24.86 kB / 1.388 GB, free: 79.69 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04061/4.118, allocations: 27.73 MB / 1.415 GB, free: 68.74 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003605/4.121, allocations: 0.9115 MB / 1.416 GB, free: 68.62 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004133/4.125, allocations: 24.98 kB / 1.416 GB, free: 68.61 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007891/4.133, allocations: 420 kB / 1.416 GB, free: 68.61 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002418/4.136, allocations: 474.6 kB / 1.416 GB, free: 68.54 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001413/4.137, allocations: 209.6 kB / 1.417 GB, free: 68.49 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01328/4.151, allocations: 5.409 MB / 1.422 GB, free: 66.59 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.01e-07/4.151, allocations: 0 / 1.422 GB, free: 66.59 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02165/4.172, allocations: 2.889 MB / 1.425 GB, free: 66.59 MB / 0.573 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.04074/4.213, allocations: 30.01 MB / 1.454 GB, free: 51.36 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03171/4.245, allocations: 18.46 MB / 1.472 GB, free: 40.88 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.019e-05/4.245, allocations: 4 kB / 1.472 GB, free: 40.88 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01196/4.257, allocations: 7.615 MB / 1.479 GB, free: 34.04 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008652/4.265, allocations: 0.9523 MB / 1.48 GB, free: 33.23 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09035/4.356, allocations: 33.25 MB / 1.513 GB, free: 4.238 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04476/4.401, allocations: 11.66 MB / 1.524 GB, free: 15.96 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.02223/4.423, allocations: 6.992 MB / 1.531 GB, free: 11.63 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3966/4.82, allocations: 7.625 MB / 1.539 GB, free: 100 MB / 0.5886 GB Notification: Performance of SimCode: time 1.883e-06/4.82, allocations: 0 / 1.539 GB, free: 100 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7475/5.567, allocations: 222.3 MB / 1.756 GB, free: 54.59 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001507/5.567, allocations: 147.4 kB / 1.756 GB, free: 54.4 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/16.5, allocations: 0 / 1.756 GB, free: 54.4 MB / 0.6198 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat