Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001037/0.001037, allocations: 181.1 kB / 17.01 MB, free: 5.125 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.214/1.214, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0009065/0.0009065, allocations: 92.16 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002278/0.0002277, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2059/0.2062, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1099/0.3162, allocations: 101.9 MB / 477.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/0.3164, allocations: 91.95 kB / 477.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3872/0.7036, allocations: 96.39 MB / 0.5608 GB, free: 56.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.7037, allocations: 3.984 kB / 0.5608 GB, free: 56.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000296/0.704, allocations: 104 kB / 0.5609 GB, free: 56.11 MB / 378.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.02478/0.7288, allocations: 6.322 MB / 0.5671 GB, free: 49.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.7289, allocations: 8.031 kB / 0.5671 GB, free: 49.7 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003852/0.7327, allocations: 0.8819 MB / 0.568 GB, free: 48.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01642/0.7492, allocations: 4.4 MB / 0.5723 GB, free: 44.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01454/0.7637, allocations: 5.274 MB / 0.5774 GB, free: 39.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003566/0.7642, allocations: 378 kB / 0.5778 GB, free: 38.69 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002549/0.7667, allocations: 0.4959 MB / 0.5783 GB, free: 38.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02882/0.7956, allocations: 12.91 MB / 0.5909 GB, free: 24.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003356/0.796, allocations: 63.41 kB / 0.5909 GB, free: 24.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002347/0.7983, allocations: 243.9 kB / 0.5912 GB, free: 23.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001658/0.8, allocations: 1.098 MB / 0.5922 GB, free: 22.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02211/0.8221, allocations: 11.37 MB / 0.6033 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2843/1.106, allocations: 56.02 MB / 0.658 GB, free: 52.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01749/1.124, allocations: 5.893 MB / 0.6638 GB, free: 51.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001678/1.126, allocations: 1.037 MB / 0.6648 GB, free: 50.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/1.126, allocations: 59.42 kB / 0.6649 GB, free: 50.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 7.634e-06/1.126, allocations: 0 / 0.6649 GB, free: 50.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=255): time 0.07795/1.204, allocations: 31.41 MB / 0.6955 GB, free: 46.86 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.838e-05/1.204, allocations: 205.2 kB / 0.6957 GB, free: 46.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005554/1.209, allocations: 3.861 MB / 0.6995 GB, free: 45.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007058/1.21, allocations: 62.23 kB / 0.6996 GB, free: 45.67 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001821/1.212, allocations: 3.471 MB / 0.703 GB, free: 43.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009903/1.213, allocations: 0.9594 MB / 0.7039 GB, free: 42.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003414/1.213, allocations: 137.5 kB / 0.704 GB, free: 42.33 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002956/1.214, allocations: 0.5851 MB / 0.7046 GB, free: 41.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004293/1.218, allocations: 3.485 MB / 0.708 GB, free: 40.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005871/1.224, allocations: 7.351 MB / 0.7152 GB, free: 34.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006681/1.231, allocations: 4.96 MB / 0.72 GB, free: 32.62 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001586/1.231, allocations: 41.16 kB / 0.7201 GB, free: 32.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=885) (initialization): time 0.02553/1.256, allocations: 12.74 MB / 0.7325 GB, free: 23.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002069/1.257, allocations: 60 kB / 0.7326 GB, free: 23.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003152/1.257, allocations: 139.2 kB / 0.7327 GB, free: 23.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006349/1.263, allocations: 2.273 MB / 0.7349 GB, free: 21.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006443/1.27, allocations: 1.638 MB / 0.7365 GB, free: 20.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01799/1.288, allocations: 15.61 MB / 0.7518 GB, free: 6.691 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006953/1.295, allocations: 460.7 kB / 0.7522 GB, free: 6.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001794/1.297, allocations: 437.2 kB / 0.7526 GB, free: 5.934 MB / 410.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 () * Number of clocked 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.006109/1.303, allocations: 2.386 MB / 0.755 GB, free: 3.832 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001063/1.304, allocations: 398.8 kB / 0.7553 GB, free: 3.438 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01355/1.317, allocations: 7.668 MB / 0.7628 GB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.85e-05/1.317, allocations: 28 kB / 0.7628 GB, free: 12.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.832e-05/1.317, allocations: 14.86 kB / 0.7629 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-05/1.318, allocations: 7.969 kB / 0.7629 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0304/1.348, allocations: 15.13 MB / 0.7776 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.027e-05/1.348, allocations: 3.953 kB / 0.7776 GB, free: 12.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002685/1.351, allocations: 439.3 kB / 0.7781 GB, free: 12.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006149/1.357, allocations: 2.045 MB / 0.7801 GB, free: 10.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006541/1.358, allocations: 40 kB / 0.7801 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01935/1.377, allocations: 14.31 MB / 0.7941 GB, free: 11.69 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.377, allocations: 0 / 0.7941 GB, free: 11.69 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02199/1.399, allocations: 12.08 MB / 0.8059 GB, free: 15.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003553/1.403, allocations: 0.9759 MB / 0.8068 GB, free: 14.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001346/1.404, allocations: 37.64 kB / 0.8069 GB, free: 14.46 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003201/1.407, allocations: 219.7 kB / 0.8071 GB, free: 14.25 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008569/1.408, allocations: 157.7 kB / 0.8072 GB, free: 14.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004286/1.409, allocations: 69.16 kB / 0.8073 GB, free: 14.02 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005847/1.414, allocations: 2.699 MB / 0.8099 GB, free: 11.32 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.414, allocations: 2.812 kB / 0.8099 GB, free: 11.32 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008111/1.423, allocations: 1.391 MB / 0.8113 GB, free: 9.938 MB / 474.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 () * Number of clocked 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.2375/1.66, allocations: 12.92 MB / 0.8239 GB, free: 139.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01358/1.674, allocations: 8.635 MB / 0.8323 GB, free: 139.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/1.674, allocations: 3.969 kB / 0.8323 GB, free: 139.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005899/1.68, allocations: 3.747 MB / 0.836 GB, free: 138.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003102/1.683, allocations: 462.2 kB / 0.8364 GB, free: 138.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09107/1.774, allocations: 139.9 MB / 0.9731 GB, free: 20.52 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003836/1.778, allocations: 3.858 MB / 0.9769 GB, free: 19.12 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005462/1.783, allocations: 2.243 MB / 0.979 GB, free: 18.95 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002712/1.786, allocations: 2.299 MB / 0.9813 GB, free: 17.11 MB / 474.7 MB Notification: Performance of SimCode: time 1.132e-06/1.786, allocations: 0 / 0.9813 GB, free: 17.11 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.351/2.137, allocations: 107.9 MB / 1.087 GB, free: 101.2 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/2.137, allocations: 215.3 kB / 1.087 GB, free: 101 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.52/6.657, allocations: 0 / 1.087 GB, free: 101 MB / 474.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat does not exist to compare? outputFormat=mat