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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001431/0.001431, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.913/1.913, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009122/0.0009121, allocations: 82.66 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.021e-05/2.013e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1242, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4444/0.5687, allocations: 101.4 MB / 464.5 MB, free: 10.28 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/0.569, allocations: 87.02 kB / 464.6 MB, free: 10.24 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5618/1.131, allocations: 94.43 MB / 0.546 GB, free: 89.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.939e-06/1.131, allocations: 1.594 kB / 0.546 GB, free: 89.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004996/1.131, allocations: 101.2 kB / 0.5461 GB, free: 89.71 MB / 410.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.0289/1.16, allocations: 6.001 MB / 0.5519 GB, free: 87.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.999e-05/1.16, allocations: 11.34 kB / 0.5519 GB, free: 87.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01752/1.178, allocations: 4.395 MB / 0.5562 GB, free: 87.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01455/1.193, allocations: 5.26 MB / 0.5614 GB, free: 86.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003843/1.193, allocations: 160.7 kB / 0.5615 GB, free: 86.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003696/1.197, allocations: 297.5 kB / 0.5618 GB, free: 86.76 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01557/1.212, allocations: 7.629 MB / 0.5692 GB, free: 86.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02078/1.233, allocations: 11.35 MB / 0.5803 GB, free: 82.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001774/1.233, allocations: 59.69 kB / 0.5804 GB, free: 82.85 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006474/1.234, allocations: 32.88 kB / 0.5804 GB, free: 82.85 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001464/1.235, allocations: 1.098 MB / 0.5815 GB, free: 82.68 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05967/1.295, allocations: 54.07 MB / 0.6343 GB, free: 41.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005235/1.3, allocations: 4.699 MB / 0.6389 GB, free: 37.36 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004138/1.305, allocations: 3.336 MB / 0.6421 GB, free: 34.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001741/1.306, allocations: 1.046 MB / 0.6432 GB, free: 33.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/1.306, allocations: 59.81 kB / 0.6432 GB, free: 33.21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 5.63e-06/1.306, allocations: 0 / 0.6432 GB, free: 33.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=255): time 0.05338/1.36, allocations: 25.71 MB / 0.6683 GB, free: 9.566 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.194e-05/1.36, allocations: 213.9 kB / 0.6685 GB, free: 9.316 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00549/1.365, allocations: 3.339 MB / 0.6718 GB, free: 5.953 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000868/1.366, allocations: 25.7 kB / 0.6718 GB, free: 5.922 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001874/1.368, allocations: 3.52 MB / 0.6752 GB, free: 2.348 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001238/1.369, allocations: 0.925 MB / 0.6762 GB, free: 1.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003377/1.37, allocations: 0 / 0.6762 GB, free: 1.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003255/1.37, allocations: 0.6034 MB / 0.6767 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004562/1.375, allocations: 3.305 MB / 0.68 GB, free: 13.49 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008262/1.383, allocations: 7.288 MB / 0.6871 GB, free: 4.215 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3252/1.708, allocations: 4.821 MB / 0.6918 GB, free: 92.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002172/1.709, allocations: 44.41 kB / 0.6918 GB, free: 92.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=909) (initialization): time 0.03329/1.742, allocations: 11.8 MB / 0.7034 GB, free: 92.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001429/1.742, allocations: 65.88 kB / 0.7034 GB, free: 92.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000275/1.742, allocations: 140.9 kB / 0.7036 GB, free: 92.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006358/1.749, allocations: 2.26 MB / 0.7058 GB, free: 92.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006982/1.756, allocations: 1.685 MB / 0.7074 GB, free: 92.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01854/1.774, allocations: 14.26 MB / 0.7213 GB, free: 88.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007699/1.782, allocations: 332.5 kB / 0.7216 GB, free: 88.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001969/1.784, allocations: 447.9 kB / 0.7221 GB, free: 88.21 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 644 * 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 (836): * Single equations (assignments): 830 * 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.001387/1.785, allocations: 468.5 kB / 0.7225 GB, free: 87.96 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01204/1.797, allocations: 7.383 MB / 0.7297 GB, free: 86.72 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00115/1.799, allocations: 382.4 kB / 0.7301 GB, free: 86.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01273/1.811, allocations: 7.362 MB / 0.7373 GB, free: 84.11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.508e-05/1.812, allocations: 26.09 kB / 0.7373 GB, free: 84.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-05/1.812, allocations: 10.56 kB / 0.7373 GB, free: 84.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.843e-05/1.812, allocations: 18.16 kB / 0.7373 GB, free: 84.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02438/1.836, allocations: 13.95 MB / 0.751 GB, free: 79.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.396e-05/1.836, allocations: 0 / 0.751 GB, free: 79.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00248/1.839, allocations: 445 kB / 0.7514 GB, free: 79.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0053/1.844, allocations: 2.017 MB / 0.7534 GB, free: 78.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003951/1.844, allocations: 14.27 kB / 0.7534 GB, free: 78.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01487/1.859, allocations: 13.1 MB / 0.7662 GB, free: 71.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/1.859, allocations: 3.906 kB / 0.7662 GB, free: 71.59 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01636/1.876, allocations: 11.71 MB / 0.7776 GB, free: 62.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0026/1.878, allocations: 0.9329 MB / 0.7785 GB, free: 61.31 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006521/1.879, allocations: 4 kB / 0.7785 GB, free: 61.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002363/1.881, allocations: 176.8 kB / 0.7787 GB, free: 61.21 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005537/1.882, allocations: 156.6 kB / 0.7788 GB, free: 61.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000222/1.882, allocations: 67.3 kB / 0.7789 GB, free: 61.05 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003479/1.886, allocations: 2.24 MB / 0.7811 GB, free: 59.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.886, allocations: 0 / 0.7811 GB, free: 59.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008147/1.894, allocations: 1.211 MB / 0.7823 GB, free: 57.89 MB / 426.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 (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.0164/1.91, allocations: 12.52 MB / 0.7945 GB, free: 47.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01271/1.923, allocations: 8.158 MB / 0.8025 GB, free: 39.52 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/1.923, allocations: 4 kB / 0.8025 GB, free: 39.52 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004818/1.928, allocations: 3.611 MB / 0.806 GB, free: 35.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002594/1.93, allocations: 365.6 kB / 0.8063 GB, free: 35.54 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02749/1.958, allocations: 11.53 MB / 0.8176 GB, free: 24.12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004119/1.962, allocations: 3.85 MB / 0.8214 GB, free: 20.26 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.006132/1.968, allocations: 2.279 MB / 0.8236 GB, free: 17.99 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00359/1.972, allocations: 2.276 MB / 0.8258 GB, free: 15.71 MB / 426.7 MB Notification: Performance of SimCode: time 1.172e-06/1.972, allocations: 0 / 0.8258 GB, free: 15.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4541/2.426, allocations: 100.2 MB / 0.9237 GB, free: 77.22 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000196/2.426, allocations: 161.5 kB / 0.9239 GB, free: 77.03 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.152/7.578, allocations: 7.938 kB / 0.9239 GB, free: 77.02 MB / 442.7 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) 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