Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 177.1 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 221.5 MB / 230.3 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009793/0.0009793, allocations: 91.14 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.112e-05/2.1e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1283, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4597/0.588, allocations: 102 MB / 489.6 MB, free: 8.688 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000315/0.5884, allocations: 85.64 kB / 489.7 MB, free: 8.605 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.513/1.101, allocations: 95.62 MB / 0.5716 GB, free: 97.4 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.101, allocations: 0 / 0.5716 GB, free: 97.4 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003601/1.102, allocations: 104.2 kB / 0.5717 GB, free: 97.4 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1750 * Number of variables: 1750 Notification: Performance of Generate backend data structure: time 0.02917/1.131, allocations: 5.988 MB / 0.5775 GB, free: 95.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/1.131, allocations: 11.16 kB / 0.5775 GB, free: 95.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0186/1.15, allocations: 4.399 MB / 0.5818 GB, free: 95.06 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01553/1.165, allocations: 5.091 MB / 0.5868 GB, free: 94.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002396/1.166, allocations: 163.9 kB / 0.587 GB, free: 94.38 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002795/1.168, allocations: 302.3 kB / 0.5873 GB, free: 94.37 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01485/1.183, allocations: 7.609 MB / 0.5947 GB, free: 93.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02552/1.209, allocations: 11.31 MB / 0.6057 GB, free: 87.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002134/1.209, allocations: 64.44 kB / 0.6058 GB, free: 87.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009348/1.21, allocations: 32.59 kB / 0.6058 GB, free: 87.14 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001531/1.212, allocations: 1.101 MB / 0.6069 GB, free: 86.95 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08006/1.292, allocations: 53.91 MB / 0.6595 GB, free: 42.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005268/1.297, allocations: 4.666 MB / 0.6641 GB, free: 37.29 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003348/1.3, allocations: 3.337 MB / 0.6674 GB, free: 33.94 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001677/1.302, allocations: 1.037 MB / 0.6684 GB, free: 32.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/1.302, allocations: 55.81 kB / 0.6684 GB, free: 32.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=214): time 5.841e-06/1.302, allocations: 0 / 0.6684 GB, free: 32.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=252): time 0.05305/1.355, allocations: 25.59 MB / 0.6934 GB, free: 6.965 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.146e-05/1.355, allocations: 205.9 kB / 0.6936 GB, free: 6.723 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005808/1.361, allocations: 3.314 MB / 0.6969 GB, free: 3.383 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009335/1.362, allocations: 25.7 kB / 0.6969 GB, free: 3.352 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002334/1.365, allocations: 3.521 MB / 0.7003 GB, free: 15.78 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001855/1.366, allocations: 0.925 MB / 0.7012 GB, free: 14.84 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003647/1.367, allocations: 0 / 0.7012 GB, free: 14.84 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004839/1.367, allocations: 0.5992 MB / 0.7018 GB, free: 14.24 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005015/1.372, allocations: 3.301 MB / 0.705 GB, free: 10.93 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008196/1.38, allocations: 7.267 MB / 0.7121 GB, free: 1.68 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.353/1.734, allocations: 4.812 MB / 0.7168 GB, free: 98.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00016/1.734, allocations: 40.22 kB / 0.7169 GB, free: 98.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=905) (initialization): time 0.03343/1.767, allocations: 11.78 MB / 0.7284 GB, free: 98.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001622/1.767, allocations: 66.5 kB / 0.7284 GB, free: 98.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002754/1.768, allocations: 144.3 kB / 0.7286 GB, free: 98.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006917/1.775, allocations: 2.268 MB / 0.7308 GB, free: 98.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007196/1.782, allocations: 1.678 MB / 0.7324 GB, free: 98.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02061/1.802, allocations: 14.42 MB / 0.7465 GB, free: 92.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007766/1.81, allocations: 328.6 kB / 0.7468 GB, free: 92.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002168/1.812, allocations: 449.9 kB / 0.7472 GB, free: 92.49 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 643 * 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 (832): * Single equations (assignments): 826 * 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%) 15,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002567/1.815, allocations: 464.4 kB / 0.7477 GB, free: 92.2 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01198/1.827, allocations: 7.369 MB / 0.7549 GB, free: 90 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001145/1.828, allocations: 371.9 kB / 0.7552 GB, free: 89.89 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01295/1.841, allocations: 7.338 MB / 0.7624 GB, free: 87.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.111e-05/1.841, allocations: 28.47 kB / 0.7624 GB, free: 87.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.571e-05/1.841, allocations: 14.41 kB / 0.7624 GB, free: 87.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.842e-05/1.841, allocations: 11.44 kB / 0.7625 GB, free: 87.38 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02366/1.865, allocations: 13.9 MB / 0.776 GB, free: 82.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.515e-05/1.865, allocations: 3.938 kB / 0.776 GB, free: 82.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002466/1.868, allocations: 440.9 kB / 0.7765 GB, free: 82.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005453/1.873, allocations: 2.021 MB / 0.7784 GB, free: 82.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003727/1.873, allocations: 11.38 kB / 0.7784 GB, free: 82.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01457/1.888, allocations: 13.11 MB / 0.7912 GB, free: 74.55 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/1.888, allocations: 7.812 kB / 0.7912 GB, free: 74.55 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02023/1.908, allocations: 11.66 MB / 0.8026 GB, free: 64.61 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001899/1.91, allocations: 412 kB / 0.803 GB, free: 64.21 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001719/1.912, allocations: 8 kB / 0.803 GB, free: 64.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00335/1.915, allocations: 175.3 kB / 0.8032 GB, free: 64.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008967/1.916, allocations: 153.5 kB / 0.8033 GB, free: 64.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004352/1.917, allocations: 67.94 kB / 0.8034 GB, free: 63.95 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004991/1.922, allocations: 2.217 MB / 0.8056 GB, free: 62 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.922, allocations: 0 / 0.8056 GB, free: 62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009148/1.931, allocations: 1.212 MB / 0.8068 GB, free: 60.8 MB / 442.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 (195): * Single equations (assignments): 189 * 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.01964/1.951, allocations: 12.49 MB / 0.819 GB, free: 49.64 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01485/1.966, allocations: 8.301 MB / 0.8271 GB, free: 41.33 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.427e-05/1.966, allocations: 4 kB / 0.8271 GB, free: 41.33 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007532/1.973, allocations: 3.602 MB / 0.8306 GB, free: 37.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004839/1.978, allocations: 356.9 kB / 0.8309 GB, free: 37.36 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03463/2.013, allocations: 11.49 MB / 0.8421 GB, free: 25.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006713/2.02, allocations: 3.838 MB / 0.8459 GB, free: 22.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.007111/2.027, allocations: 2.271 MB / 0.8481 GB, free: 19.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00482/2.032, allocations: 2.264 MB / 0.8503 GB, free: 17.49 MB / 442.7 MB Notification: Performance of SimCode: time 1.964e-06/2.032, allocations: 0 / 0.8503 GB, free: 17.49 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4969/2.528, allocations: 99.7 MB / 0.9477 GB, free: 87.28 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/2.529, allocations: 165.9 kB / 0.9478 GB, free: 87.08 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.741/7.27, allocations: 0 / 0.9478 GB, free: 87.08 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat does not exist to compare? outputFormat=mat