Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 180.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001052, allocations: 95.02 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002951/0.0002951, allocations: 4 kB / 351.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2547, allocations: 50.41 MB / 401.6 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1252/0.38, allocations: 102.8 MB / 0.4925 GB, free: 9.688 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.3803, allocations: 91.95 kB / 0.4926 GB, free: 9.598 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.429/0.8093, allocations: 97.58 MB / 0.5879 GB, free: 24.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.8093, allocations: 0 / 0.5879 GB, free: 24.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003918/0.8097, allocations: 100 kB / 0.588 GB, free: 24.79 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.02657/0.8363, allocations: 6.299 MB / 0.5942 GB, free: 18.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.8364, allocations: 8.031 kB / 0.5942 GB, free: 18.4 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003413/0.8398, allocations: 0.8779 MB / 0.595 GB, free: 17.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01573/0.8556, allocations: 4.396 MB / 0.5993 GB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01299/0.8686, allocations: 5.113 MB / 0.6043 GB, free: 7.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003484/0.869, allocations: 373.9 kB / 0.6047 GB, free: 7.562 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002468/0.8715, allocations: 499.8 kB / 0.6051 GB, free: 7.074 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02899/0.9005, allocations: 12.88 MB / 0.6177 GB, free: 9.102 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003263/0.9009, allocations: 79.3 kB / 0.6178 GB, free: 9.023 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00219/0.9031, allocations: 235.9 kB / 0.618 GB, free: 8.793 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001951/0.905, allocations: 1.09 MB / 0.6191 GB, free: 7.699 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02605/0.9311, allocations: 11.36 MB / 0.6302 GB, free: 12.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3172/1.248, allocations: 55.86 MB / 0.6847 GB, free: 46.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01853/1.267, allocations: 5.857 MB / 0.6905 GB, free: 45.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001814/1.269, allocations: 1.051 MB / 0.6915 GB, free: 45.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/1.269, allocations: 54.34 kB / 0.6915 GB, free: 45.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=214): time 4.889e-06/1.269, allocations: 0 / 0.6915 GB, free: 45.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=252): time 0.08705/1.356, allocations: 31.58 MB / 0.7224 GB, free: 41.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000153/1.356, allocations: 212.7 kB / 0.7226 GB, free: 40.92 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0063/1.363, allocations: 3.827 MB / 0.7263 GB, free: 39.79 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008519/1.363, allocations: 62.83 kB / 0.7264 GB, free: 39.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002235/1.366, allocations: 3.476 MB / 0.7298 GB, free: 37.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001553/1.367, allocations: 0.9414 MB / 0.7307 GB, free: 36.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005198/1.368, allocations: 135.9 kB / 0.7308 GB, free: 36.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003371/1.368, allocations: 0.5951 MB / 0.7314 GB, free: 36.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004777/1.373, allocations: 3.468 MB / 0.7348 GB, free: 34.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007358/1.38, allocations: 7.337 MB / 0.7419 GB, free: 28.55 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007354/1.388, allocations: 4.936 MB / 0.7468 GB, free: 26.83 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001097/1.388, allocations: 36.44 kB / 0.7468 GB, free: 26.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=881) (initialization): time 0.02573/1.414, allocations: 12.71 MB / 0.7592 GB, free: 18.47 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/1.414, allocations: 64 kB / 0.7593 GB, free: 18.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000154/1.414, allocations: 139.8 kB / 0.7594 GB, free: 18.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005975/1.42, allocations: 2.283 MB / 0.7616 GB, free: 16.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006314/1.426, allocations: 1.633 MB / 0.7632 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0173/1.444, allocations: 15.76 MB / 0.7786 GB, free: 1.301 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007271/1.451, allocations: 456.8 kB / 0.7791 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001964/1.453, allocations: 435.9 kB / 0.7795 GB, free: 0.5469 MB / 426.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.01131/1.464, allocations: 2.765 MB / 0.7822 GB, free: 15.42 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001304/1.465, allocations: 394.8 kB / 0.7826 GB, free: 15.03 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0157/1.481, allocations: 7.642 MB / 0.79 GB, free: 8.867 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.533e-05/1.481, allocations: 31.95 kB / 0.79 GB, free: 8.836 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.411e-05/1.481, allocations: 8 kB / 0.7901 GB, free: 8.828 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.536e-05/1.482, allocations: 15.75 kB / 0.7901 GB, free: 8.816 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03365/1.515, allocations: 15.06 MB / 0.8048 GB, free: 9.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.847e-05/1.515, allocations: 3.125 kB / 0.8048 GB, free: 9.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002944/1.518, allocations: 443.3 kB / 0.8052 GB, free: 9.316 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00619/1.524, allocations: 2.03 MB / 0.8072 GB, free: 7.277 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007848/1.525, allocations: 47.98 kB / 0.8072 GB, free: 7.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01959/1.545, allocations: 14.33 MB / 0.8212 GB, free: 8.512 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.545, allocations: 0 / 0.8212 GB, free: 8.512 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.315/1.86, allocations: 12.04 MB / 0.833 GB, free: 118.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/1.861, allocations: 440.7 kB / 0.8334 GB, free: 118.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007999/1.862, allocations: 46.27 kB / 0.8334 GB, free: 118.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002281/1.864, allocations: 210.9 kB / 0.8336 GB, free: 118.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005588/1.865, allocations: 154.7 kB / 0.8338 GB, free: 118.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002247/1.865, allocations: 64.53 kB / 0.8339 GB, free: 118.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003883/1.869, allocations: 2.684 MB / 0.8365 GB, free: 118.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.869, allocations: 0.75 kB / 0.8365 GB, free: 118.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006191/1.875, allocations: 1.389 MB / 0.8378 GB, free: 118.4 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 (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.0179/1.893, allocations: 12.88 MB / 0.8504 GB, free: 117.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01257/1.906, allocations: 8.769 MB / 0.859 GB, free: 116.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/1.906, allocations: 0 / 0.859 GB, free: 116.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004982/1.911, allocations: 3.749 MB / 0.8626 GB, free: 116 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002708/1.914, allocations: 449.7 kB / 0.8631 GB, free: 115.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1095/2.023, allocations: 139.5 MB / 0.9993 GB, free: 8.84 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008038/2.031, allocations: 3.85 MB / 1.003 GB, free: 5.941 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007058/2.038, allocations: 2.229 MB / 1.005 GB, free: 4.484 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00507/2.043, allocations: 2.271 MB / 1.007 GB, free: 2.41 MB / 490.7 MB Notification: Performance of SimCode: time 1.152e-06/2.043, allocations: 4 kB / 1.007 GB, free: 2.406 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4084/2.452, allocations: 107.9 MB / 1.113 GB, free: 84.56 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002182/2.452, allocations: 218.7 kB / 1.113 GB, free: 84.32 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.378/7.83, allocations: 0 / 1.113 GB, free: 84.32 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat does not exist to compare? outputFormat=mat