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.001544/0.001544, allocations: 176.8 kB / 17.06 MB, free: 5.082 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.522/1.522, allocations: 223.2 MB / 241 MB, free: 11.86 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009128/0.0009127, allocations: 92.12 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3893/0.3893, allocations: 44.22 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003503, allocations: 12 kB / 460 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3889, allocations: 61.9 MB / 0.5096 GB, free: 37.94 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1601/0.5491, allocations: 111.6 MB / 0.6186 GB, free: 15.5 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.5494, allocations: 79.92 kB / 0.6187 GB, free: 15.42 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6908/1.24, allocations: 162.2 MB / 0.777 GB, free: 68.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.544e-06/1.24, allocations: 3.938 kB / 0.777 GB, free: 68.21 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004369/1.241, allocations: 152 kB / 0.7772 GB, free: 68.06 MB / 490.7 MB 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.02606/1.267, allocations: 7.831 MB / 0.7848 GB, free: 60.14 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/1.267, allocations: 8.031 kB / 0.7848 GB, free: 60.13 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006924/1.274, allocations: 1.504 MB / 0.7863 GB, free: 58.61 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03812/1.312, allocations: 10.01 MB / 0.7961 GB, free: 48.58 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02226/1.334, allocations: 8.059 MB / 0.804 GB, free: 40.43 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006112/1.335, allocations: 0.6057 MB / 0.8045 GB, free: 39.82 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004739/1.34, allocations: 0.8005 MB / 0.8053 GB, free: 39.02 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04429/1.384, allocations: 20.09 MB / 0.8249 GB, free: 17.5 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003596/1.384, allocations: 83.22 kB / 0.825 GB, free: 17.41 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002271/1.387, allocations: 391.7 kB / 0.8254 GB, free: 17.03 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002185/1.389, allocations: 2.046 MB / 0.8274 GB, free: 14.98 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03222/1.421, allocations: 17.65 MB / 0.8446 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4292/1.85, allocations: 83.52 MB / 0.9262 GB, free: 41.48 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02361/1.874, allocations: 7.813 MB / 0.9338 GB, free: 40.21 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005448/1.875, allocations: 59.48 kB / 0.9339 GB, free: 40.21 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001161/1.875, allocations: 78.83 kB / 0.934 GB, free: 40.16 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=429): time 1.569e-05/1.875, allocations: 0 / 0.934 GB, free: 40.16 MB / 0.5105 GB Notification: Performance of matching and sorting (n=476): time 0.103/1.978, allocations: 40.34 MB / 0.9734 GB, free: 32.27 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/1.978, allocations: 233.2 kB / 0.9736 GB, free: 32.04 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0124/1.99, allocations: 5.643 MB / 0.9791 GB, free: 30.14 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00103/1.991, allocations: 88.95 kB / 0.9792 GB, free: 30.07 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004339/1.996, allocations: 5.57 MB / 0.9846 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00263/1.999, allocations: 1.734 MB / 0.9863 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001669/2, allocations: 218.7 kB / 0.9865 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001264/2.001, allocations: 0.7898 MB / 0.9873 GB, free: 23.98 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007738/2.009, allocations: 4.7 MB / 0.9919 GB, free: 22.43 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01181/2.021, allocations: 10.74 MB / 1.002 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01211/2.033, allocations: 7.088 MB / 1.009 GB, free: 10.38 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003879/2.034, allocations: 58.31 kB / 1.009 GB, free: 10.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1448) (initialization): time 0.03575/2.069, allocations: 16.6 MB / 1.026 GB, free: 3.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006374/2.07, allocations: 92.78 kB / 1.026 GB, free: 3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000883/2.071, allocations: 212 kB / 1.026 GB, free: 2.793 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005174/2.076, allocations: 1.718 MB / 1.028 GB, free: 1.469 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01123/2.088, allocations: 2.647 MB / 1.03 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02086/2.108, allocations: 14.36 MB / 1.044 GB, free: 2.156 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01289/2.121, allocations: 0.6496 MB / 1.045 GB, free: 1.613 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003601/2.125, allocations: 0.6159 MB / 1.045 GB, free: 1.012 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 () * Number of clocked 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.02166/2.147, allocations: 4.744 MB / 1.05 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002804/2.15, allocations: 0.6012 MB / 1.051 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02337/2.173, allocations: 9.234 MB / 1.06 GB, free: 6.762 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001508/2.173, allocations: 90.8 kB / 1.06 GB, free: 6.68 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.864e-05/2.173, allocations: 11.83 kB / 1.06 GB, free: 6.672 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001047/2.173, allocations: 30.08 kB / 1.06 GB, free: 6.664 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0668/2.24, allocations: 21 MB / 1.08 GB, free: 5.691 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.917e-05/2.24, allocations: 12 kB / 1.08 GB, free: 5.68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004028/2.244, allocations: 0.744 MB / 1.081 GB, free: 5.09 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004117/2.248, allocations: 1.362 MB / 1.082 GB, free: 4.109 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001068/2.249, allocations: 87.75 kB / 1.082 GB, free: 4.027 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3484/2.598, allocations: 13.23 MB / 1.095 GB, free: 130.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.858e-05/2.598, allocations: 22.34 kB / 1.095 GB, free: 130.2 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02143/2.619, allocations: 16.5 MB / 1.111 GB, free: 127 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002418/2.622, allocations: 0.625 MB / 1.112 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001977/2.624, allocations: 81.91 kB / 1.112 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003937/2.628, allocations: 293.6 kB / 1.112 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009069/2.629, allocations: 291.8 kB / 1.113 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003839/2.629, allocations: 123.4 kB / 1.113 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.007866/2.637, allocations: 3.925 MB / 1.117 GB, free: 126.7 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5.71e-07/2.637, allocations: 0 / 1.117 GB, free: 126.7 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0121/2.649, allocations: 1.971 MB / 1.119 GB, free: 126.7 MB / 0.5573 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 () * Number of clocked 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.02656/2.676, allocations: 19.28 MB / 1.137 GB, free: 118.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0211/2.697, allocations: 11.65 MB / 1.149 GB, free: 114.8 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.622e-05/2.697, allocations: 3.188 kB / 1.149 GB, free: 114.8 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.009648/2.707, allocations: 4.696 MB / 1.153 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005879/2.713, allocations: 0.7238 MB / 1.154 GB, free: 112.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4594/3.172, allocations: 218.1 MB / 1.367 GB, free: 119.8 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01396/3.186, allocations: 6.132 MB / 1.373 GB, free: 118.9 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01181/3.198, allocations: 4.007 MB / 1.377 GB, free: 118.8 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008785/3.207, allocations: 3.931 MB / 1.381 GB, free: 118.8 MB / 0.5886 GB Notification: Performance of SimCode: time 6.583e-06/3.207, allocations: 0 / 1.381 GB, free: 118.8 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4953/3.702, allocations: 144.5 MB / 1.522 GB, free: 129.9 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001631/3.702, allocations: 206.9 kB / 1.522 GB, free: 129.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.804/10.51, allocations: 0 / 1.522 GB, free: 129.7 MB / 0.5886 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