Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001067/0.001067, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 227.2 MB / 245 MB, free: 7.664 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008996/0.0008996, allocations: 99.73 kB / 297.3 MB, free: 6.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000247/0.0002471, allocations: 4 kB / 358 MB, free: 9.465 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.227, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1229/0.35, allocations: 103.4 MB / 0.5009 GB, free: 3.145 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.3503, allocations: 95.94 kB / 0.501 GB, free: 3.051 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4003/0.7506, allocations: 98.25 MB / 0.5969 GB, free: 13.42 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.737e-06/0.7507, allocations: 0 / 0.5969 GB, free: 13.42 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002932/0.751, allocations: 96 kB / 0.597 GB, free: 13.32 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: 1750 * Number of variables: 1750 Notification: Performance of Generate backend data structure: time 0.02639/0.7774, allocations: 6.419 MB / 0.6033 GB, free: 6.828 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.7775, allocations: 8.031 kB / 0.6033 GB, free: 6.82 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003858/0.7814, allocations: 0.8818 MB / 0.6042 GB, free: 5.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01645/0.7978, allocations: 4.439 MB / 0.6085 GB, free: 1.477 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01293/0.8108, allocations: 4.598 MB / 0.613 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004075/0.8113, allocations: 377.9 kB / 0.6134 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002813/0.8141, allocations: 0.4997 MB / 0.6138 GB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02918/0.8433, allocations: 12.88 MB / 0.6264 GB, free: 13.97 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002096/0.8435, allocations: 71.36 kB / 0.6265 GB, free: 13.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009935/0.8445, allocations: 235.9 kB / 0.6267 GB, free: 13.67 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00161/0.8462, allocations: 1.094 MB / 0.6278 GB, free: 12.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0251/0.8713, allocations: 11.36 MB / 0.6389 GB, free: 1.199 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3021/1.173, allocations: 55.85 MB / 0.6934 GB, free: 55.74 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01714/1.191, allocations: 5.856 MB / 0.6991 GB, free: 55.07 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001858/1.193, allocations: 1.038 MB / 0.7002 GB, free: 54.22 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.091e-05/1.193, allocations: 63.58 kB / 0.7002 GB, free: 54.18 MB / 442.7 MB Notification: Performance of pre-optimization done (n=214): time 7.024e-06/1.193, allocations: 0 / 0.7002 GB, free: 54.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=252): time 0.07611/1.269, allocations: 31.59 MB / 0.7311 GB, free: 50.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.636e-05/1.269, allocations: 207.9 kB / 0.7313 GB, free: 50.03 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005494/1.274, allocations: 3.831 MB / 0.735 GB, free: 49.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007381/1.275, allocations: 59.92 kB / 0.7351 GB, free: 49.44 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002119/1.277, allocations: 3.471 MB / 0.7384 GB, free: 47.08 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001342/1.279, allocations: 0.9399 MB / 0.7394 GB, free: 46.39 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003686/1.279, allocations: 138.5 kB / 0.7395 GB, free: 46.29 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000302/1.279, allocations: 0.5945 MB / 0.7401 GB, free: 45.86 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004283/1.284, allocations: 3.468 MB / 0.7435 GB, free: 44.67 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005812/1.289, allocations: 7.341 MB / 0.7506 GB, free: 38.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00649/1.296, allocations: 4.939 MB / 0.7555 GB, free: 36.59 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001187/1.296, allocations: 40.81 kB / 0.7555 GB, free: 36.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=881) (initialization): time 0.02288/1.319, allocations: 12.71 MB / 0.7679 GB, free: 30.03 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001876/1.319, allocations: 67.95 kB / 0.768 GB, free: 29.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002355/1.319, allocations: 136 kB / 0.7681 GB, free: 29.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006172/1.326, allocations: 2.28 MB / 0.7703 GB, free: 28.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006371/1.332, allocations: 1.64 MB / 0.7719 GB, free: 26.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01718/1.349, allocations: 15.76 MB / 0.7873 GB, free: 12.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007107/1.356, allocations: 458 kB / 0.7878 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002148/1.359, allocations: 431.3 kB / 0.7882 GB, free: 12.09 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * 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 (808): * Single equations (assignments): 802 * 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.006592/1.365, allocations: 2.379 MB / 0.7905 GB, free: 9.992 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00156/1.367, allocations: 402 kB / 0.7909 GB, free: 9.598 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01445/1.381, allocations: 7.641 MB / 0.7983 GB, free: 3.602 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-05/1.381, allocations: 30.16 kB / 0.7984 GB, free: 3.574 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-05/1.381, allocations: 15.39 kB / 0.7984 GB, free: 3.562 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-05/1.381, allocations: 10.73 kB / 0.7984 GB, free: 3.562 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02954/1.411, allocations: 15.06 MB / 0.8131 GB, free: 5.555 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.05e-05/1.411, allocations: 0 / 0.8131 GB, free: 5.555 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002715/1.414, allocations: 439.3 kB / 0.8135 GB, free: 5.125 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005784/1.42, allocations: 2.038 MB / 0.8155 GB, free: 3.078 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005732/1.42, allocations: 43.98 kB / 0.8155 GB, free: 3.035 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01743/1.438, allocations: 14.32 MB / 0.8295 GB, free: 4.32 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/1.438, allocations: 4 kB / 0.8295 GB, free: 4.316 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01907/1.457, allocations: 12.03 MB / 0.8413 GB, free: 8.172 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/1.458, allocations: 451.6 kB / 0.8417 GB, free: 7.707 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001411/1.46, allocations: 44.55 kB / 0.8418 GB, free: 7.664 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00328/1.463, allocations: 220.2 kB / 0.842 GB, free: 7.449 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008374/1.464, allocations: 161.4 kB / 0.8421 GB, free: 7.293 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002369/1.464, allocations: 69.16 kB / 0.8422 GB, free: 7.227 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004359/1.468, allocations: 2.682 MB / 0.8448 GB, free: 4.539 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.468, allocations: 0 / 0.8448 GB, free: 4.539 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006797/1.475, allocations: 1.391 MB / 0.8462 GB, free: 3.156 MB / 490.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 (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.2548/1.73, allocations: 12.89 MB / 0.8588 GB, free: 127.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01442/1.744, allocations: 8.773 MB / 0.8673 GB, free: 127.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/1.745, allocations: 0 / 0.8673 GB, free: 127.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00533/1.75, allocations: 3.74 MB / 0.871 GB, free: 126.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002542/1.752, allocations: 451 kB / 0.8714 GB, free: 126.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08759/1.84, allocations: 139.5 MB / 1.008 GB, free: 8.801 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003434/1.844, allocations: 3.84 MB / 1.011 GB, free: 7.406 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005022/1.849, allocations: 2.236 MB / 1.014 GB, free: 7.234 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002976/1.852, allocations: 2.273 MB / 1.016 GB, free: 5.41 MB / 490.7 MB Notification: Performance of SimCode: time 8.11e-07/1.852, allocations: 4 kB / 1.016 GB, free: 5.406 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3303/2.182, allocations: 107.3 MB / 1.121 GB, free: 87.06 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/2.182, allocations: 219.5 kB / 1.121 GB, free: 86.82 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.438/6.62, allocations: 0 / 1.121 GB, free: 86.82 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat does not exist to compare? outputFormat=mat