Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.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.Joints.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_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.001023/0.001023, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009573/0.0009574, allocations: 96.05 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1883/0.1883, allocations: 45.15 MB / 383.8 MB, free: 264 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.577e-05/1.578e-05, allocations: 0 / 453.3 MB, free: 75.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 63.26 MB / 0.5045 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3993/0.5034, allocations: 111.7 MB / 0.6136 GB, free: 6.82 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001854/0.5036, allocations: 78.14 kB / 0.6136 GB, free: 6.781 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.692/1.196, allocations: 161.1 MB / 0.771 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.613e-06/1.196, allocations: 0 / 0.771 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0005046/1.196, allocations: 152.5 kB / 0.7711 GB, free: 105.6 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.02553/1.222, allocations: 7.396 MB / 0.7783 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/1.222, allocations: 10.75 kB / 0.7783 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03906/1.261, allocations: 10.05 MB / 0.7881 GB, free: 102 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02499/1.286, allocations: 7.381 MB / 0.7954 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006845/1.287, allocations: 260.9 kB / 0.7956 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004188/1.291, allocations: 484.6 kB / 0.7961 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02664/1.317, allocations: 12.78 MB / 0.8085 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0378/1.355, allocations: 18.37 MB / 0.8265 GB, free: 97.18 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003946/1.356, allocations: 93.31 kB / 0.8266 GB, free: 97.17 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003753/1.36, allocations: 47.83 kB / 0.8266 GB, free: 97.16 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002698/1.362, allocations: 2.039 MB / 0.8286 GB, free: 97.14 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0862/1.448, allocations: 79.64 MB / 0.9064 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007933/1.456, allocations: 7.839 MB / 0.914 GB, free: 27.24 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004952/1.461, allocations: 4.823 MB / 0.9188 GB, free: 22.79 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002462/1.462, allocations: 65.34 kB / 0.9188 GB, free: 22.74 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.28e-05/1.462, allocations: 84.05 kB / 0.9189 GB, free: 22.65 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=431): time 7.383e-06/1.462, allocations: 0 / 0.9189 GB, free: 22.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=479): time 0.07445/1.536, allocations: 38.74 MB / 0.9567 GB, free: 6.129 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/1.536, allocations: 226.8 kB / 0.9569 GB, free: 5.863 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008144/1.545, allocations: 5.057 MB / 0.9619 GB, free: 0.793 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0008229/1.545, allocations: 25.7 kB / 0.9619 GB, free: 0.7617 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.3433/1.889, allocations: 5.708 MB / 0.9675 GB, free: 111.8 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002705/1.891, allocations: 1.695 MB / 0.9691 GB, free: 110.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00105/1.893, allocations: 1.344 kB / 0.9691 GB, free: 110.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0008188/1.893, allocations: 0.8106 MB / 0.9699 GB, free: 110.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007896/1.901, allocations: 4.496 MB / 0.9743 GB, free: 110.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01373/1.915, allocations: 10.87 MB / 0.9849 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01234/1.927, allocations: 7.016 MB / 0.9918 GB, free: 102.3 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003882/1.928, allocations: 66.5 kB / 0.9918 GB, free: 102.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1517) (initialization): time 0.03199/1.96, allocations: 15.39 MB / 1.007 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006732/1.961, allocations: 101.4 kB / 1.007 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006498/1.961, allocations: 224.3 kB / 1.007 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00451/1.966, allocations: 1.709 MB / 1.009 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009588/1.975, allocations: 2.653 MB / 1.011 GB, free: 101.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01339/1.989, allocations: 13.24 MB / 1.024 GB, free: 95.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01002/1.999, allocations: 458.4 kB / 1.025 GB, free: 95.72 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003042/2.002, allocations: 0.6507 MB / 1.025 GB, free: 95.72 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1028 * Number of states: 0 () * Number of discrete variables: 53 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1393): * Single equations (assignments): 1380 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004725/2.007, allocations: 0.6769 MB / 1.026 GB, free: 95.24 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01513/2.022, allocations: 8.383 MB / 1.034 GB, free: 93.96 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/2.023, allocations: 0.5786 MB / 1.035 GB, free: 93.64 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01482/2.038, allocations: 8.785 MB / 1.043 GB, free: 90.52 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001166/2.038, allocations: 88.78 kB / 1.044 GB, free: 90.51 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.056e-05/2.038, allocations: 9.438 kB / 1.044 GB, free: 90.51 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.389e-05/2.038, allocations: 31.12 kB / 1.044 GB, free: 90.51 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03743/2.076, allocations: 19.09 MB / 1.062 GB, free: 83.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.345e-05/2.076, allocations: 11.5 kB / 1.062 GB, free: 83.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003773/2.08, allocations: 0.748 MB / 1.063 GB, free: 83.51 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003568/2.083, allocations: 1.339 MB / 1.064 GB, free: 83.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008659/2.084, allocations: 25.7 kB / 1.064 GB, free: 83.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01186/2.096, allocations: 12.13 MB / 1.076 GB, free: 74.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-05/2.096, allocations: 19.94 kB / 1.076 GB, free: 74.55 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02279/2.119, allocations: 16.01 MB / 1.092 GB, free: 59.57 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001887/2.121, allocations: 0.5816 MB / 1.092 GB, free: 58.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001925/2.123, allocations: 19.38 kB / 1.092 GB, free: 58.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004525/2.127, allocations: 231.2 kB / 1.093 GB, free: 58.84 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001284/2.129, allocations: 291.1 kB / 1.093 GB, free: 58.64 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007281/2.129, allocations: 127.9 kB / 1.093 GB, free: 58.52 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.007017/2.137, allocations: 3.359 MB / 1.096 GB, free: 55.62 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.71e-07/2.137, allocations: 0 / 1.096 GB, free: 55.62 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01275/2.149, allocations: 1.712 MB / 1.098 GB, free: 53.91 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (362): * Single equations (assignments): 349 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02082/2.17, allocations: 18.89 MB / 1.116 GB, free: 36.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01728/2.188, allocations: 11.08 MB / 1.127 GB, free: 26.17 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.539e-05/2.188, allocations: 1 kB / 1.127 GB, free: 26.17 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006507/2.194, allocations: 4.501 MB / 1.132 GB, free: 22.05 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004545/2.199, allocations: 0.5489 MB / 1.132 GB, free: 21.57 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05856/2.257, allocations: 19.11 MB / 1.151 GB, free: 4.77 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01376/2.271, allocations: 6.123 MB / 1.157 GB, free: 252 kB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.02457/2.296, allocations: 5.046 MB / 1.162 GB, free: 14.77 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3394/2.635, allocations: 3.945 MB / 1.166 GB, free: 109.5 MB / 0.5573 GB Notification: Performance of SimCode: time 1.192e-06/2.635, allocations: 0 / 1.166 GB, free: 109.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2157/2.851, allocations: 137.4 MB / 1.3 GB, free: 52.02 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001537/2.851, allocations: 142.8 kB / 1.3 GB, free: 51.82 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.226/9.077, allocations: 4 kB / 1.3 GB, free: 51.81 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat