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.001155/0.001155, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.447/1.447, allocations: 221.3 MB / 235.5 MB, free: 2.922 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008782/0.0008783, allocations: 93.97 kB / 286.5 MB, free: 192 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.416e-05/4.429e-05, allocations: 0 / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1097, allocations: 50.4 MB / 394.3 MB, free: 1.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4021/0.5119, allocations: 102.7 MB / 497 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.5122, allocations: 87.95 kB / 497.1 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.554/1.066, allocations: 97.63 MB / 0.5808 GB, free: 98.23 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.963e-06/1.066, allocations: 3.938 kB / 0.5808 GB, free: 98.23 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002391/1.067, allocations: 98.81 kB / 0.5809 GB, free: 98.23 MB / 426.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.02811/1.095, allocations: 5.994 MB / 0.5868 GB, free: 96.23 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.947e-05/1.095, allocations: 10.81 kB / 0.5868 GB, free: 96.23 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003738/1.098, allocations: 0.8809 MB / 0.5876 GB, free: 96.15 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01756/1.116, allocations: 4.397 MB / 0.5919 GB, free: 95.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01447/1.131, allocations: 5.095 MB / 0.5969 GB, free: 94.45 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003498/1.131, allocations: 378.1 kB / 0.5973 GB, free: 94.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003113/1.134, allocations: 0.4934 MB / 0.5977 GB, free: 94.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02979/1.164, allocations: 12.76 MB / 0.6102 GB, free: 87.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002283/1.164, allocations: 66.97 kB / 0.6103 GB, free: 87.69 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001259/1.166, allocations: 240.5 kB / 0.6105 GB, free: 87.56 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001517/1.167, allocations: 1.095 MB / 0.6116 GB, free: 87.37 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02248/1.19, allocations: 11.15 MB / 0.6225 GB, free: 79.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06379/1.253, allocations: 55.87 MB / 0.677 GB, free: 22.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01772/1.271, allocations: 5.81 MB / 0.6827 GB, free: 16.14 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003813/1.275, allocations: 3.391 MB / 0.686 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001696/1.277, allocations: 1.037 MB / 0.687 GB, free: 11.56 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/1.277, allocations: 59.81 kB / 0.6871 GB, free: 11.49 MB / 426.7 MB Notification: Performance of pre-optimization done (n=214): time 6.562e-06/1.277, allocations: 3.656 kB / 0.6871 GB, free: 11.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=252): time 0.07486/1.352, allocations: 26.81 MB / 0.7133 GB, free: 0.5273 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/1.352, allocations: 205.9 kB / 0.7134 GB, free: 292 kB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3167/1.669, allocations: 3.789 MB / 0.7171 GB, free: 104.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001183/1.67, allocations: 65.39 kB / 0.7172 GB, free: 104.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003668/1.674, allocations: 3.465 MB / 0.7206 GB, free: 103.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001689/1.675, allocations: 0.9479 MB / 0.7215 GB, free: 103 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006342/1.676, allocations: 133.8 kB / 0.7216 GB, free: 103 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003587/1.676, allocations: 0.594 MB / 0.7222 GB, free: 102.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006185/1.682, allocations: 3.387 MB / 0.7255 GB, free: 102.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008515/1.691, allocations: 7.257 MB / 0.7326 GB, free: 97.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008563/1.7, allocations: 4.909 MB / 0.7374 GB, free: 96.92 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001366/1.7, allocations: 37.84 kB / 0.7375 GB, free: 96.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=881) (initialization): time 0.02578/1.726, allocations: 12.56 MB / 0.7497 GB, free: 92.83 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002869/1.726, allocations: 62.06 kB / 0.7498 GB, free: 92.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002817/1.726, allocations: 140.8 kB / 0.7499 GB, free: 92.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00634/1.733, allocations: 2.272 MB / 0.7521 GB, free: 92.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006594/1.739, allocations: 1.634 MB / 0.7537 GB, free: 92.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01949/1.759, allocations: 15.28 MB / 0.7686 GB, free: 83.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007588/1.766, allocations: 458.7 kB / 0.7691 GB, free: 83.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0021/1.768, allocations: 434.8 kB / 0.7695 GB, free: 83.74 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 () * 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.003055/1.772, allocations: 0.6205 MB / 0.7701 GB, free: 83.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001573/1.773, allocations: 396.2 kB / 0.7705 GB, free: 83.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01575/1.789, allocations: 7.543 MB / 0.7778 GB, free: 80.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.781e-05/1.789, allocations: 26.66 kB / 0.7779 GB, free: 80.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.353e-05/1.789, allocations: 10.84 kB / 0.7779 GB, free: 80.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.424e-05/1.789, allocations: 11.44 kB / 0.7779 GB, free: 80.38 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03292/1.822, allocations: 14.97 MB / 0.7925 GB, free: 73.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.618e-05/1.822, allocations: 3.656 kB / 0.7925 GB, free: 73.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002978/1.825, allocations: 442.4 kB / 0.7929 GB, free: 73.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005971/1.831, allocations: 2.034 MB / 0.7949 GB, free: 71.99 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008631/1.832, allocations: 51.62 kB / 0.795 GB, free: 71.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01611/1.848, allocations: 13.85 MB / 0.8085 GB, free: 59.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/1.848, allocations: 0 / 0.8085 GB, free: 59.58 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0189/1.867, allocations: 11.89 MB / 0.8201 GB, free: 49.39 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001788/1.869, allocations: 445.4 kB / 0.8205 GB, free: 48.95 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001649/1.871, allocations: 44 kB / 0.8206 GB, free: 48.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003783/1.874, allocations: 212.2 kB / 0.8208 GB, free: 48.78 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008899/1.875, allocations: 155.8 kB / 0.8209 GB, free: 48.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004276/1.876, allocations: 62.16 kB / 0.821 GB, free: 48.62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005609/1.881, allocations: 2.649 MB / 0.8236 GB, free: 46.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.881, allocations: 0 / 0.8236 GB, free: 46.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008387/1.89, allocations: 1.392 MB / 0.8249 GB, free: 44.88 MB / 442.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.0177/1.908, allocations: 12.73 MB / 0.8374 GB, free: 32.38 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01426/1.922, allocations: 8.625 MB / 0.8458 GB, free: 23.74 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/1.922, allocations: 0 / 0.8458 GB, free: 23.74 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005421/1.927, allocations: 3.689 MB / 0.8494 GB, free: 20.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003436/1.931, allocations: 453.6 kB / 0.8498 GB, free: 19.59 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03447/1.965, allocations: 11.81 MB / 0.8614 GB, free: 7.781 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0071/1.972, allocations: 3.842 MB / 0.8651 GB, free: 3.926 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.007949/1.98, allocations: 2.239 MB / 0.8673 GB, free: 1.691 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005534/1.986, allocations: 2.285 MB / 0.8695 GB, free: 15.46 MB / 458.7 MB Notification: Performance of SimCode: time 1.412e-06/1.986, allocations: 4 kB / 0.8695 GB, free: 15.46 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4848/2.471, allocations: 107.6 MB / 0.9746 GB, free: 59.32 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001651/2.471, allocations: 196.9 kB / 0.9748 GB, free: 59.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.066/7.537, allocations: 0 / 0.9748 GB, free: 59.1 MB / 458.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