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/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.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/Complex trunk/package.mo): time 0.00107/0.00107, allocations: 198.8 kB / 17.08 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.661/1.661, allocations: 227.2 MB / 245 MB, free: 5.902 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001189/0.001189, allocations: 95.27 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4505/0.4505, allocations: 45.23 MB / 394.7 MB, free: 31.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003031/0.0003031, allocations: 8.219 kB / 468.5 MB, free: 7.621 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3843/0.3846, allocations: 63.25 MB / 0.5193 GB, free: 37.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1661/0.5507, allocations: 110.8 MB / 0.6275 GB, free: 8.574 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.551, allocations: 95.91 kB / 0.6276 GB, free: 8.484 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6122/1.163, allocations: 106.6 MB / 0.7317 GB, free: 96.81 MB / 490.7 MB Notification: Performance of FrontEnd: time 6.833e-06/1.163, allocations: 0 / 0.7317 GB, free: 96.81 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005081/1.164, allocations: 108.3 kB / 0.7318 GB, free: 96.8 MB / 490.7 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.02419/1.188, allocations: 5.615 MB / 0.7373 GB, free: 94.04 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.831e-05/1.188, allocations: 11.41 kB / 0.7373 GB, free: 94.04 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004875/1.193, allocations: 0.8928 MB / 0.7382 GB, free: 93.6 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02832/1.221, allocations: 6.922 MB / 0.745 GB, free: 91.11 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02004/1.241, allocations: 5.865 MB / 0.7507 GB, free: 87.77 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007204/1.242, allocations: 393.9 kB / 0.7511 GB, free: 87.62 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003883/1.246, allocations: 0.5189 MB / 0.7516 GB, free: 87.46 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03157/1.278, allocations: 12.33 MB / 0.7636 GB, free: 77.2 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000435/1.278, allocations: 71.83 kB / 0.7637 GB, free: 77.13 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002435/1.281, allocations: 249.1 kB / 0.7639 GB, free: 76.91 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001638/1.282, allocations: 1.072 MB / 0.765 GB, free: 75.84 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02212/1.304, allocations: 10.06 MB / 0.7748 GB, free: 65.77 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0618/1.366, allocations: 55.56 MB / 0.829 GB, free: 8.566 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009815/1.376, allocations: 4.183 MB / 0.8331 GB, free: 4.23 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01712/1.393, allocations: 9.373 MB / 0.8423 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.301e-05/1.393, allocations: 54.75 kB / 0.8423 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=171): time 7.915e-06/1.394, allocations: 4 kB / 0.8423 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of matching and sorting (n=197): time 0.04993/1.443, allocations: 17.7 MB / 0.8596 GB, free: 8.754 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/1.444, allocations: 201.2 kB / 0.8598 GB, free: 8.512 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007887/1.452, allocations: 4.14 MB / 0.8639 GB, free: 4.371 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004996/1.452, allocations: 53.7 kB / 0.8639 GB, free: 4.312 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003594/1.456, allocations: 3.658 MB / 0.8675 GB, free: 0.6055 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001207/1.457, allocations: 0.7562 MB / 0.8682 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003174/1.457, allocations: 124 kB / 0.8683 GB, free: 15.72 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004049/1.458, allocations: 0.5667 MB / 0.8689 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003218/1.461, allocations: 2.097 MB / 0.8709 GB, free: 13.04 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005906/1.467, allocations: 5.931 MB / 0.8767 GB, free: 5.188 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005768/1.473, allocations: 3.464 MB / 0.8801 GB, free: 1.719 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001023/1.473, allocations: 40 kB / 0.8801 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of matching and sorting (n=822) (initialization): time 0.4035/1.876, allocations: 8.514 MB / 0.8885 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001166/1.876, allocations: 63.56 kB / 0.8885 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001885/1.877, allocations: 135.8 kB / 0.8887 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002763/1.879, allocations: 0.929 MB / 0.8896 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005694/1.885, allocations: 1.436 MB / 0.891 GB, free: 128.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/1.895, allocations: 7.611 MB / 0.8984 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006214/1.902, allocations: 340.7 kB / 0.8987 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001718/1.903, allocations: 384.1 kB / 0.8991 GB, free: 125.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 47 (fixed.color[3],fixed.color[2],fixed.color[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],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 (760): * Single equations (assignments): 755 * 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.007592/1.911, allocations: 2.481 MB / 0.9015 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001489/1.913, allocations: 414.2 kB / 0.9019 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007618/1.92, allocations: 3.221 MB / 0.905 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.188e-05/1.92, allocations: 26.78 kB / 0.9051 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.148e-05/1.92, allocations: 7.562 kB / 0.9051 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.308e-05/1.92, allocations: 13.7 kB / 0.9051 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02373/1.944, allocations: 8.585 MB / 0.9135 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.16e-05/1.944, allocations: 1.156 kB / 0.9135 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001727/1.946, allocations: 302.2 kB / 0.9138 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002638/1.949, allocations: 0.6886 MB / 0.9144 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002811/1.949, allocations: 36.81 kB / 0.9145 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007368/1.956, allocations: 6.74 MB / 0.9211 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/1.956, allocations: 6.156 kB / 0.9211 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008771/1.965, allocations: 5.788 MB / 0.9267 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001977/1.967, allocations: 450.7 kB / 0.9271 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005446/1.968, allocations: 32.59 kB / 0.9272 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001493/1.969, allocations: 103.7 kB / 0.9273 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003702/1.97, allocations: 128.5 kB / 0.9274 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001511/1.97, allocations: 46.41 kB / 0.9274 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005367/1.975, allocations: 2.935 MB / 0.9303 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.92e-07/1.975, allocations: 0 / 0.9303 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007149/1.982, allocations: 1.137 MB / 0.9314 GB, free: 114.4 MB / 0.5261 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.008694/1.991, allocations: 6.646 MB / 0.9379 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009077/2, allocations: 5.369 MB / 0.9432 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/2, allocations: 0 / 0.9432 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002698/2.003, allocations: 1.812 MB / 0.9449 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003106/2.006, allocations: 0.5159 MB / 0.9454 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1076/2.114, allocations: 134.1 MB / 1.076 GB, free: 13.23 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007066/2.121, allocations: 3.973 MB / 1.08 GB, free: 10.25 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.006255/2.127, allocations: 2 MB / 1.082 GB, free: 8.984 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005107/2.132, allocations: 2.364 MB / 1.085 GB, free: 6.801 MB / 0.5573 GB Notification: Performance of SimCode: time 1.182e-06/2.132, allocations: 0 / 1.085 GB, free: 6.801 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4718/2.604, allocations: 88.88 MB / 1.171 GB, free: 131.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001759/2.604, allocations: 202.2 kB / 1.172 GB, free: 130.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.305/7.909, allocations: 0 / 1.172 GB, free: 130.9 MB / 0.5573 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