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.001105/0.001105, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008386/0.0008388, allocations: 97.41 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1794/0.1794, allocations: 45.14 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.495e-05/3.5e-05, allocations: 4 kB / 460.5 MB, free: 69.9 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 63.24 MB / 0.5115 GB, free: 6.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3417/0.4445, allocations: 110.7 MB / 0.6196 GB, free: 15.33 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.4448, allocations: 84.27 kB / 0.6197 GB, free: 15.29 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2567/0.7015, allocations: 106.7 MB / 0.7239 GB, free: 12.51 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.122e-06/0.7015, allocations: 3.938 kB / 0.7239 GB, free: 12.51 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003043/0.7018, allocations: 107.9 kB / 0.724 GB, free: 12.4 MB / 0.5105 GB 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.01505/0.7169, allocations: 5.156 MB / 0.729 GB, free: 7.18 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.7169, allocations: 15.91 kB / 0.7291 GB, free: 7.164 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002667/0.7196, allocations: 0.8937 MB / 0.7299 GB, free: 6.262 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02618/0.7458, allocations: 6.931 MB / 0.7367 GB, free: 15.31 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0138/0.7596, allocations: 5.836 MB / 0.7424 GB, free: 9.418 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003129/0.76, allocations: 390.6 kB / 0.7428 GB, free: 9.035 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00136/0.7613, allocations: 0.5192 MB / 0.7433 GB, free: 8.516 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.264/1.025, allocations: 12.22 MB / 0.7552 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002062/1.026, allocations: 73.17 kB / 0.7553 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006905/1.026, allocations: 248.2 kB / 0.7555 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00143/1.028, allocations: 1.067 MB / 0.7566 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01959/1.047, allocations: 9.874 MB / 0.7662 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05086/1.098, allocations: 55.57 MB / 0.8205 GB, free: 80.94 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00889/1.107, allocations: 4.157 MB / 0.8245 GB, free: 79.32 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002257/1.109, allocations: 2.209 MB / 0.8267 GB, free: 78.34 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01121/1.121, allocations: 9.356 MB / 0.8358 GB, free: 73.73 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/1.121, allocations: 55.12 kB / 0.8359 GB, free: 73.68 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=171): time 5.41e-06/1.121, allocations: 2.781 kB / 0.8359 GB, free: 73.68 MB / 0.5261 GB Notification: Performance of matching and sorting (n=197): time 0.03578/1.157, allocations: 15.08 MB / 0.8506 GB, free: 68.02 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/1.157, allocations: 203.1 kB / 0.8508 GB, free: 67.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00608/1.163, allocations: 4.107 MB / 0.8548 GB, free: 66.35 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002953/1.163, allocations: 49.33 kB / 0.8548 GB, free: 66.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001836/1.165, allocations: 3.66 MB / 0.8584 GB, free: 63.49 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005439/1.165, allocations: 0.7616 MB / 0.8592 GB, free: 62.95 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/1.166, allocations: 118.5 kB / 0.8593 GB, free: 62.85 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002543/1.166, allocations: 0.5709 MB / 0.8598 GB, free: 62.43 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002331/1.168, allocations: 2.037 MB / 0.8618 GB, free: 61.75 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003336/1.172, allocations: 5.87 MB / 0.8676 GB, free: 55.84 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00357/1.175, allocations: 3.444 MB / 0.8709 GB, free: 54.59 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.735e-05/1.175, allocations: 42.56 kB / 0.871 GB, free: 54.59 MB / 0.5261 GB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01192/1.187, allocations: 8.392 MB / 0.8792 GB, free: 51.48 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.898e-05/1.187, allocations: 64.53 kB / 0.8792 GB, free: 51.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001385/1.187, allocations: 138.6 kB / 0.8794 GB, free: 51.48 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002228/1.19, allocations: 0.9269 MB / 0.8803 GB, free: 51.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003954/1.194, allocations: 1.436 MB / 0.8817 GB, free: 50.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006811/1.201, allocations: 7.408 MB / 0.8889 GB, free: 43.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004315/1.205, allocations: 340.1 kB / 0.8892 GB, free: 42.83 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007517/1.206, allocations: 386.4 kB / 0.8896 GB, free: 42.46 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 () * 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.0008676/1.207, allocations: 0.6061 MB / 0.8902 GB, free: 41.86 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006576/1.207, allocations: 417.4 kB / 0.8906 GB, free: 41.45 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005044/1.212, allocations: 3.155 MB / 0.8937 GB, free: 38.85 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-05/1.212, allocations: 20 kB / 0.8937 GB, free: 38.83 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/1.212, allocations: 8 kB / 0.8937 GB, free: 38.82 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/1.212, allocations: 11.73 kB / 0.8937 GB, free: 38.82 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01281/1.225, allocations: 8.545 MB / 0.902 GB, free: 31.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/1.225, allocations: 0 / 0.902 GB, free: 31.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001337/1.227, allocations: 301.4 kB / 0.9023 GB, free: 31.61 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001943/1.228, allocations: 0.6896 MB / 0.903 GB, free: 31.11 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001431/1.229, allocations: 28 kB / 0.903 GB, free: 31.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006009/1.235, allocations: 6.544 MB / 0.9094 GB, free: 24.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/1.235, allocations: 7.938 kB / 0.9094 GB, free: 24.95 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006456/1.241, allocations: 5.683 MB / 0.915 GB, free: 19.88 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008291/1.242, allocations: 457.2 kB / 0.9154 GB, free: 19.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003573/1.242, allocations: 30.94 kB / 0.9154 GB, free: 19.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001285/1.244, allocations: 107.2 kB / 0.9155 GB, free: 19.33 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000249/1.244, allocations: 126.1 kB / 0.9157 GB, free: 19.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/1.244, allocations: 48 kB / 0.9157 GB, free: 19.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003379/1.247, allocations: 2.893 MB / 0.9185 GB, free: 16.64 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.7e-07/1.247, allocations: 0 / 0.9185 GB, free: 16.64 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003898/1.251, allocations: 1.131 MB / 0.9196 GB, free: 15.52 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 () * 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.006488/1.258, allocations: 6.555 MB / 0.926 GB, free: 9.609 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006381/1.264, allocations: 5.251 MB / 0.9312 GB, free: 4.816 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/1.264, allocations: 0 / 0.9312 GB, free: 4.816 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002065/1.266, allocations: 1.771 MB / 0.9329 GB, free: 3.199 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00216/1.268, allocations: 0.5343 MB / 0.9334 GB, free: 2.754 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01872/1.287, allocations: 10.47 MB / 0.9436 GB, free: 9.656 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003917/1.291, allocations: 3.974 MB / 0.9475 GB, free: 6.648 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004861/1.296, allocations: 2.007 MB / 0.9495 GB, free: 4.652 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002848/1.299, allocations: 2.362 MB / 0.9518 GB, free: 2.289 MB / 0.5417 GB Notification: Performance of SimCode: time 1.072e-06/1.299, allocations: 0 / 0.9518 GB, free: 2.289 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3687/1.668, allocations: 88.94 MB / 1.039 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000136/1.668, allocations: 184.8 kB / 1.039 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.227/5.895, allocations: 0 / 1.039 GB, free: 102.2 MB / 0.5417 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