Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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 3.2.3+maint.om/package.mo): time 0.002089/0.002089, allocations: 186.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.953/1.953, allocations: 205.4 MB / 222.5 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001162/0.001162, allocations: 92.36 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003959/0.0003959, allocations: 12 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3376, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1736/0.5113, allocations: 101.9 MB / 476.5 MB, free: 10.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003637/0.5117, allocations: 95.95 kB / 476.6 MB, free: 10.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6491/1.161, allocations: 96.39 MB / 0.5596 GB, free: 56.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.875e-06/1.161, allocations: 0 / 0.5596 GB, free: 56.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003182/1.161, allocations: 100 kB / 0.5597 GB, free: 56.07 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: 1755 * Number of variables: 1755 Notification: Performance of Generate backend data structure: time 0.04109/1.202, allocations: 6.318 MB / 0.5658 GB, free: 49.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/1.202, allocations: 12.03 kB / 0.5658 GB, free: 49.66 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004144/1.207, allocations: 0.8858 MB / 0.5667 GB, free: 48.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03079/1.237, allocations: 4.4 MB / 0.571 GB, free: 44.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01901/1.256, allocations: 5.281 MB / 0.5762 GB, free: 39.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004104/1.257, allocations: 378 kB / 0.5765 GB, free: 38.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002858/1.26, allocations: 499.8 kB / 0.577 GB, free: 38.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04013/1.3, allocations: 12.91 MB / 0.5896 GB, free: 24.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002941/1.3, allocations: 63.41 kB / 0.5897 GB, free: 24.08 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001875/1.302, allocations: 239.9 kB / 0.5899 GB, free: 23.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002616/1.305, allocations: 1.102 MB / 0.591 GB, free: 22.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03652/1.341, allocations: 11.38 MB / 0.6021 GB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4242/1.766, allocations: 56.02 MB / 0.6568 GB, free: 51.96 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03433/1.8, allocations: 5.891 MB / 0.6625 GB, free: 51.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003025/1.803, allocations: 1.039 MB / 0.6636 GB, free: 50.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.914e-05/1.803, allocations: 59.95 kB / 0.6636 GB, free: 50.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 6.192e-06/1.803, allocations: 0 / 0.6636 GB, free: 50.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=255): time 0.1535/1.957, allocations: 31.41 MB / 0.6943 GB, free: 46.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/1.957, allocations: 206.9 kB / 0.6945 GB, free: 46.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009278/1.966, allocations: 3.862 MB / 0.6983 GB, free: 45.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009482/1.967, allocations: 63.14 kB / 0.6983 GB, free: 45.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003184/1.97, allocations: 3.373 MB / 0.7016 GB, free: 42.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001822/1.972, allocations: 0.9641 MB / 0.7026 GB, free: 42.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001217/1.974, allocations: 130.8 kB / 0.7027 GB, free: 42.15 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005483/1.974, allocations: 0.5957 MB / 0.7033 GB, free: 41.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008929/1.983, allocations: 3.481 MB / 0.7067 GB, free: 40.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01165/1.995, allocations: 7.354 MB / 0.7139 GB, free: 34.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01183/2.007, allocations: 4.948 MB / 0.7187 GB, free: 32.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001504/2.007, allocations: 41.25 kB / 0.7187 GB, free: 32.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=885) (initialization): time 0.03782/2.045, allocations: 12.6 MB / 0.731 GB, free: 23.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/2.045, allocations: 64 kB / 0.7311 GB, free: 23.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002424/2.045, allocations: 136.7 kB / 0.7312 GB, free: 23.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01124/2.056, allocations: 2.286 MB / 0.7335 GB, free: 22.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01127/2.068, allocations: 1.639 MB / 0.7351 GB, free: 20.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03075/2.099, allocations: 15.61 MB / 0.7503 GB, free: 6.762 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009505/2.108, allocations: 452.7 kB / 0.7507 GB, free: 6.398 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002026/2.11, allocations: 446.1 kB / 0.7512 GB, free: 6.008 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 620 * 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 (812): * Single equations (assignments): 806 * 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.007467/2.118, allocations: 2.389 MB / 0.7535 GB, free: 3.902 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001352/2.119, allocations: 402.8 kB / 0.7539 GB, free: 3.504 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02662/2.146, allocations: 7.669 MB / 0.7614 GB, free: 12.23 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.234e-05/2.146, allocations: 28 kB / 0.7614 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.856e-05/2.146, allocations: 8 kB / 0.7614 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.983e-05/2.146, allocations: 15.95 kB / 0.7614 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05264/2.199, allocations: 15.12 MB / 0.7762 GB, free: 13.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.893e-05/2.199, allocations: 0 / 0.7762 GB, free: 13.06 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005218/2.204, allocations: 435.4 kB / 0.7766 GB, free: 12.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01167/2.216, allocations: 2.044 MB / 0.7786 GB, free: 10.58 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009333/2.217, allocations: 47.98 kB / 0.7786 GB, free: 10.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03446/2.251, allocations: 14.3 MB / 0.7926 GB, free: 11.86 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/2.251, allocations: 0 / 0.7926 GB, free: 11.86 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0372/2.288, allocations: 12.09 MB / 0.8044 GB, free: 15.66 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004046/2.292, allocations: 0.972 MB / 0.8054 GB, free: 14.66 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001843/2.294, allocations: 40 kB / 0.8054 GB, free: 14.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005789/2.3, allocations: 215.4 kB / 0.8056 GB, free: 14.41 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001635/2.302, allocations: 167.5 kB / 0.8058 GB, free: 14.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007839/2.303, allocations: 67.98 kB / 0.8058 GB, free: 14.18 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008179/2.311, allocations: 2.699 MB / 0.8085 GB, free: 11.48 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.42e-07/2.311, allocations: 0 / 0.8085 GB, free: 11.48 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01009/2.321, allocations: 1.393 MB / 0.8098 GB, free: 10.09 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 (198): * Single equations (assignments): 192 * 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.3491/2.67, allocations: 12.92 MB / 0.8224 GB, free: 139 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02105/2.691, allocations: 8.645 MB / 0.8309 GB, free: 138.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.946e-06/2.691, allocations: 0 / 0.8309 GB, free: 138.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01002/2.701, allocations: 3.749 MB / 0.8345 GB, free: 138.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004254/2.706, allocations: 450.8 kB / 0.835 GB, free: 138.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1367/2.842, allocations: 140.5 MB / 0.9722 GB, free: 19.74 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009442/2.852, allocations: 3.86 MB / 0.9759 GB, free: 18.35 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007136/2.859, allocations: 2.336 MB / 0.9782 GB, free: 16.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.533e-06/2.859, allocations: 0 / 0.9782 GB, free: 16.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.236/8.095, allocations: 162.9 MB / 1.137 GB, free: 45.16 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat does not exist to compare? outputFormat=mat