Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002594/0.002601, allocations: 182 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.163/2.163, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001074/0.001073, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3007/0.3007, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.241e-05/4.258e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1219, allocations: 58.86 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5393/0.6612, allocations: 110.3 MB / 0.5806 GB, free: 9.465 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.6615, allocations: 77.83 kB / 0.5807 GB, free: 9.426 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.026/1.687, allocations: 164.3 MB / 0.7411 GB, free: 94.98 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.786e-06/1.687, allocations: 0 / 0.7411 GB, free: 94.98 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005185/1.688, allocations: 159.3 kB / 0.7413 GB, free: 94.97 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: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.02971/1.718, allocations: 7.516 MB / 0.7486 GB, free: 91.88 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/1.718, allocations: 7.281 kB / 0.7486 GB, free: 91.88 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007582/1.725, allocations: 1.543 MB / 0.7501 GB, free: 91.76 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07307/1.799, allocations: 10.06 MB / 0.7599 GB, free: 91.19 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03192/1.831, allocations: 8.431 MB / 0.7682 GB, free: 90.23 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008511/1.831, allocations: 0.6223 MB / 0.7688 GB, free: 90.21 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005483/1.837, allocations: 0.8172 MB / 0.7696 GB, free: 90.21 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06138/1.898, allocations: 20.38 MB / 0.7895 GB, free: 85 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005937/1.899, allocations: 92.25 kB / 0.7896 GB, free: 84.95 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004927/1.904, allocations: 389.6 kB / 0.7899 GB, free: 84.73 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004434/1.908, allocations: 2.111 MB / 0.792 GB, free: 84.33 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05077/1.959, allocations: 17.77 MB / 0.8094 GB, free: 73.94 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1482/2.108, allocations: 85.17 MB / 0.8925 GB, free: 9.418 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03035/2.138, allocations: 7.974 MB / 0.9003 GB, free: 1.219 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3814/2.519, allocations: 5.083 MB / 0.9053 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005435/2.52, allocations: 66.8 kB / 0.9054 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.314e-05/2.52, allocations: 71.17 kB / 0.9054 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=450): time 9.849e-06/2.52, allocations: 2.016 kB / 0.9054 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=501): time 0.1611/2.681, allocations: 37.65 MB / 0.9422 GB, free: 97.97 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/2.681, allocations: 232.8 kB / 0.9424 GB, free: 97.75 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01527/2.697, allocations: 5.699 MB / 0.948 GB, free: 97.21 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001226/2.698, allocations: 94.77 kB / 0.9481 GB, free: 97.18 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005101/2.703, allocations: 5.524 MB / 0.9535 GB, free: 94.14 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003192/2.706, allocations: 1.819 MB / 0.9552 GB, free: 93.07 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001808/2.708, allocations: 224.2 kB / 0.9555 GB, free: 93.07 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001152/2.709, allocations: 0.8017 MB / 0.9562 GB, free: 92.73 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01244/2.722, allocations: 4.812 MB / 0.9609 GB, free: 92.27 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01731/2.739, allocations: 10.96 MB / 0.9716 GB, free: 82.49 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01782/2.757, allocations: 7.303 MB / 0.9788 GB, free: 80.32 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000308/2.758, allocations: 60.19 kB / 0.9788 GB, free: 80.32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1490) (initialization): time 0.04764/2.805, allocations: 16.79 MB / 0.9952 GB, free: 74.97 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001686/2.805, allocations: 97.28 kB / 0.9953 GB, free: 74.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003419/2.806, allocations: 216.4 kB / 0.9955 GB, free: 74.97 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007645/2.813, allocations: 1.714 MB / 0.9972 GB, free: 74.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01726/2.831, allocations: 2.602 MB / 0.9997 GB, free: 74.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02356/2.854, allocations: 14.03 MB / 1.013 GB, free: 61.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01301/2.867, allocations: 0.6702 MB / 1.014 GB, free: 61.41 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00299/2.871, allocations: 0.6291 MB / 1.015 GB, free: 60.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 979 * Number of states: 0 () * Number of discrete variables: 51 (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.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 (1366): * Single equations (assignments): 1353 * 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.004617/2.875, allocations: 0.9319 MB / 1.016 GB, free: 59.87 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001911/2.877, allocations: 0.6131 MB / 1.016 GB, free: 59.25 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02596/2.903, allocations: 9.599 MB / 1.026 GB, free: 51.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001791/2.903, allocations: 97.59 kB / 1.026 GB, free: 51.12 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.303e-05/2.903, allocations: 12 kB / 1.026 GB, free: 51.11 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001055/2.903, allocations: 23.36 kB / 1.026 GB, free: 51.11 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0622/2.966, allocations: 21.59 MB / 1.047 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.466e-05/2.966, allocations: 12 kB / 1.047 GB, free: 33.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007742/2.974, allocations: 0.7913 MB / 1.048 GB, free: 32.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006891/2.981, allocations: 1.363 MB / 1.049 GB, free: 31.39 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001275/2.982, allocations: 89.75 kB / 1.049 GB, free: 31.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02188/3.004, allocations: 12.88 MB / 1.062 GB, free: 19.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.259e-05/3.004, allocations: 19.11 kB / 1.062 GB, free: 19.14 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04062/3.044, allocations: 17.14 MB / 1.078 GB, free: 3.207 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005785/3.05, allocations: 1.393 MB / 1.08 GB, free: 1.902 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002577/3.053, allocations: 84.78 kB / 1.08 GB, free: 1.824 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007035/3.06, allocations: 308 kB / 1.08 GB, free: 1.633 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001876/3.062, allocations: 306.3 kB / 1.08 GB, free: 1.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001099/3.063, allocations: 129 kB / 1.08 GB, free: 1.309 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.02133/3.084, allocations: 4.504 MB / 1.085 GB, free: 15.16 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.51e-07/3.085, allocations: 0 / 1.085 GB, free: 15.16 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01561/3.1, allocations: 2.039 MB / 1.087 GB, free: 13.13 MB / 0.5261 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 (385): * Single equations (assignments): 372 * 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.4393/3.539, allocations: 20.22 MB / 1.107 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03082/3.57, allocations: 11.99 MB / 1.118 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.728e-05/3.57, allocations: 7.688 kB / 1.118 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01213/3.583, allocations: 4.86 MB / 1.123 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006949/3.59, allocations: 0.7298 MB / 1.124 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07311/3.663, allocations: 21.16 MB / 1.144 GB, free: 97.99 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01618/3.679, allocations: 6.283 MB / 1.151 GB, free: 97.07 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01175/3.691, allocations: 4.176 MB / 1.155 GB, free: 93.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.543e-06/3.691, allocations: 0 / 1.155 GB, free: 93.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.472/10.16, allocations: 309.9 MB / 1.457 GB, free: 23.89 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat