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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009365/0.0009365, allocations: 93.95 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000942/0.0009419, allocations: 178.2 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.362/1.362, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005174/0.0005176, allocations: 12 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1051, allocations: 47.57 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.2556/0.3607, allocations: 56.83 MB / 385.3 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03751/0.3983, allocations: 13.36 MB / 398.6 MB, free: 8.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01605/0.4144, allocations: 281.7 kB / 398.9 MB, free: 8.297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01121/0.4257, allocations: 2.838 MB / 401.7 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02949/0.4552, allocations: 8.122 MB / 409.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005181/0.4604, allocations: 0.7256 MB / 410.6 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02308/0.4835, allocations: 14.38 MB / 425 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01008/0.4936, allocations: 6.313 MB / 431.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00263/0.4963, allocations: 1.191 MB / 432.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002808/0.4992, allocations: 1.68 MB / 434.1 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007502/0.4999, allocations: 176 kB / 434.3 MB, free: 8.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002237/0.5022, allocations: 0.942 MB / 435.3 MB, free: 8.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001966/0.5042, allocations: 1.843 MB / 437.1 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001503/0.5057, allocations: 0.9832 MB / 438.1 MB, free: 6.008 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009694/0.5154, allocations: 6.942 MB / 445 MB, free: 15.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.5154, allocations: 4 kB / 445 MB, free: 15.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.5155, allocations: 0 / 445 MB, free: 15.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003259/0.5158, allocations: 0 / 445 MB, free: 15.46 MB / 350.1 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.02828/0.5441, allocations: 6.135 MB / 451.2 MB, free: 9.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.5442, allocations: 13.56 kB / 451.2 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002929/0.5471, allocations: 0.8397 MB / 452 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0842/0.6313, allocations: 8.378 MB / 460.4 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01067/0.642, allocations: 3.419 MB / 463.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000308/0.6424, allocations: 300 kB / 464.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001993/0.6444, allocations: 408.9 kB / 464.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02868/0.6731, allocations: 13.35 MB / 477.8 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001779/0.6733, allocations: 47.59 kB / 477.9 MB, free: 13.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007907/0.6741, allocations: 189.5 kB / 478.1 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004494/0.6786, allocations: 2.206 MB / 480.3 MB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03004/0.7087, allocations: 12.78 MB / 493.1 MB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07581/0.7846, allocations: 49.31 MB / 0.5297 GB, free: 12.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02452/0.8091, allocations: 6.618 MB / 0.5361 GB, free: 5.852 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001026/0.8102, allocations: 431.8 kB / 0.5365 GB, free: 5.391 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.006e-05/0.8103, allocations: 55.88 kB / 0.5366 GB, free: 5.328 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 7.024e-06/0.8103, allocations: 0 / 0.5366 GB, free: 5.328 MB / 446.1 MB Notification: Performance of matching and sorting (n=255): time 0.3047/1.115, allocations: 37.19 MB / 0.5729 GB, free: 153.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.124e-05/1.115, allocations: 209.9 kB / 0.5731 GB, free: 152.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0058/1.121, allocations: 4.565 MB / 0.5776 GB, free: 148.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009567/1.122, allocations: 61.7 kB / 0.5776 GB, free: 148.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00175/1.124, allocations: 3.475 MB / 0.581 GB, free: 144.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001455/1.125, allocations: 0.9565 MB / 0.582 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004272/1.126, allocations: 136 kB / 0.5821 GB, free: 143.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003025/1.126, allocations: 0.5912 MB / 0.5827 GB, free: 143.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004644/1.131, allocations: 4.261 MB / 0.5868 GB, free: 138.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006563/1.137, allocations: 8.124 MB / 0.5948 GB, free: 128.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007325/1.145, allocations: 5.771 MB / 0.6004 GB, free: 123.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.938e-05/1.145, allocations: 40 kB / 0.6004 GB, free: 123.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.02237/1.167, allocations: 14.6 MB / 0.6147 GB, free: 108.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.84e-05/1.167, allocations: 64 kB / 0.6148 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001297/1.167, allocations: 136.8 kB / 0.6149 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006255/1.174, allocations: 2.508 MB / 0.6173 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00644/1.18, allocations: 1.77 MB / 0.6191 GB, free: 104 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01666/1.197, allocations: 16.3 MB / 0.635 GB, free: 87.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007175/1.204, allocations: 474.3 kB / 0.6354 GB, free: 86.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001612/1.206, allocations: 0.5003 MB / 0.6359 GB, free: 86.37 MB / 446.1 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 (811): * Single equations (assignments): 805 * 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.005018/1.211, allocations: 2.38 MB / 0.6383 GB, free: 83.97 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00114/1.212, allocations: 398.8 kB / 0.6386 GB, free: 83.58 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01347/1.225, allocations: 9.705 MB / 0.6481 GB, free: 73.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.535e-05/1.225, allocations: 28 kB / 0.6481 GB, free: 73.81 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.481e-05/1.225, allocations: 10.62 kB / 0.6481 GB, free: 73.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.675e-05/1.225, allocations: 13.03 kB / 0.6482 GB, free: 73.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02807/1.254, allocations: 18.16 MB / 0.6659 GB, free: 55.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-05/1.254, allocations: 4 kB / 0.6659 GB, free: 55.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002875/1.256, allocations: 0.5975 MB / 0.6665 GB, free: 55.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00573/1.262, allocations: 2.273 MB / 0.6687 GB, free: 52.72 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005938/1.263, allocations: 132.5 kB / 0.6688 GB, free: 52.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0156/1.278, allocations: 15.02 MB / 0.6835 GB, free: 37.19 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/1.278, allocations: 4 kB / 0.6835 GB, free: 37.18 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01853/1.297, allocations: 15.43 MB / 0.6986 GB, free: 21.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003424/1.301, allocations: 1.073 MB / 0.6996 GB, free: 20.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000846/1.301, allocations: 44 kB / 0.6997 GB, free: 20.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002875/1.304, allocations: 227.7 kB / 0.6999 GB, free: 20.23 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006134/1.305, allocations: 253.4 kB / 0.7001 GB, free: 19.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002987/1.305, allocations: 152.5 kB / 0.7003 GB, free: 19.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003528/1.309, allocations: 2.894 MB / 0.7031 GB, free: 16.94 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/1.309, allocations: 0 / 0.7031 GB, free: 16.94 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005978/1.315, allocations: 1.44 MB / 0.7045 GB, free: 15.51 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (202): * Single equations (assignments): 196 * 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.2393/1.554, allocations: 16.48 MB / 0.7206 GB, free: 146 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0141/1.568, allocations: 10.27 MB / 0.7306 GB, free: 142.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/1.568, allocations: 1.5 kB / 0.7306 GB, free: 142.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005714/1.574, allocations: 4.628 MB / 0.7351 GB, free: 140.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002612/1.577, allocations: 451.5 kB / 0.7356 GB, free: 140.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2678/1.844, allocations: 146.7 MB / 0.8788 GB, free: 151.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006018/1.851, allocations: 3.864 MB / 0.8826 GB, free: 150.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007101/1.858, allocations: 2.396 MB / 0.885 GB, free: 150.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004302/1.862, allocations: 2.533 MB / 0.8874 GB, free: 150.8 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/1.862, allocations: 0 / 0.8874 GB, free: 150.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1698/2.032, allocations: 123.4 MB / 1.008 GB, free: 40.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001679/2.032, allocations: 233.6 kB / 1.008 GB, free: 39.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.67/6.702, allocations: 3.906 kB / 1.008 GB, free: 39.94 MB / 446.1 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) Environment - environmentSimulation: 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