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.002128/0.002128, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.087/2.087, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 93.8 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3061/0.3061, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.532e-05/2.559e-05, allocations: 7.984 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4116/0.4117, allocations: 58.86 MB / 477.2 MB, free: 5.141 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2024/0.6141, allocations: 109.7 MB / 0.5731 GB, free: 5.516 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.6145, allocations: 79.47 kB / 0.5732 GB, free: 5.441 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9921/1.607, allocations: 160.7 MB / 0.7301 GB, free: 77.32 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.725e-06/1.607, allocations: 0 / 0.7301 GB, free: 77.32 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004791/1.607, allocations: 159.9 kB / 0.7302 GB, free: 77.16 MB / 475.1 MB 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.02965/1.637, allocations: 7.513 MB / 0.7376 GB, free: 69.58 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/1.637, allocations: 8.031 kB / 0.7376 GB, free: 69.57 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07284/1.71, allocations: 10.05 MB / 0.7474 GB, free: 59.49 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0305/1.74, allocations: 8.416 MB / 0.7556 GB, free: 51.05 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005504/1.741, allocations: 268 kB / 0.7559 GB, free: 50.79 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004844/1.746, allocations: 495.8 kB / 0.7563 GB, free: 50.3 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03243/1.778, allocations: 13.11 MB / 0.7691 GB, free: 37.19 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05036/1.829, allocations: 18.81 MB / 0.7875 GB, free: 16.93 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004771/1.829, allocations: 87.22 kB / 0.7876 GB, free: 16.84 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003788/1.833, allocations: 44 kB / 0.7876 GB, free: 16.8 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004269/1.837, allocations: 2.108 MB / 0.7897 GB, free: 14.7 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5307/2.368, allocations: 81.11 MB / 0.8689 GB, free: 65.5 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01671/2.385, allocations: 8.067 MB / 0.8768 GB, free: 63.7 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01051/2.395, allocations: 4.984 MB / 0.8817 GB, free: 63.64 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003928/2.396, allocations: 66.34 kB / 0.8817 GB, free: 63.64 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.256e-05/2.396, allocations: 80.45 kB / 0.8818 GB, free: 63.59 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=452): time 1.082e-05/2.396, allocations: 3.656 kB / 0.8818 GB, free: 63.59 MB / 0.4952 GB Notification: Performance of matching and sorting (n=499): time 0.1146/2.511, allocations: 36.47 MB / 0.9174 GB, free: 54.7 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/2.511, allocations: 232.3 kB / 0.9176 GB, free: 54.48 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01318/2.524, allocations: 5.166 MB / 0.9227 GB, free: 52.63 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001158/2.525, allocations: 25.7 kB / 0.9227 GB, free: 52.6 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004807/2.53, allocations: 5.73 MB / 0.9283 GB, free: 48.26 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002825/2.533, allocations: 1.762 MB / 0.93 GB, free: 46.94 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001558/2.534, allocations: 5.5 kB / 0.93 GB, free: 46.94 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.001047/2.536, allocations: 0.8346 MB / 0.9308 GB, free: 46.4 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01092/2.546, allocations: 4.645 MB / 0.9354 GB, free: 44.76 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01731/2.564, allocations: 11.16 MB / 0.9463 GB, free: 34.37 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01626/2.58, allocations: 7.225 MB / 0.9533 GB, free: 29.71 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002822/2.581, allocations: 68 kB / 0.9534 GB, free: 29.65 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1560) (initialization): time 0.04425/2.625, allocations: 15.68 MB / 0.9687 GB, free: 16.22 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001733/2.625, allocations: 104 kB / 0.9688 GB, free: 16.12 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004106/2.625, allocations: 232 kB / 0.969 GB, free: 15.89 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007552/2.633, allocations: 1.709 MB / 0.9707 GB, free: 14.57 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01731/2.65, allocations: 2.729 MB / 0.9734 GB, free: 12.21 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02279/2.673, allocations: 13.23 MB / 0.9863 GB, free: 0 / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01286/2.686, allocations: 473.4 kB / 0.9867 GB, free: 15.64 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003385/2.69, allocations: 0.6693 MB / 0.9874 GB, free: 14.99 MB / 0.5108 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1051 * 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 (1436): * Single equations (assignments): 1423 * 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.004851/2.694, allocations: 0.6818 MB / 0.9881 GB, free: 14.3 MB / 0.5108 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02743/2.722, allocations: 8.683 MB / 0.9965 GB, free: 6.785 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002524/2.724, allocations: 0.5862 MB / 0.9971 GB, free: 6.191 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03264/2.757, allocations: 9.291 MB / 1.006 GB, free: 15.01 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002557/2.757, allocations: 96.78 kB / 1.006 GB, free: 14.92 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.558e-05/2.758, allocations: 8 kB / 1.006 GB, free: 14.91 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001053/2.758, allocations: 20.25 kB / 1.006 GB, free: 14.91 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06918/2.827, allocations: 19.85 MB / 1.026 GB, free: 14.82 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.229e-05/2.827, allocations: 12.94 kB / 1.026 GB, free: 14.81 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0081/2.835, allocations: 0.7978 MB / 1.026 GB, free: 14.18 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007206/2.842, allocations: 1.337 MB / 1.028 GB, free: 13.21 MB / 0.5421 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001184/2.844, allocations: 31.56 kB / 1.028 GB, free: 13.19 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0246/2.868, allocations: 12.14 MB / 1.04 GB, free: 1.777 MB / 0.5421 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-05/2.868, allocations: 19.94 kB / 1.04 GB, free: 1.758 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4208/3.289, allocations: 16.56 MB / 1.056 GB, free: 137 MB / 0.5421 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005897/3.295, allocations: 1.333 MB / 1.057 GB, free: 136.9 MB / 0.5421 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00268/3.298, allocations: 18.16 kB / 1.057 GB, free: 136.9 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007196/3.305, allocations: 244.1 kB / 1.057 GB, free: 136.9 MB / 0.5421 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00177/3.307, allocations: 302.9 kB / 1.058 GB, free: 136.9 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009917/3.308, allocations: 137 kB / 1.058 GB, free: 136.9 MB / 0.5421 GB Notification: Performance of sorting global known variables: time 0.01068/3.319, allocations: 3.432 MB / 1.061 GB, free: 136.7 MB / 0.5421 GB Notification: Performance of sort global known variables: time 1.583e-06/3.319, allocations: 0 / 1.061 GB, free: 136.7 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.01503/3.334, allocations: 1.751 MB / 1.063 GB, free: 136.7 MB / 0.5421 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 (383): * Single equations (assignments): 370 * 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.03839/3.372, allocations: 19.41 MB / 1.082 GB, free: 131 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.02512/3.397, allocations: 11.46 MB / 1.093 GB, free: 128.7 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 1.541e-05/3.397, allocations: 2.406 kB / 1.093 GB, free: 128.7 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.01101/3.408, allocations: 4.668 MB / 1.098 GB, free: 126.7 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006381/3.415, allocations: 0.5397 MB / 1.098 GB, free: 126.4 MB / 0.5421 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0672/3.482, allocations: 20.63 MB / 1.118 GB, free: 119.1 MB / 0.5421 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01577/3.498, allocations: 6.278 MB / 1.124 GB, free: 117.1 MB / 0.5421 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01076/3.509, allocations: 4.168 MB / 1.128 GB, free: 113.7 MB / 0.5421 GB Notification: Performance of SimCode: time 1.833e-06/3.509, allocations: 0 / 1.128 GB, free: 113.7 MB / 0.5421 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.07/9.579, allocations: 305.4 MB / 1.427 GB, free: 4.684 MB / 0.5421 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