Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 221.3 MB / 236 MB, free: 2.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008917/0.0008918, allocations: 87.86 kB / 287 MB, free: 208 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2394/0.2394, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.346e-05/4.348e-05, allocations: 4.219 kB / 451.9 MB, free: 9.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1594, allocations: 61.92 MB / 0.5018 GB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4802/0.6396, allocations: 111.5 MB / 0.6107 GB, free: 9.742 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002267/0.6399, allocations: 79.95 kB / 0.6107 GB, free: 9.664 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.762/1.402, allocations: 162.4 MB / 0.7693 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.933e-06/1.402, allocations: 4 kB / 0.7693 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003926/1.402, allocations: 156.6 kB / 0.7694 GB, free: 107.9 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: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.02887/1.431, allocations: 7.355 MB / 0.7766 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/1.431, allocations: 10.5 kB / 0.7766 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006203/1.438, allocations: 1.506 MB / 0.7781 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03775/1.475, allocations: 10.01 MB / 0.7879 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02228/1.498, allocations: 8.011 MB / 0.7957 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006636/1.498, allocations: 0.6083 MB / 0.7963 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004766/1.503, allocations: 0.8087 MB / 0.7971 GB, free: 101 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04933/1.552, allocations: 19.9 MB / 0.8165 GB, free: 86.54 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004674/1.553, allocations: 94.48 kB / 0.8166 GB, free: 86.45 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003938/1.557, allocations: 386.4 kB / 0.817 GB, free: 86.13 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002435/1.559, allocations: 2.044 MB / 0.819 GB, free: 84.09 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03198/1.591, allocations: 17.36 MB / 0.8359 GB, free: 66.71 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5076/2.099, allocations: 83.54 MB / 0.9175 GB, free: 99.18 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0184/2.117, allocations: 7.74 MB / 0.9251 GB, free: 97.91 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008286/2.126, allocations: 4.912 MB / 0.9299 GB, free: 97.86 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003586/2.126, allocations: 64.64 kB / 0.9299 GB, free: 97.86 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.177e-05/2.126, allocations: 73.92 kB / 0.93 GB, free: 97.82 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=429): time 9.548e-06/2.126, allocations: 0 / 0.93 GB, free: 97.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=476): time 0.08652/2.213, allocations: 34.58 MB / 0.9638 GB, free: 93.11 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/2.213, allocations: 232.1 kB / 0.964 GB, free: 92.89 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009869/2.223, allocations: 5.586 MB / 0.9695 GB, free: 92.26 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0009825/2.224, allocations: 88.3 kB / 0.9695 GB, free: 92.18 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003509/2.227, allocations: 5.571 MB / 0.975 GB, free: 88.01 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002541/2.23, allocations: 1.736 MB / 0.9767 GB, free: 86.73 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006531/2.231, allocations: 215.4 kB / 0.9769 GB, free: 86.56 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005728/2.231, allocations: 0.7916 MB / 0.9777 GB, free: 86.05 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006364/2.238, allocations: 4.597 MB / 0.9821 GB, free: 84.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009975/2.248, allocations: 10.64 MB / 0.9925 GB, free: 74.95 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01017/2.258, allocations: 7.042 MB / 0.9994 GB, free: 72.87 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001979/2.258, allocations: 63 kB / 0.9995 GB, free: 72.87 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1448) (initialization): time 0.0344/2.292, allocations: 16.41 MB / 1.015 GB, free: 67.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004769/2.293, allocations: 96.91 kB / 1.016 GB, free: 67.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007031/2.294, allocations: 212.9 kB / 1.016 GB, free: 67.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005125/2.299, allocations: 1.708 MB / 1.017 GB, free: 67.51 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009807/2.309, allocations: 2.522 MB / 1.02 GB, free: 67.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01594/2.325, allocations: 14 MB / 1.034 GB, free: 54.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01071/2.335, allocations: 0.6459 MB / 1.034 GB, free: 54.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002966/2.338, allocations: 0.6183 MB / 1.035 GB, free: 53.69 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 962 * 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 (1324): * Single equations (assignments): 1311 * 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.004508/2.343, allocations: 0.9053 MB / 1.036 GB, free: 52.78 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002178/2.345, allocations: 0.5977 MB / 1.036 GB, free: 52.18 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01763/2.363, allocations: 9.119 MB / 1.045 GB, free: 44.53 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001319/2.363, allocations: 91.22 kB / 1.045 GB, free: 44.45 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.902e-05/2.363, allocations: 15.89 kB / 1.045 GB, free: 44.44 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-05/2.363, allocations: 19.22 kB / 1.045 GB, free: 44.44 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04434/2.407, allocations: 20.7 MB / 1.066 GB, free: 27.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.231e-05/2.408, allocations: 8 kB / 1.066 GB, free: 27.08 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004285/2.412, allocations: 0.7499 MB / 1.066 GB, free: 26.49 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00384/2.416, allocations: 1.355 MB / 1.068 GB, free: 25.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001063/2.417, allocations: 89.08 kB / 1.068 GB, free: 25.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01236/2.429, allocations: 12.88 MB / 1.08 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.057e-05/2.429, allocations: 19.5 kB / 1.08 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02983/2.459, allocations: 17.07 MB / 1.097 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002726/2.462, allocations: 0.6217 MB / 1.098 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002968/2.465, allocations: 87.92 kB / 1.098 GB, free: 15.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004348/2.469, allocations: 291.2 kB / 1.098 GB, free: 15.01 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001125/2.47, allocations: 287.4 kB / 1.098 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003597/2.471, allocations: 123.5 kB / 1.098 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.006981/2.478, allocations: 3.872 MB / 1.102 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.21e-07/2.478, allocations: 8 kB / 1.102 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01223/2.49, allocations: 1.98 MB / 1.104 GB, free: 9.328 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (359): * Single equations (assignments): 346 * 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.4519/2.942, allocations: 19.22 MB / 1.123 GB, free: 128.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0235/2.966, allocations: 11.48 MB / 1.134 GB, free: 128.1 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.637e-05/2.966, allocations: 5.469 kB / 1.134 GB, free: 128.1 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007983/2.974, allocations: 4.629 MB / 1.139 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00531/2.979, allocations: 0.7182 MB / 1.139 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04886/3.028, allocations: 19.53 MB / 1.158 GB, free: 124.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01326/3.041, allocations: 6.128 MB / 1.164 GB, free: 122.6 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01106/3.052, allocations: 4.003 MB / 1.168 GB, free: 122.6 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008791/3.061, allocations: 3.936 MB / 1.172 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of SimCode: time 9.92e-07/3.061, allocations: 0 / 1.172 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2136/3.275, allocations: 145.5 MB / 1.314 GB, free: 13.15 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001256/3.275, allocations: 169.3 kB / 1.314 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.881/10.16, allocations: 3.797 kB / 1.314 GB, free: 12.93 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat