Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001015/0.001016, allocations: 99.11 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001002/0.001002, allocations: 202.7 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.3 MB / 245.9 MB, free: 12.03 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.248/0.248, allocations: 45.92 MB / 344 MB, free: 12.3 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002715/0.0002715, allocations: 8 kB / 418.1 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.131, allocations: 63.47 MB / 481.5 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3): time 0.3767/0.5077, allocations: 74.24 MB / 0.5427 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05002/0.5578, allocations: 17.11 MB / 0.5595 GB, free: 5.898 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02229/0.5801, allocations: 385.6 kB / 0.5598 GB, free: 5.836 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01549/0.5956, allocations: 3.736 MB / 0.5635 GB, free: 3.055 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04096/0.6366, allocations: 10.58 MB / 0.5738 GB, free: 8.867 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006705/0.6433, allocations: 1.045 MB / 0.5748 GB, free: 7.82 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.09975/0.7431, allocations: 72.32 MB / 0.6454 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0123/0.7555, allocations: 7.837 MB / 0.6531 GB, free: 7.527 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003967/0.7595, allocations: 1.74 MB / 0.6548 GB, free: 5.781 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004147/0.7636, allocations: 2.27 MB / 0.657 GB, free: 3.504 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001257/0.7649, allocations: 232 kB / 0.6572 GB, free: 3.277 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002754/0.7677, allocations: 0.9833 MB / 0.6582 GB, free: 2.293 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002903/0.7706, allocations: 2.564 MB / 0.6607 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002073/0.7727, allocations: 1.302 MB / 0.662 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0119/0.7846, allocations: 9.188 MB / 0.6709 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.7846, allocations: 0 / 0.6709 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.645e-06/0.7847, allocations: 4 kB / 0.6709 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0004398/0.7851, allocations: 4 kB / 0.671 GB, free: 5.191 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2149 * Number of variables: 2149 Notification: Performance of Generate backend data structure: time 0.02683/0.8119, allocations: 7.293 MB / 0.6781 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.989e-05/0.812, allocations: 12.03 kB / 0.6781 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0062/0.8183, allocations: 1.028 MB / 0.6791 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2323/1.051, allocations: 21.1 MB / 0.6997 GB, free: 7.633 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01702/1.068, allocations: 5.55 MB / 0.7051 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005465/1.068, allocations: 369.7 kB / 0.7055 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002786/1.071, allocations: 0.5152 MB / 0.706 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3755/1.447, allocations: 15.58 MB / 0.7212 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003314/1.447, allocations: 77.81 kB / 0.7213 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001174/1.448, allocations: 229.5 kB / 0.7215 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005598/1.454, allocations: 2.793 MB / 0.7242 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03473/1.489, allocations: 14.11 MB / 0.738 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09205/1.581, allocations: 61.44 MB / 0.798 GB, free: 66.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01775/1.598, allocations: 7.364 MB / 0.8052 GB, free: 59.09 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0316/1.63, allocations: 17.87 MB / 0.8226 GB, free: 41.18 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.642e-05/1.63, allocations: 62.91 kB / 0.8227 GB, free: 41.11 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=289): time 6.322e-06/1.63, allocations: 0 / 0.8227 GB, free: 41.11 MB / 0.5294 GB Notification: Performance of matching and sorting (n=383): time 0.1619/1.792, allocations: 62.19 MB / 0.8834 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001978/1.792, allocations: 329.3 kB / 0.8837 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01111/1.803, allocations: 6.189 MB / 0.8898 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001977/1.805, allocations: 89.69 kB / 0.8899 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.005019/1.811, allocations: 4.291 MB / 0.894 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00344/1.814, allocations: 1.395 MB / 0.8954 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006845/1.815, allocations: 160 kB / 0.8956 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0005596/1.815, allocations: 0.6531 MB / 0.8962 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008704/1.824, allocations: 5.037 MB / 0.9011 GB, free: 8.629 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01451/1.839, allocations: 9.324 MB / 0.9102 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01199/1.851, allocations: 6.744 MB / 0.9168 GB, free: 6.652 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001439/1.851, allocations: 44 kB / 0.9168 GB, free: 6.609 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1066) (initialization): time 0.04822/1.899, allocations: 19.13 MB / 0.9355 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002732/1.899, allocations: 70.66 kB / 0.9356 GB, free: 4.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003416/1.9, allocations: 149.6 kB / 0.9357 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3351/2.235, allocations: 5.552 MB / 0.9412 GB, free: 237.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008863/2.244, allocations: 1.942 MB / 0.9431 GB, free: 237.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03937/2.283, allocations: 28.32 MB / 0.9707 GB, free: 227.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01188/2.295, allocations: 0.626 MB / 0.9713 GB, free: 227 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002026/2.297, allocations: 479.2 kB / 0.9718 GB, free: 226.9 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 59 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (963): * Single equations (assignments): 957 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(14,43.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005626/2.303, allocations: 3.083 MB / 0.9748 GB, free: 225.8 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001341/2.304, allocations: 0.5342 MB / 0.9753 GB, free: 225.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02378/2.328, allocations: 14.1 MB / 0.9891 GB, free: 221.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.8e-05/2.328, allocations: 42.31 kB / 0.9891 GB, free: 221.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-05/2.328, allocations: 15.31 kB / 0.9891 GB, free: 221.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-05/2.328, allocations: 18 kB / 0.9891 GB, free: 221.1 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04376/2.372, allocations: 24.6 MB / 1.013 GB, free: 200 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.603e-05/2.372, allocations: 3.953 kB / 1.013 GB, free: 200 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003917/2.376, allocations: 0.659 MB / 1.014 GB, free: 199.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01426/2.39, allocations: 5.327 MB / 1.019 GB, free: 194.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001482/2.392, allocations: 71.23 kB / 1.019 GB, free: 194 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03236/2.424, allocations: 27.69 MB / 1.046 GB, free: 166.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/2.424, allocations: 11.92 kB / 1.046 GB, free: 166.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0319/2.456, allocations: 20.96 MB / 1.067 GB, free: 145.3 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002282/2.458, allocations: 0.6256 MB / 1.067 GB, free: 144.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002621/2.461, allocations: 67.95 kB / 1.067 GB, free: 144.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005346/2.466, allocations: 371.4 kB / 1.068 GB, free: 144.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001605/2.468, allocations: 242.7 kB / 1.068 GB, free: 144 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004758/2.469, allocations: 95.98 kB / 1.068 GB, free: 143.9 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.007095/2.476, allocations: 4.039 MB / 1.072 GB, free: 139.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.252e-06/2.476, allocations: 0 / 1.072 GB, free: 139.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01105/2.487, allocations: 1.948 MB / 1.074 GB, free: 137.9 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (293): * Single equations (assignments): 287 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(14,43.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03345/2.52, allocations: 21.83 MB / 1.095 GB, free: 116 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02149/2.542, allocations: 13.17 MB / 1.108 GB, free: 102.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/2.542, allocations: 0 / 1.108 GB, free: 102.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01223/2.554, allocations: 6.506 MB / 1.114 GB, free: 96.37 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006162/2.56, allocations: 0.6964 MB / 1.115 GB, free: 95.68 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4111/2.972, allocations: 173.7 MB / 1.285 GB, free: 179.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006235/2.978, allocations: 4.958 MB / 1.29 GB, free: 177.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.007977/2.986, allocations: 2.897 MB / 1.292 GB, free: 177.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004923/2.991, allocations: 3.1 MB / 1.295 GB, free: 174 MB / 0.6075 GB Notification: Performance of SimCode: time 8.81e-07/2.991, allocations: 0 / 1.295 GB, free: 174 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4504/3.441, allocations: 154.3 MB / 1.446 GB, free: 206.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/3.441, allocations: 210.4 kB / 1.446 GB, free: 206.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.908/9.35, allocations: 6.203 kB / 1.446 GB, free: 206.3 MB / 0.6075 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat