Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_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.001656/0.001656, allocations: 185.5 kB / 15.76 MB, free: 5.996 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.786/1.786, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001041/0.001041, allocations: 98.84 kB / 270.2 MB, free: 13.35 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.2223/0.2223, allocations: 43.55 MB / 362 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003471/0.0003472, allocations: 16 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1295, allocations: 58.85 MB / 490.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4519/0.5815, allocations: 110.4 MB / 0.5867 GB, free: 5.617 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/0.5819, allocations: 81.83 kB / 0.5868 GB, free: 5.574 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6658/1.248, allocations: 164.1 MB / 0.747 GB, free: 97.18 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.405e-06/1.248, allocations: 0 / 0.747 GB, free: 97.18 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005865/1.248, allocations: 156.3 kB / 0.7471 GB, free: 97.18 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.02873/1.277, allocations: 8.011 MB / 0.755 GB, free: 93.86 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/1.277, allocations: 9.625 kB / 0.755 GB, free: 93.86 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008096/1.285, allocations: 1.546 MB / 0.7565 GB, free: 93.75 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03862/1.324, allocations: 10.04 MB / 0.7663 GB, free: 93.18 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02405/1.348, allocations: 8.467 MB / 0.7746 GB, free: 92.22 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006872/1.349, allocations: 0.6205 MB / 0.7752 GB, free: 92.2 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004529/1.353, allocations: 0.8297 MB / 0.776 GB, free: 92.19 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04992/1.403, allocations: 20.55 MB / 0.796 GB, free: 86.16 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000682/1.404, allocations: 89.75 kB / 0.7961 GB, free: 86.11 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004844/1.409, allocations: 400.1 kB / 0.7965 GB, free: 85.89 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003455/1.412, allocations: 2.104 MB / 0.7986 GB, free: 85.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03738/1.45, allocations: 18.07 MB / 0.8162 GB, free: 73.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1116/1.561, allocations: 85.17 MB / 0.8994 GB, free: 5.332 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.316/1.877, allocations: 8.046 MB / 0.9072 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003954/1.878, allocations: 66.73 kB / 0.9073 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.751e-05/1.878, allocations: 78.98 kB / 0.9074 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=450): time 8.706e-06/1.878, allocations: 0 / 0.9074 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=501): time 0.1064/1.984, allocations: 44.12 MB / 0.9505 GB, free: 95.36 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.359e-05/1.984, allocations: 230.6 kB / 0.9507 GB, free: 95.13 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008512/1.993, allocations: 5.753 MB / 0.9563 GB, free: 94.64 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009354/1.994, allocations: 92.11 kB / 0.9564 GB, free: 94.61 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003262/1.997, allocations: 5.696 MB / 0.962 GB, free: 91.58 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002271/1.999, allocations: 1.82 MB / 0.9637 GB, free: 90.25 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007184/2, allocations: 222 kB / 0.9639 GB, free: 90.08 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006399/2.001, allocations: 0.7993 MB / 0.9647 GB, free: 89.57 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007214/2.008, allocations: 4.918 MB / 0.9695 GB, free: 87.93 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01559/2.024, allocations: 11.07 MB / 0.9803 GB, free: 78.16 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01345/2.037, allocations: 7.346 MB / 0.9875 GB, free: 75.66 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003815/2.038, allocations: 63.47 kB / 0.9876 GB, free: 75.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1490) (initialization): time 0.03828/2.076, allocations: 17.17 MB / 1.004 GB, free: 69.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003542/2.076, allocations: 95.19 kB / 1.004 GB, free: 69.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000557/2.077, allocations: 216.5 kB / 1.005 GB, free: 69.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004716/2.082, allocations: 1.728 MB / 1.006 GB, free: 69.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009834/2.092, allocations: 2.598 MB / 1.009 GB, free: 68.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0149/2.106, allocations: 14.39 MB / 1.023 GB, free: 54.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01024/2.117, allocations: 0.6682 MB / 1.024 GB, free: 54.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002976/2.12, allocations: 0.634 MB / 1.024 GB, free: 53.48 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 () * Number of clocked 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.01302/2.133, allocations: 4.194 MB / 1.028 GB, free: 49.84 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002393/2.135, allocations: 0.6131 MB / 1.029 GB, free: 49.21 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02047/2.156, allocations: 9.735 MB / 1.038 GB, free: 41.05 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001354/2.156, allocations: 88.27 kB / 1.038 GB, free: 40.98 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-05/2.156, allocations: 12 kB / 1.038 GB, free: 40.96 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-05/2.156, allocations: 25.81 kB / 1.039 GB, free: 40.96 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05125/2.207, allocations: 21.73 MB / 1.06 GB, free: 22.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.578e-05/2.207, allocations: 12.19 kB / 1.06 GB, free: 22.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004512/2.212, allocations: 0.8025 MB / 1.061 GB, free: 22.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003867/2.216, allocations: 1.351 MB / 1.062 GB, free: 21.14 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001111/2.217, allocations: 90.05 kB / 1.062 GB, free: 21.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/2.23, allocations: 13.25 MB / 1.075 GB, free: 8.625 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/2.23, allocations: 19.81 kB / 1.075 GB, free: 8.609 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03485/2.265, allocations: 17.9 MB / 1.092 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00644/2.271, allocations: 1.385 MB / 1.094 GB, free: 8.793 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003386/2.275, allocations: 86.5 kB / 1.094 GB, free: 8.715 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004906/2.28, allocations: 314 kB / 1.094 GB, free: 8.52 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001443/2.281, allocations: 306.6 kB / 1.094 GB, free: 8.316 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009267/2.282, allocations: 131.8 kB / 1.095 GB, free: 8.191 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.3054/2.588, allocations: 4.099 MB / 1.099 GB, free: 102 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.11e-07/2.588, allocations: 0 / 1.099 GB, free: 102 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0114/2.599, allocations: 2.044 MB / 1.101 GB, free: 102 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 () * Number of clocked 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.02824/2.627, allocations: 20.07 MB / 1.12 GB, free: 96.56 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01863/2.646, allocations: 12.16 MB / 1.132 GB, free: 96.02 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-05/2.646, allocations: 10.19 kB / 1.132 GB, free: 96.02 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006819/2.653, allocations: 4.938 MB / 1.137 GB, free: 95.52 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004468/2.657, allocations: 0.7268 MB / 1.138 GB, free: 95.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4682/3.126, allocations: 223.4 MB / 1.356 GB, free: 152.3 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01204/3.138, allocations: 6.278 MB / 1.362 GB, free: 151.3 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0121/3.15, allocations: 4.117 MB / 1.366 GB, free: 151.3 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009239/3.159, allocations: 4.089 MB / 1.37 GB, free: 151.3 MB / 0.6042 GB Notification: Performance of SimCode: time 3.406e-06/3.159, allocations: 3.219 kB / 1.37 GB, free: 151.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4937/3.653, allocations: 148.8 MB / 1.515 GB, free: 150.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/3.653, allocations: 191.8 kB / 1.515 GB, free: 150 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.006/10.66, allocations: 3.656 kB / 1.515 GB, free: 150 MB / 0.6042 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat