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.001589/0.001589, allocations: 181.5 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.081/2.081, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001149/0.001149, allocations: 90.69 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.613e-05/3.627e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1022, allocations: 47.58 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4726/0.5749, allocations: 101.8 MB / 471 MB, free: 7.418 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003281/0.5753, allocations: 90.39 kB / 471.1 MB, free: 7.371 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7197/1.295, allocations: 96.45 MB / 0.5542 GB, free: 91.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.408e-06/1.295, allocations: 0 / 0.5542 GB, free: 91.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003549/1.295, allocations: 105 kB / 0.5543 GB, free: 91.71 MB / 410.7 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.0421/1.338, allocations: 6.005 MB / 0.5602 GB, free: 89.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.706e-05/1.338, allocations: 7.812 kB / 0.5602 GB, free: 89.71 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004482/1.342, allocations: 0.89 MB / 0.5611 GB, free: 89.64 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03195/1.374, allocations: 4.403 MB / 0.5654 GB, free: 89.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02059/1.395, allocations: 5.26 MB / 0.5705 GB, free: 88.6 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000521/1.395, allocations: 384.1 kB / 0.5709 GB, free: 88.58 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003344/1.399, allocations: 498.8 kB / 0.5713 GB, free: 88.58 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04452/1.443, allocations: 12.78 MB / 0.5838 GB, free: 83.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004075/1.444, allocations: 67.55 kB / 0.5839 GB, free: 83.47 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002761/1.447, allocations: 244.2 kB / 0.5841 GB, free: 83.33 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00292/1.45, allocations: 1.092 MB / 0.5852 GB, free: 83.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03827/1.488, allocations: 11.18 MB / 0.5961 GB, free: 79.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09665/1.585, allocations: 56.04 MB / 0.6508 GB, free: 26.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0345/1.619, allocations: 5.839 MB / 0.6565 GB, free: 20.18 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006954/1.626, allocations: 3.403 MB / 0.6598 GB, free: 16.78 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003086/1.629, allocations: 1.035 MB / 0.6608 GB, free: 15.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.948e-05/1.629, allocations: 59.81 kB / 0.6609 GB, free: 15.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 1.582e-05/1.629, allocations: 4 kB / 0.6609 GB, free: 15.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=255): time 0.1416/1.771, allocations: 26.89 MB / 0.6872 GB, free: 4.48 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001693/1.771, allocations: 201.9 kB / 0.6874 GB, free: 4.238 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01152/1.783, allocations: 3.821 MB / 0.6911 GB, free: 404 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00102/1.784, allocations: 61.7 kB / 0.6912 GB, free: 336 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3244/2.108, allocations: 3.375 MB / 0.6944 GB, free: 97.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002164/2.111, allocations: 0.9561 MB / 0.6954 GB, free: 96.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001113/2.112, allocations: 136.1 kB / 0.6955 GB, free: 96.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005985/2.112, allocations: 0.6015 MB / 0.6961 GB, free: 96.34 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01028/2.123, allocations: 3.402 MB / 0.6994 GB, free: 96.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01403/2.137, allocations: 7.269 MB / 0.7065 GB, free: 91.37 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01362/2.15, allocations: 4.916 MB / 0.7113 GB, free: 91.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002728/2.151, allocations: 38.94 kB / 0.7114 GB, free: 91.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=885) (initialization): time 0.039/2.19, allocations: 12.44 MB / 0.7235 GB, free: 89.18 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000154/2.19, allocations: 67.59 kB / 0.7236 GB, free: 89.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002286/2.19, allocations: 136 kB / 0.7237 GB, free: 89.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01114/2.201, allocations: 2.27 MB / 0.7259 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01213/2.214, allocations: 1.64 MB / 0.7275 GB, free: 88.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03151/2.245, allocations: 15.13 MB / 0.7423 GB, free: 80.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01013/2.255, allocations: 465.6 kB / 0.7427 GB, free: 80.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002223/2.258, allocations: 434.1 kB / 0.7431 GB, free: 80.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 620 * 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 (812): * Single equations (assignments): 806 * 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.003235/2.261, allocations: 0.6141 MB / 0.7437 GB, free: 79.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001328/2.262, allocations: 406.1 kB / 0.7441 GB, free: 79.38 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02521/2.288, allocations: 7.575 MB / 0.7515 GB, free: 76.73 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.412e-05/2.288, allocations: 26.12 kB / 0.7516 GB, free: 76.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.463e-05/2.288, allocations: 10.75 kB / 0.7516 GB, free: 76.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-05/2.288, allocations: 9.938 kB / 0.7516 GB, free: 76.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04511/2.333, allocations: 15.03 MB / 0.7663 GB, free: 71.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-05/2.333, allocations: 0 / 0.7663 GB, free: 71.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005169/2.338, allocations: 440.5 kB / 0.7667 GB, free: 71.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01057/2.349, allocations: 2.027 MB / 0.7687 GB, free: 70.92 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009509/2.35, allocations: 47.14 kB / 0.7687 GB, free: 70.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02723/2.377, allocations: 13.84 MB / 0.7822 GB, free: 58.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/2.377, allocations: 3.938 kB / 0.7822 GB, free: 58.51 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03123/2.408, allocations: 11.93 MB / 0.7939 GB, free: 48.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004055/2.413, allocations: 0.9724 MB / 0.7948 GB, free: 47.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001654/2.414, allocations: 42.95 kB / 0.7949 GB, free: 47.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005387/2.42, allocations: 215.4 kB / 0.7951 GB, free: 47.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001386/2.421, allocations: 168.5 kB / 0.7952 GB, free: 47.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004338/2.422, allocations: 63.94 kB / 0.7953 GB, free: 47.06 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006918/2.429, allocations: 2.668 MB / 0.7979 GB, free: 44.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.12e-07/2.429, allocations: 0 / 0.7979 GB, free: 44.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009773/2.438, allocations: 1.392 MB / 0.7993 GB, free: 43.31 MB / 426.7 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.03315/2.472, allocations: 12.77 MB / 0.8117 GB, free: 31.61 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02097/2.493, allocations: 8.495 MB / 0.82 GB, free: 23.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/2.493, allocations: 0 / 0.82 GB, free: 23.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009805/2.503, allocations: 3.693 MB / 0.8236 GB, free: 19.37 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004425/2.507, allocations: 450.2 kB / 0.8241 GB, free: 18.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04167/2.549, allocations: 12.42 MB / 0.8362 GB, free: 6.508 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009316/2.558, allocations: 3.857 MB / 0.8399 GB, free: 2.645 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00786/2.566, allocations: 2.342 MB / 0.8422 GB, free: 308 kB / 426.7 MB Notification: Performance of SimCode: time 1.523e-06/2.566, allocations: 0 / 0.8422 GB, free: 308 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.124/7.69, allocations: 162.9 MB / 1.001 GB, free: 12.98 MB / 458.7 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