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.001531/0.001531, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.446/1.446, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.000881/0.0008808, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.929e-05/2.931e-05, allocations: 0 / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08945/0.0895, allocations: 47.57 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3481/0.4376, allocations: 101.8 MB / 471.9 MB, free: 7.836 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/0.4379, allocations: 85.61 kB / 472 MB, free: 7.793 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4782/0.9162, allocations: 96.45 MB / 0.5551 GB, free: 92.11 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.925e-06/0.9162, allocations: 5.891 kB / 0.5551 GB, free: 92.11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001981/0.9164, allocations: 102.7 kB / 0.5552 GB, free: 92.11 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.02466/0.9411, allocations: 6.009 MB / 0.5611 GB, free: 90.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/0.9412, allocations: 7.594 kB / 0.5611 GB, free: 90.12 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003471/0.9446, allocations: 0.8853 MB / 0.562 GB, free: 90.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01681/0.9615, allocations: 4.399 MB / 0.5663 GB, free: 89.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01397/0.9755, allocations: 5.258 MB / 0.5714 GB, free: 89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003262/0.9758, allocations: 374.2 kB / 0.5717 GB, free: 88.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002274/0.9781, allocations: 0.4985 MB / 0.5722 GB, free: 88.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02514/1.003, allocations: 12.78 MB / 0.5847 GB, free: 83.67 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001594/1.003, allocations: 67.12 kB / 0.5848 GB, free: 83.63 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006702/1.004, allocations: 235.9 kB / 0.585 GB, free: 83.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001363/1.006, allocations: 1.099 MB / 0.5861 GB, free: 83.31 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02154/1.027, allocations: 11.17 MB / 0.597 GB, free: 79.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05455/1.082, allocations: 56.04 MB / 0.6517 GB, free: 26.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01714/1.099, allocations: 5.844 MB / 0.6574 GB, free: 20.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00371/1.103, allocations: 3.396 MB / 0.6607 GB, free: 16.69 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001665/1.104, allocations: 1.043 MB / 0.6618 GB, free: 15.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.957e-05/1.104, allocations: 55.86 kB / 0.6618 GB, free: 15.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 6.883e-06/1.104, allocations: 4 kB / 0.6618 GB, free: 15.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=255): time 0.06917/1.174, allocations: 26.88 MB / 0.6881 GB, free: 4.398 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/1.174, allocations: 213.9 kB / 0.6883 GB, free: 4.145 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005714/1.179, allocations: 3.821 MB / 0.692 GB, free: 308 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003483/1.18, allocations: 61.7 kB / 0.6921 GB, free: 240 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2518/1.432, allocations: 3.472 MB / 0.6955 GB, free: 97.65 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001716/1.433, allocations: 0.952 MB / 0.6964 GB, free: 97.19 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005392/1.434, allocations: 135.3 kB / 0.6965 GB, free: 97.19 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003931/1.434, allocations: 0.5911 MB / 0.6971 GB, free: 96.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006728/1.441, allocations: 3.405 MB / 0.7004 GB, free: 96.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008211/1.449, allocations: 7.272 MB / 0.7075 GB, free: 91.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009449/1.459, allocations: 4.916 MB / 0.7123 GB, free: 91.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002163/1.459, allocations: 39.34 kB / 0.7124 GB, free: 91.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=885) (initialization): time 0.0232/1.482, allocations: 12.58 MB / 0.7246 GB, free: 89.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001274/1.482, allocations: 64.28 kB / 0.7247 GB, free: 89.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001627/1.483, allocations: 136.7 kB / 0.7248 GB, free: 89.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005602/1.488, allocations: 2.272 MB / 0.7271 GB, free: 88.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006323/1.495, allocations: 1.638 MB / 0.7287 GB, free: 88.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01637/1.511, allocations: 15.14 MB / 0.7434 GB, free: 80.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007084/1.518, allocations: 462.1 kB / 0.7439 GB, free: 80.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001744/1.52, allocations: 433.7 kB / 0.7443 GB, free: 80.08 MB / 426.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 () * 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.001435/1.521, allocations: 0.6124 MB / 0.7449 GB, free: 79.58 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009508/1.522, allocations: 404.3 kB / 0.7453 GB, free: 79.36 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01248/1.535, allocations: 7.573 MB / 0.7527 GB, free: 76.71 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.902e-05/1.535, allocations: 27.84 kB / 0.7527 GB, free: 76.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.928e-05/1.535, allocations: 10.75 kB / 0.7527 GB, free: 76.71 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.04e-05/1.535, allocations: 11.34 kB / 0.7527 GB, free: 76.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02458/1.559, allocations: 15.03 MB / 0.7674 GB, free: 71.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-05/1.56, allocations: 4 kB / 0.7674 GB, free: 71.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002611/1.562, allocations: 440.7 kB / 0.7678 GB, free: 71.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00532/1.568, allocations: 2.029 MB / 0.7698 GB, free: 70.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006494/1.568, allocations: 47.31 kB / 0.7698 GB, free: 70.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01454/1.583, allocations: 13.84 MB / 0.7834 GB, free: 58.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.583, allocations: 3.938 kB / 0.7834 GB, free: 58.38 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01692/1.6, allocations: 11.94 MB / 0.795 GB, free: 48.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002786/1.603, allocations: 0.9679 MB / 0.796 GB, free: 47.27 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009622/1.604, allocations: 40 kB / 0.796 GB, free: 47.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002757/1.606, allocations: 215.7 kB / 0.7962 GB, free: 47.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005731/1.607, allocations: 161.2 kB / 0.7964 GB, free: 46.99 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002233/1.607, allocations: 67.56 kB / 0.7964 GB, free: 46.93 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003832/1.611, allocations: 2.663 MB / 0.799 GB, free: 44.56 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.611, allocations: 0 / 0.799 GB, free: 44.56 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006196/1.617, allocations: 1.393 MB / 0.8004 GB, free: 43.18 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.01584/1.633, allocations: 12.78 MB / 0.8129 GB, free: 31.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01186/1.645, allocations: 8.493 MB / 0.8212 GB, free: 22.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/1.645, allocations: 0 / 0.8212 GB, free: 22.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004889/1.65, allocations: 3.691 MB / 0.8248 GB, free: 19.17 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002553/1.652, allocations: 454.4 kB / 0.8252 GB, free: 18.74 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02818/1.681, allocations: 11.85 MB / 0.8368 GB, free: 6.879 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003249/1.684, allocations: 3.854 MB / 0.8405 GB, free: 3.016 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00529/1.689, allocations: 2.257 MB / 0.8427 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003669/1.693, allocations: 2.291 MB / 0.845 GB, free: 14.5 MB / 442.7 MB Notification: Performance of SimCode: time 1.323e-06/1.693, allocations: 0 / 0.845 GB, free: 14.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3566/2.05, allocations: 108.2 MB / 0.9507 GB, free: 50.06 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001388/2.05, allocations: 200.6 kB / 0.9509 GB, free: 49.83 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.197/6.247, allocations: 0 / 0.9509 GB, free: 49.83 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