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.001003/0.001003, allocations: 199.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009391/0.0009393, allocations: 99.44 kB / 286.7 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2157/0.2157, allocations: 45.16 MB / 383.8 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.987e-05/1.969e-05, allocations: 4 kB / 453.3 MB, free: 75.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1086, allocations: 63.25 MB / 0.5045 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4659/0.5745, allocations: 110.1 MB / 0.612 GB, free: 8.664 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.5748, allocations: 88.62 kB / 0.612 GB, free: 8.617 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2734/0.8483, allocations: 104.4 MB / 0.714 GB, free: 8.23 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.144e-06/0.8484, allocations: 4 kB / 0.714 GB, free: 8.227 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004766/0.8489, allocations: 111.9 kB / 0.7141 GB, free: 8.117 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.0198/0.8687, allocations: 5.156 MB / 0.7192 GB, free: 2.895 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.802e-05/0.8688, allocations: 8.031 kB / 0.7192 GB, free: 2.887 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02889/0.8977, allocations: 6.927 MB / 0.726 GB, free: 11.94 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01769/0.9154, allocations: 5.836 MB / 0.7317 GB, free: 6.047 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003515/0.9158, allocations: 168.3 kB / 0.7318 GB, free: 5.883 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002676/0.9185, allocations: 327.7 kB / 0.7321 GB, free: 5.562 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01706/0.9356, allocations: 7.224 MB / 0.7392 GB, free: 14.33 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0284/0.964, allocations: 10.91 MB / 0.7498 GB, free: 2.281 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002696/0.9644, allocations: 71.31 kB / 0.7499 GB, free: 2.211 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001073/0.9654, allocations: 36 kB / 0.7499 GB, free: 2.176 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001553/0.967, allocations: 1.07 MB / 0.751 GB, free: 1.102 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3914/1.358, allocations: 54.56 MB / 0.8043 GB, free: 89.39 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004226/1.363, allocations: 3.29 MB / 0.8075 GB, free: 88.73 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002437/1.365, allocations: 2.114 MB / 0.8095 GB, free: 88.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003617/1.366, allocations: 338 kB / 0.8099 GB, free: 88.41 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.899e-05/1.366, allocations: 55.34 kB / 0.8099 GB, free: 88.37 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=180): time 5.39e-06/1.366, allocations: 3.938 kB / 0.8099 GB, free: 88.37 MB / 0.5261 GB Notification: Performance of matching and sorting (n=207): time 0.03827/1.404, allocations: 18.97 MB / 0.8285 GB, free: 82.59 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.692e-05/1.404, allocations: 199.9 kB / 0.8286 GB, free: 82.37 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005979/1.41, allocations: 3.581 MB / 0.8321 GB, free: 81.06 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005098/1.411, allocations: 25.7 kB / 0.8322 GB, free: 81.03 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002732/1.413, allocations: 3.698 MB / 0.8358 GB, free: 78.39 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001306/1.415, allocations: 0.7718 MB / 0.8365 GB, free: 77.82 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003426/1.415, allocations: 0 / 0.8365 GB, free: 77.82 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003294/1.415, allocations: 0.5796 MB / 0.8371 GB, free: 77.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002716/1.418, allocations: 2.013 MB / 0.8391 GB, free: 76.68 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004826/1.423, allocations: 5.938 MB / 0.8449 GB, free: 70.64 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004846/1.428, allocations: 3.443 MB / 0.8482 GB, free: 69.62 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001031/1.428, allocations: 42.56 kB / 0.8483 GB, free: 69.62 MB / 0.5261 GB Notification: Performance of matching and sorting (n=853) (initialization): time 0.01545/1.443, allocations: 7.794 MB / 0.8559 GB, free: 67.03 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.823e-05/1.444, allocations: 64.47 kB / 0.8559 GB, free: 67.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001435/1.444, allocations: 145 kB / 0.8561 GB, free: 67.03 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002324/1.446, allocations: 0.9517 MB / 0.857 GB, free: 66.84 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004899/1.451, allocations: 1.489 MB / 0.8585 GB, free: 66.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007604/1.459, allocations: 7.244 MB / 0.8655 GB, free: 62.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006145/1.465, allocations: 224.3 kB / 0.8657 GB, free: 62.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001343/1.466, allocations: 399.1 kB / 0.8661 GB, free: 62.06 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * 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 (791): * Single equations (assignments): 786 * 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.001066/1.467, allocations: 477.3 kB / 0.8666 GB, free: 61.68 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005568/1.473, allocations: 3.436 MB / 0.8699 GB, free: 60.43 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009442/1.474, allocations: 384.9 kB / 0.8703 GB, free: 60.23 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005558/1.479, allocations: 3.133 MB / 0.8734 GB, free: 58.98 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.726e-05/1.479, allocations: 24 kB / 0.8734 GB, free: 58.95 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/1.479, allocations: 4 kB / 0.8734 GB, free: 58.95 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.347e-05/1.479, allocations: 14.92 kB / 0.8734 GB, free: 58.95 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01457/1.494, allocations: 7.91 MB / 0.8811 GB, free: 52.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.031e-05/1.494, allocations: 3.734 kB / 0.8811 GB, free: 52.49 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001494/1.496, allocations: 317.7 kB / 0.8814 GB, free: 52.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001985/1.498, allocations: 0.6765 MB / 0.8821 GB, free: 51.75 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001746/1.498, allocations: 7.516 kB / 0.8821 GB, free: 51.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005914/1.504, allocations: 6.191 MB / 0.8881 GB, free: 45.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/1.504, allocations: 7.797 kB / 0.8882 GB, free: 45.95 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007088/1.511, allocations: 5.779 MB / 0.8938 GB, free: 40.77 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/1.512, allocations: 419.1 kB / 0.8942 GB, free: 40.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004463/1.512, allocations: 7.938 kB / 0.8942 GB, free: 40.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001415/1.514, allocations: 71.73 kB / 0.8943 GB, free: 40.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002818/1.514, allocations: 128 kB / 0.8944 GB, free: 40.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/1.514, allocations: 56 kB / 0.8945 GB, free: 40.16 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003519/1.518, allocations: 2.429 MB / 0.8968 GB, free: 38.04 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/1.518, allocations: 0.8438 kB / 0.8968 GB, free: 38.04 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0055/1.523, allocations: 0.9864 MB / 0.8978 GB, free: 37.06 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (157): * Single equations (assignments): 152 * 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.007311/1.531, allocations: 6.772 MB / 0.9044 GB, free: 30.94 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008025/1.539, allocations: 5.076 MB / 0.9094 GB, free: 26.34 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/1.539, allocations: 0 / 0.9094 GB, free: 26.34 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00222/1.541, allocations: 1.766 MB / 0.9111 GB, free: 24.74 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002614/1.544, allocations: 447.8 kB / 0.9115 GB, free: 24.37 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02112/1.565, allocations: 10.31 MB / 0.9216 GB, free: 15.44 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004178/1.569, allocations: 3.974 MB / 0.9255 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005026/1.574, allocations: 2.076 MB / 0.9275 GB, free: 11.15 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003246/1.577, allocations: 2.34 MB / 0.9298 GB, free: 8.984 MB / 0.5261 GB Notification: Performance of SimCode: time 8.42e-07/1.577, allocations: 3.562 kB / 0.9298 GB, free: 8.984 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5269/2.104, allocations: 83.1 MB / 1.011 GB, free: 126.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/2.104, allocations: 147.2 kB / 1.011 GB, free: 125.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.686/6.79, allocations: 4 kB / 1.011 GB, free: 125.9 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