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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.000905/0.0009051, allocations: 96.16 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009642/0.0009642, allocations: 192.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002499/0.00025, allocations: 4 kB / 306.8 MB, free: 1.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1037, allocations: 51.5 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.2662/0.37, allocations: 59.67 MB / 418 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03355/0.4036, allocations: 12.73 MB / 430.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01459/0.4182, allocations: 283.3 kB / 431 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009912/0.4281, allocations: 2.931 MB / 433.9 MB, free: 104 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02489/0.4531, allocations: 8.576 MB / 442.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005147/0.4582, allocations: 0.7027 MB / 443.2 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.04397/0.5022, allocations: 33.11 MB / 476.3 MB, free: 5.641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009846/0.5121, allocations: 6.34 MB / 482.6 MB, free: 15.24 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002911/0.515, allocations: 1.448 MB / 484.1 MB, free: 13.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003807/0.5189, allocations: 2.356 MB / 486.5 MB, free: 11.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008008/0.5197, allocations: 176 kB / 486.6 MB, free: 11.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002289/0.522, allocations: 0.9558 MB / 487.6 MB, free: 10.3 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00199/0.524, allocations: 1.967 MB / 489.5 MB, free: 8.324 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00128/0.5253, allocations: 0.9829 MB / 490.5 MB, free: 7.332 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007093/0.5324, allocations: 6.913 MB / 497.4 MB, free: 416 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.844e-06/0.5324, allocations: 0 / 497.4 MB, free: 416 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.5324, allocations: 0 / 497.4 MB, free: 416 kB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002208/0.5327, allocations: 0 / 497.4 MB, free: 416 kB / 398.1 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.02331/0.556, allocations: 5.963 MB / 0.4916 GB, free: 10.37 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.556, allocations: 12.03 kB / 0.4916 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002476/0.5585, allocations: 0.8349 MB / 0.4924 GB, free: 9.516 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06569/0.6242, allocations: 7.359 MB / 0.4996 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007605/0.6319, allocations: 3.375 MB / 0.5029 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003066/0.6322, allocations: 299.8 kB / 0.5032 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001607/0.6338, allocations: 403.7 kB / 0.5036 GB, free: 14.02 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02728/0.6611, allocations: 13.23 MB / 0.5165 GB, free: 36 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002603/0.6615, allocations: 43.64 kB / 0.5166 GB, free: 15.99 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001465/0.6629, allocations: 195.8 kB / 0.5167 GB, free: 15.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004197/0.6671, allocations: 2.198 MB / 0.5189 GB, free: 13.6 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02652/0.6937, allocations: 12.65 MB / 0.5312 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2795/0.9732, allocations: 49.24 MB / 0.5793 GB, free: 112.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01923/0.9925, allocations: 6.424 MB / 0.5856 GB, free: 109.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003999/0.9966, allocations: 3.906 MB / 0.5894 GB, free: 105.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007033/0.9973, allocations: 426.7 kB / 0.5898 GB, free: 105.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.9973, allocations: 57.78 kB / 0.5899 GB, free: 105.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 5.009e-06/0.9973, allocations: 4 kB / 0.5899 GB, free: 105.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.08834/1.086, allocations: 36.11 MB / 0.6251 GB, free: 68.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/1.086, allocations: 209.9 kB / 0.6253 GB, free: 68.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008847/1.095, allocations: 4.408 MB / 0.6296 GB, free: 64.08 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001143/1.096, allocations: 62.72 kB / 0.6297 GB, free: 64.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002563/1.098, allocations: 3.462 MB / 0.6331 GB, free: 60.55 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00173/1.1, allocations: 0.9451 MB / 0.634 GB, free: 59.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001011/1.101, allocations: 137.2 kB / 0.6341 GB, free: 59.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004728/1.102, allocations: 0.5989 MB / 0.6347 GB, free: 58.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005583/1.107, allocations: 4.253 MB / 0.6389 GB, free: 54.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007326/1.115, allocations: 8.139 MB / 0.6468 GB, free: 44.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007371/1.122, allocations: 5.749 MB / 0.6524 GB, free: 38.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001366/1.122, allocations: 40 kB / 0.6525 GB, free: 38.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.02515/1.147, allocations: 14.58 MB / 0.6667 GB, free: 24.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001858/1.148, allocations: 64 kB / 0.6668 GB, free: 24.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002311/1.148, allocations: 136 kB / 0.6669 GB, free: 23.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006098/1.154, allocations: 2.52 MB / 0.6694 GB, free: 21.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006168/1.16, allocations: 1.754 MB / 0.6711 GB, free: 19.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01745/1.178, allocations: 16 MB / 0.6867 GB, free: 3.297 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006684/1.184, allocations: 480.3 kB / 0.6872 GB, free: 2.828 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001655/1.186, allocations: 496.7 kB / 0.6876 GB, free: 2.344 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * 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 (807): * Single equations (assignments): 801 * 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.005622/1.192, allocations: 2.381 MB / 0.69 GB, free: 15.95 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001473/1.193, allocations: 394.8 kB / 0.6903 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01796/1.211, allocations: 9.653 MB / 0.6998 GB, free: 5.871 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.469e-05/1.211, allocations: 28 kB / 0.6998 GB, free: 5.844 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.083e-05/1.211, allocations: 8 kB / 0.6998 GB, free: 5.836 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.753e-05/1.211, allocations: 11.95 kB / 0.6998 GB, free: 5.824 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2663/1.478, allocations: 18.27 MB / 0.7177 GB, free: 145.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.942e-05/1.478, allocations: 0.9062 kB / 0.7177 GB, free: 145.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003103/1.481, allocations: 0.5878 MB / 0.7182 GB, free: 145.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005864/1.487, allocations: 2.271 MB / 0.7205 GB, free: 145.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006172/1.487, allocations: 129 kB / 0.7206 GB, free: 145.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01557/1.503, allocations: 14.55 MB / 0.7348 GB, free: 137.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.503, allocations: 1.406 kB / 0.7348 GB, free: 137.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01825/1.521, allocations: 15.13 MB / 0.7496 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001297/1.523, allocations: 462.8 kB / 0.75 GB, free: 128.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007935/1.523, allocations: 46.84 kB / 0.75 GB, free: 128.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002479/1.526, allocations: 225.7 kB / 0.7503 GB, free: 128.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005869/1.526, allocations: 234.5 kB / 0.7505 GB, free: 128.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003022/1.527, allocations: 150.1 kB / 0.7506 GB, free: 128 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003531/1.53, allocations: 2.784 MB / 0.7533 GB, free: 125.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.53, allocations: 0 / 0.7533 GB, free: 125.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005757/1.536, allocations: 1.417 MB / 0.7547 GB, free: 123.8 MB / 462.1 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.01729/1.553, allocations: 15.8 MB / 0.7702 GB, free: 108.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01242/1.566, allocations: 10.39 MB / 0.7803 GB, free: 97.78 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.924e-06/1.566, allocations: 2 kB / 0.7803 GB, free: 97.78 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005401/1.571, allocations: 4.609 MB / 0.7848 GB, free: 93.14 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003106/1.574, allocations: 496.8 kB / 0.7853 GB, free: 92.67 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08/1.654, allocations: 53.06 MB / 0.8371 GB, free: 35.68 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004889/1.659, allocations: 3.743 MB / 0.8408 GB, free: 31.91 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005715/1.665, allocations: 2.379 MB / 0.8431 GB, free: 29.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003822/1.669, allocations: 2.514 MB / 0.8455 GB, free: 27 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/1.669, allocations: 0 / 0.8455 GB, free: 27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.371/2.04, allocations: 121.9 MB / 0.9646 GB, free: 70.67 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001614/2.04, allocations: 239.1 kB / 0.9648 GB, free: 70.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.63/6.671, allocations: 0 / 0.9648 GB, free: 70.43 MB / 462.1 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