Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",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.002388/0.002388, allocations: 178.8 kB / 8.363 MB, free: 0.7109 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.019/2.019, allocations: 205.3 MB / 214.1 MB, free: 14.16 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.001113/0.001113, allocations: 92.7 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.565e-05/2.57e-05, allocations: 0 / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3457, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1707/0.5164, allocations: 101.1 MB / 463.6 MB, free: 1.031 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000364/0.5169, allocations: 87.95 kB / 463.7 MB, free: 0.9453 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6683/1.185, allocations: 94.45 MB / 0.545 GB, free: 92.63 MB / 395.1 MB Notification: Performance of FrontEnd: time 4.308e-06/1.185, allocations: 6.938 kB / 0.545 GB, free: 92.63 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003574/1.186, allocations: 104.2 kB / 0.5451 GB, free: 92.62 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1755 * Number of variables: 1755 Notification: Performance of Generate backend data structure: time 0.04128/1.227, allocations: 5.993 MB / 0.551 GB, free: 88.96 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.166e-05/1.227, allocations: 11.62 kB / 0.551 GB, free: 88.96 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03132/1.258, allocations: 4.404 MB / 0.5553 GB, free: 86.04 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01947/1.278, allocations: 5.252 MB / 0.5604 GB, free: 80.77 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002927/1.278, allocations: 160 kB / 0.5606 GB, free: 80.62 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002785/1.281, allocations: 291.9 kB / 0.5609 GB, free: 80.33 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01876/1.3, allocations: 7.626 MB / 0.5683 GB, free: 72.7 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02778/1.328, allocations: 11.35 MB / 0.5794 GB, free: 60.27 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002708/1.328, allocations: 63.39 kB / 0.5794 GB, free: 60.2 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001817/1.33, allocations: 32 kB / 0.5795 GB, free: 60.17 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002671/1.332, allocations: 1.101 MB / 0.5805 GB, free: 59.07 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0931/1.426, allocations: 54.07 MB / 0.6333 GB, free: 3.809 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01192/1.438, allocations: 4.701 MB / 0.6379 GB, free: 14.97 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007278/1.445, allocations: 3.34 MB / 0.6412 GB, free: 11.62 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003416/1.448, allocations: 1.033 MB / 0.6422 GB, free: 10.43 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.796e-05/1.449, allocations: 55.81 kB / 0.6423 GB, free: 10.37 MB / 411.1 MB Notification: Performance of pre-optimization done (n=217): time 8.817e-06/1.449, allocations: 0 / 0.6423 GB, free: 10.37 MB / 411.1 MB Notification: Performance of matching and sorting (n=255): time 0.4142/1.863, allocations: 25.69 MB / 0.6673 GB, free: 96.2 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/1.863, allocations: 208.1 kB / 0.6675 GB, free: 95.98 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01072/1.874, allocations: 3.34 MB / 0.6708 GB, free: 95.61 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009596/1.875, allocations: 30.64 kB / 0.6708 GB, free: 95.58 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003509/1.878, allocations: 3.463 MB / 0.6742 GB, free: 93.46 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001951/1.88, allocations: 0.9324 MB / 0.6751 GB, free: 92.91 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001474/1.882, allocations: 0 / 0.6751 GB, free: 92.91 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0007856/1.883, allocations: 0.6043 MB / 0.6757 GB, free: 92.58 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008123/1.891, allocations: 3.312 MB / 0.679 GB, free: 91.87 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01096/1.902, allocations: 7.281 MB / 0.6861 GB, free: 85.32 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01074/1.913, allocations: 4.835 MB / 0.6908 GB, free: 83.79 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001753/1.913, allocations: 41.94 kB / 0.6908 GB, free: 83.79 MB / 411.1 MB Notification: Performance of matching and sorting (n=909) (initialization): time 0.03564/1.948, allocations: 11.69 MB / 0.7022 GB, free: 80.12 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001374/1.949, allocations: 65.66 kB / 0.7023 GB, free: 80.12 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002256/1.949, allocations: 143.1 kB / 0.7024 GB, free: 80.12 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01122/1.96, allocations: 2.259 MB / 0.7047 GB, free: 79.7 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01176/1.972, allocations: 1.688 MB / 0.7063 GB, free: 79.5 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02777/2, allocations: 14.27 MB / 0.7202 GB, free: 70.14 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01048/2.01, allocations: 328.4 kB / 0.7205 GB, free: 69.9 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002424/2.013, allocations: 446.5 kB / 0.721 GB, free: 69.5 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 644 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (836): * Single equations (assignments): 830 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003247/2.016, allocations: 471.9 kB / 0.7214 GB, free: 69.04 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02289/2.039, allocations: 7.382 MB / 0.7286 GB, free: 63.11 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001924/2.041, allocations: 383.1 kB / 0.729 GB, free: 62.73 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02359/2.065, allocations: 7.363 MB / 0.7362 GB, free: 56.99 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.091e-05/2.065, allocations: 29.33 kB / 0.7362 GB, free: 56.96 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.991e-05/2.065, allocations: 11.95 kB / 0.7362 GB, free: 56.95 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-05/2.065, allocations: 10.69 kB / 0.7362 GB, free: 56.95 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04444/2.109, allocations: 13.95 MB / 0.7499 GB, free: 45.11 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.392e-05/2.109, allocations: 5.062 kB / 0.7499 GB, free: 45.11 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005101/2.115, allocations: 439.3 kB / 0.7503 GB, free: 44.68 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01103/2.126, allocations: 2.024 MB / 0.7523 GB, free: 42.64 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001042/2.127, allocations: 11.98 kB / 0.7523 GB, free: 42.63 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02917/2.156, allocations: 13.1 MB / 0.7651 GB, free: 29.2 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/2.156, allocations: 1.125 kB / 0.7651 GB, free: 29.2 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02942/2.185, allocations: 11.7 MB / 0.7765 GB, free: 17.39 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004027/2.19, allocations: 0.9372 MB / 0.7774 GB, free: 16.43 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001631/2.191, allocations: 4 kB / 0.7774 GB, free: 16.43 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005353/2.197, allocations: 182.4 kB / 0.7776 GB, free: 16.25 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001234/2.198, allocations: 161.7 kB / 0.7777 GB, free: 16.09 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003678/2.198, allocations: 64.92 kB / 0.7778 GB, free: 16.03 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.005392/2.204, allocations: 2.233 MB / 0.78 GB, free: 13.79 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.423e-06/2.204, allocations: 0 / 0.78 GB, free: 13.79 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.01018/2.214, allocations: 1.216 MB / 0.7812 GB, free: 12.57 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 192 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(4,100.0%) 18,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03136/2.245, allocations: 12.52 MB / 0.7934 GB, free: 15.95 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.02238/2.268, allocations: 8.16 MB / 0.8014 GB, free: 7.797 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 8.807e-06/2.268, allocations: 0 / 0.8014 GB, free: 7.797 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01054/2.278, allocations: 3.611 MB / 0.8049 GB, free: 4.152 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004467/2.283, allocations: 368.3 kB / 0.8052 GB, free: 3.801 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3485/2.631, allocations: 12.08 MB / 0.817 GB, free: 107.2 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009999/2.642, allocations: 3.855 MB / 0.8208 GB, free: 106.4 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006829/2.648, allocations: 2.328 MB / 0.8231 GB, free: 106.4 MB / 427.1 MB Notification: Performance of SimCode: time 1.763e-06/2.648, allocations: 0 / 0.8231 GB, free: 106.4 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.255/7.903, allocations: 160.3 MB / 0.9796 GB, free: 115.5 MB / 443.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat does not exist to compare? outputFormat=mat