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.001459/0.001459, allocations: 196.6 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009166/0.0009167, allocations: 89.22 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.323e-05/4.335e-05, allocations: 8 kB / 350.6 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1402, allocations: 51.48 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4523/0.5925, allocations: 103.4 MB / 0.4936 GB, free: 2.363 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002302/0.5928, allocations: 93.55 kB / 0.4937 GB, free: 2.316 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6012/1.194, allocations: 98.32 MB / 0.5897 GB, free: 77.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.244e-06/1.194, allocations: 0 / 0.5897 GB, free: 77.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003572/1.194, allocations: 98.41 kB / 0.5898 GB, free: 77.04 MB / 442.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.03058/1.225, allocations: 6.096 MB / 0.5958 GB, free: 75.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.801e-05/1.225, allocations: 9.781 kB / 0.5958 GB, free: 75.09 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005126/1.23, allocations: 0.8773 MB / 0.5966 GB, free: 75.02 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02083/1.251, allocations: 4.446 MB / 0.601 GB, free: 74.68 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01571/1.267, allocations: 4.576 MB / 0.6055 GB, free: 74.04 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008355/1.268, allocations: 380.3 kB / 0.6058 GB, free: 74.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003916/1.272, allocations: 0.4933 MB / 0.6063 GB, free: 74.02 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04078/1.313, allocations: 12.77 MB / 0.6188 GB, free: 71.08 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000705/1.313, allocations: 59.22 kB / 0.6188 GB, free: 71.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003361/1.317, allocations: 240.4 kB / 0.6191 GB, free: 71.07 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002474/1.319, allocations: 1.093 MB / 0.6201 GB, free: 71.06 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02728/1.346, allocations: 11.16 MB / 0.631 GB, free: 70.33 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07263/1.419, allocations: 55.87 MB / 0.6856 GB, free: 30.33 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01797/1.437, allocations: 5.8 MB / 0.6912 GB, free: 28.39 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004345/1.442, allocations: 3.39 MB / 0.6946 GB, free: 27.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001874/1.443, allocations: 1.039 MB / 0.6956 GB, free: 26.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/1.444, allocations: 63.19 kB / 0.6956 GB, free: 26.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=214): time 5.46e-06/1.444, allocations: 0 / 0.6956 GB, free: 26.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=252): time 0.07536/1.519, allocations: 26.82 MB / 0.7218 GB, free: 8.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.801e-05/1.519, allocations: 205.9 kB / 0.722 GB, free: 8.094 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005843/1.525, allocations: 3.797 MB / 0.7257 GB, free: 4.699 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008953/1.526, allocations: 61.7 kB / 0.7258 GB, free: 4.633 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002062/1.528, allocations: 3.463 MB / 0.7292 GB, free: 1.375 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001284/1.529, allocations: 0.9495 MB / 0.7301 GB, free: 444 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003477/1.53, allocations: 136 kB / 0.7302 GB, free: 308 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003906/1.53, allocations: 0.5989 MB / 0.7308 GB, free: 15.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005206/1.535, allocations: 3.387 MB / 0.7341 GB, free: 12.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01007/1.545, allocations: 7.254 MB / 0.7412 GB, free: 3.137 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3683/1.914, allocations: 4.895 MB / 0.746 GB, free: 82.26 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001392/1.914, allocations: 38.03 kB / 0.746 GB, free: 82.26 MB / 458.7 MB Notification: Performance of matching and sorting (n=881) (initialization): time 0.02722/1.941, allocations: 12.56 MB / 0.7583 GB, free: 81.83 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001039/1.941, allocations: 63.22 kB / 0.7583 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002202/1.941, allocations: 134 kB / 0.7585 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006469/1.948, allocations: 2.279 MB / 0.7607 GB, free: 81.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006919/1.955, allocations: 1.635 MB / 0.7623 GB, free: 81.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02302/1.978, allocations: 15.28 MB / 0.7772 GB, free: 77.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007944/1.986, allocations: 457.7 kB / 0.7776 GB, free: 77.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003605/1.99, allocations: 437.8 kB / 0.7781 GB, free: 77.67 MB / 458.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 () * 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.0041/1.994, allocations: 0.6072 MB / 0.7787 GB, free: 77.43 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001535/1.995, allocations: 399.3 kB / 0.779 GB, free: 77.43 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01719/2.012, allocations: 7.548 MB / 0.7864 GB, free: 76.68 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.958e-05/2.013, allocations: 31.78 kB / 0.7864 GB, free: 76.68 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.737e-05/2.013, allocations: 11.75 kB / 0.7864 GB, free: 76.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-05/2.013, allocations: 13.02 kB / 0.7865 GB, free: 76.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02942/2.042, allocations: 14.96 MB / 0.8011 GB, free: 71.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.313e-05/2.042, allocations: 1.594 kB / 0.8011 GB, free: 71.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002785/2.045, allocations: 438.6 kB / 0.8015 GB, free: 71.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005659/2.051, allocations: 2.032 MB / 0.8035 GB, free: 71.06 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007581/2.051, allocations: 49.52 kB / 0.8035 GB, free: 71.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01712/2.069, allocations: 13.86 MB / 0.817 GB, free: 63.58 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/2.069, allocations: 3.938 kB / 0.8171 GB, free: 63.57 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01926/2.088, allocations: 11.89 MB / 0.8287 GB, free: 58.91 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001523/2.09, allocations: 448.9 kB / 0.8291 GB, free: 58.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001047/2.091, allocations: 45.5 kB / 0.8291 GB, free: 58.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002874/2.093, allocations: 213.5 kB / 0.8293 GB, free: 58.52 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007701/2.094, allocations: 157.4 kB / 0.8295 GB, free: 58.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002473/2.094, allocations: 67.77 kB / 0.8296 GB, free: 58.48 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004741/2.099, allocations: 2.648 MB / 0.8321 GB, free: 57.53 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.01e-07/2.099, allocations: 2.719 kB / 0.8321 GB, free: 57.53 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008548/2.108, allocations: 1.389 MB / 0.8335 GB, free: 57.38 MB / 458.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.01841/2.126, allocations: 12.73 MB / 0.8459 GB, free: 52.02 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01411/2.14, allocations: 8.62 MB / 0.8544 GB, free: 44.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/2.14, allocations: 0 / 0.8544 GB, free: 44.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005595/2.146, allocations: 3.679 MB / 0.8579 GB, free: 41.52 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003679/2.15, allocations: 453.3 kB / 0.8584 GB, free: 41.14 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03278/2.183, allocations: 11.81 MB / 0.8699 GB, free: 30.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003791/2.186, allocations: 3.843 MB / 0.8737 GB, free: 28.04 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.006135/2.193, allocations: 2.232 MB / 0.8758 GB, free: 26.59 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004178/2.197, allocations: 2.276 MB / 0.8781 GB, free: 24.51 MB / 458.7 MB Notification: Performance of SimCode: time 1.502e-06/2.197, allocations: 0 / 0.8781 GB, free: 24.51 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5079/2.705, allocations: 107.6 MB / 0.9831 GB, free: 80.84 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/2.705, allocations: 192.7 kB / 0.9833 GB, free: 80.62 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.415/8.12, allocations: 7.875 kB / 0.9833 GB, free: 80.62 MB / 474.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