Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.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.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009897/0.0009897, allocations: 98.67 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001074/0.001074, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2182/0.2182, allocations: 45.91 MB / 344.1 MB, free: 12.22 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002926/0.0002927, allocations: 11.94 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1398, allocations: 63.47 MB / 481.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.3594/0.4992, allocations: 63.14 MB / 0.532 GB, free: 9.168 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04023/0.5395, allocations: 13.32 MB / 0.545 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01871/0.5583, allocations: 303.5 kB / 0.5453 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01277/0.5711, allocations: 3.294 MB / 0.5485 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03257/0.6037, allocations: 9.65 MB / 0.558 GB, free: 8.578 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005046/0.6087, allocations: 0.8064 MB / 0.5588 GB, free: 8.055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.08205/0.6908, allocations: 62.09 MB / 0.6194 GB, free: 10.99 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01095/0.7018, allocations: 6.566 MB / 0.6258 GB, free: 4.375 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004053/0.7059, allocations: 1.662 MB / 0.6274 GB, free: 2.707 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004593/0.7105, allocations: 2.524 MB / 0.6299 GB, free: 180 kB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008358/0.7114, allocations: 180 kB / 0.6301 GB, free: 0 / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002762/0.7142, allocations: 0.9636 MB / 0.631 GB, free: 15.04 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002609/0.7168, allocations: 2.182 MB / 0.6331 GB, free: 12.85 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001508/0.7183, allocations: 1.049 MB / 0.6342 GB, free: 11.79 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008671/0.727, allocations: 7.232 MB / 0.6412 GB, free: 4.539 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.628e-06/0.7271, allocations: 0 / 0.6412 GB, free: 4.539 MB / 478.1 MB Notification: Performance of FrontEnd: time 4.458e-06/0.7271, allocations: 4 kB / 0.6412 GB, free: 4.535 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0003995/0.7275, allocations: 4 kB / 0.6412 GB, free: 4.531 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01443/0.7419, allocations: 5.273 MB / 0.6464 GB, free: 15.19 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.742, allocations: 12.03 kB / 0.6464 GB, free: 15.18 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002768/0.7448, allocations: 0.8546 MB / 0.6472 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03266/0.7775, allocations: 6.175 MB / 0.6533 GB, free: 8.121 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009595/0.7871, allocations: 4.071 MB / 0.6572 GB, free: 3.996 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002516/0.7874, allocations: 299.8 kB / 0.6575 GB, free: 3.703 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001279/0.7887, allocations: 431.6 kB / 0.6579 GB, free: 3.281 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02103/0.8097, allocations: 11.6 MB / 0.6693 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001606/0.8099, allocations: 55.48 kB / 0.6693 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000505/0.8104, allocations: 191.9 kB / 0.6695 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003267/0.8137, allocations: 2.085 MB / 0.6715 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01924/0.833, allocations: 9.821 MB / 0.6811 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3783/1.211, allocations: 45.37 MB / 0.7254 GB, free: 158.9 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01092/1.222, allocations: 4.233 MB / 0.7296 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003451/1.226, allocations: 2.347 MB / 0.7318 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01497/1.241, allocations: 9.44 MB / 0.7411 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.156e-05/1.241, allocations: 53.34 kB / 0.7411 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 5.089e-06/1.241, allocations: 1.5 kB / 0.7411 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.043/1.284, allocations: 18.25 MB / 0.7589 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.311e-05/1.284, allocations: 201.2 kB / 0.7591 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005772/1.29, allocations: 4.694 MB / 0.7637 GB, free: 139.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004011/1.29, allocations: 53.7 kB / 0.7638 GB, free: 139.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001749/1.292, allocations: 3.635 MB / 0.7673 GB, free: 136 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007723/1.293, allocations: 0.7608 MB / 0.7681 GB, free: 135.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/1.293, allocations: 127.5 kB / 0.7682 GB, free: 135.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002411/1.293, allocations: 0.5744 MB / 0.7687 GB, free: 134.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002619/1.296, allocations: 2.167 MB / 0.7709 GB, free: 132.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003979/1.3, allocations: 6.011 MB / 0.7767 GB, free: 124.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004029/1.304, allocations: 3.527 MB / 0.7802 GB, free: 121.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.339e-05/1.304, allocations: 43.94 kB / 0.7802 GB, free: 121.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.01306/1.317, allocations: 8.754 MB / 0.7888 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.395e-05/1.317, allocations: 68.25 kB / 0.7888 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001412/1.317, allocations: 136 kB / 0.789 GB, free: 112.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002674/1.32, allocations: 1.09 MB / 0.79 GB, free: 111 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004445/1.324, allocations: 1.431 MB / 0.7914 GB, free: 109.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00845/1.333, allocations: 8.185 MB / 0.7994 GB, free: 101.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005222/1.338, allocations: 339.4 kB / 0.7997 GB, free: 100.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008789/1.339, allocations: 388 kB / 0.8001 GB, free: 100.5 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (756): * Single equations (assignments): 751 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004102/1.343, allocations: 2.491 MB / 0.8025 GB, free: 97.95 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008376/1.344, allocations: 410.7 kB / 0.8029 GB, free: 97.55 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005578/1.35, allocations: 3.491 MB / 0.8063 GB, free: 94.04 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.158e-05/1.35, allocations: 24 kB / 0.8064 GB, free: 94.02 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/1.35, allocations: 11.95 kB / 0.8064 GB, free: 94 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.737e-05/1.35, allocations: 8.844 kB / 0.8064 GB, free: 94 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01489/1.365, allocations: 9.053 MB / 0.8152 GB, free: 84.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.642e-05/1.365, allocations: 0 / 0.8152 GB, free: 84.91 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001332/1.366, allocations: 299.6 kB / 0.8155 GB, free: 84.62 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002303/1.368, allocations: 0.8509 MB / 0.8163 GB, free: 83.77 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002039/1.369, allocations: 39.98 kB / 0.8164 GB, free: 83.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007281/1.376, allocations: 7.34 MB / 0.8235 GB, free: 76.12 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/1.376, allocations: 0 / 0.8235 GB, free: 76.12 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008435/1.384, allocations: 6.053 MB / 0.8295 GB, free: 70.04 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002138/1.386, allocations: 463.5 kB / 0.8299 GB, free: 69.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001729/1.388, allocations: 32 kB / 0.8299 GB, free: 69.53 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002312/1.391, allocations: 111.8 kB / 0.83 GB, free: 69.42 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004371/1.391, allocations: 117 kB / 0.8301 GB, free: 69.31 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/1.391, allocations: 55.98 kB / 0.8302 GB, free: 69.25 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004617/1.396, allocations: 2.962 MB / 0.8331 GB, free: 66.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.242e-06/1.396, allocations: 4 kB / 0.8331 GB, free: 66.29 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006101/1.402, allocations: 1.147 MB / 0.8342 GB, free: 65.15 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (147): * Single equations (assignments): 142 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008942/1.411, allocations: 6.716 MB / 0.8408 GB, free: 58.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008605/1.42, allocations: 5.504 MB / 0.8461 GB, free: 52.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.42, allocations: 0 / 0.8461 GB, free: 52.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002643/1.422, allocations: 1.889 MB / 0.848 GB, free: 50.99 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003527/1.426, allocations: 0.55 MB / 0.8485 GB, free: 50.45 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06705/1.493, allocations: 41.17 MB / 0.8887 GB, free: 5.086 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004134/1.497, allocations: 3.872 MB / 0.8925 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005007/1.502, allocations: 1.995 MB / 0.8945 GB, free: 15.18 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00336/1.505, allocations: 2.362 MB / 0.8968 GB, free: 12.82 MB / 0.545 GB Notification: Performance of SimCode: time 1.763e-06/1.505, allocations: 4 kB / 0.8968 GB, free: 12.81 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4073/1.913, allocations: 89.91 MB / 0.9846 GB, free: 131.3 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001474/1.913, allocations: 215.1 kB / 0.9848 GB, free: 131.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.448/6.361, allocations: 3.375 kB / 0.9848 GB, free: 131.1 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat