Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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.GearConstraint,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",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.001176/0.001176, allocations: 179.6 kB / 16.38 MB, free: 5.766 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.399/1.399, allocations: 223.2 MB / 240.3 MB, free: 10.15 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.0009331/0.0009329, allocations: 97.92 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002781/0.0002782, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2859, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1234/0.4093, allocations: 99.48 MB / 0.4893 GB, free: 12.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.4097, allocations: 87.95 kB / 0.4894 GB, free: 12.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4729/0.8825, allocations: 104.3 MB / 0.5912 GB, free: 21.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.8826, allocations: 4 kB / 0.5913 GB, free: 21.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002298/0.8828, allocations: 108 kB / 0.5914 GB, free: 21 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01572/0.8985, allocations: 5.562 MB / 0.5968 GB, free: 15.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.191e-05/0.8986, allocations: 11.97 kB / 0.5968 GB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003559/0.9022, allocations: 0.8937 MB / 0.5977 GB, free: 14.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02387/0.9261, allocations: 6.896 MB / 0.6044 GB, free: 7.539 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01735/0.9435, allocations: 6.453 MB / 0.6107 GB, free: 1.027 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000369/0.9439, allocations: 390.3 kB / 0.6111 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002393/0.9463, allocations: 0.5153 MB / 0.6116 GB, free: 132 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02686/0.9732, allocations: 12.32 MB / 0.6236 GB, free: 2.656 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00024/0.9735, allocations: 71.41 kB / 0.6237 GB, free: 2.586 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001136/0.9746, allocations: 251.9 kB / 0.6239 GB, free: 2.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001344/0.976, allocations: 1.062 MB / 0.625 GB, free: 1.273 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02105/0.9971, allocations: 10.06 MB / 0.6348 GB, free: 7.199 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3281/1.325, allocations: 55.55 MB / 0.689 GB, free: 42.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009285/1.335, allocations: 4.189 MB / 0.6931 GB, free: 41.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01346/1.348, allocations: 9.363 MB / 0.7023 GB, free: 40.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/1.348, allocations: 58.23 kB / 0.7023 GB, free: 40.15 MB / 426.7 MB Notification: Performance of pre-optimization done (n=171): time 5.12e-06/1.348, allocations: 0 / 0.7023 GB, free: 40.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=197): time 0.04204/1.39, allocations: 17.69 MB / 0.7196 GB, free: 36.31 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.81e-05/1.39, allocations: 205.5 kB / 0.7198 GB, free: 36.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005674/1.396, allocations: 4.141 MB / 0.7238 GB, free: 35.72 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003308/1.396, allocations: 51.92 kB / 0.7239 GB, free: 35.69 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001928/1.398, allocations: 3.655 MB / 0.7275 GB, free: 33.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007154/1.399, allocations: 0.7554 MB / 0.7282 GB, free: 33.42 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002309/1.399, allocations: 125.4 kB / 0.7283 GB, free: 33.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002679/1.4, allocations: 0.5671 MB / 0.7289 GB, free: 32.99 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002557/1.402, allocations: 2.098 MB / 0.7309 GB, free: 32.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00418/1.406, allocations: 5.928 MB / 0.7367 GB, free: 26.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004273/1.411, allocations: 3.474 MB / 0.7401 GB, free: 25.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.967e-05/1.411, allocations: 39.59 kB / 0.7401 GB, free: 25.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01421/1.425, allocations: 8.515 MB / 0.7485 GB, free: 22.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.292e-05/1.425, allocations: 63.28 kB / 0.7485 GB, free: 22.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001885/1.425, allocations: 137.8 kB / 0.7487 GB, free: 22.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002543/1.428, allocations: 0.9317 MB / 0.7496 GB, free: 22.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004666/1.432, allocations: 1.431 MB / 0.751 GB, free: 22.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007757/1.44, allocations: 7.615 MB / 0.7584 GB, free: 17.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005452/1.446, allocations: 332.1 kB / 0.7587 GB, free: 16.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001079/1.447, allocations: 384.7 kB / 0.7591 GB, free: 16.52 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 47 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 755 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00452/1.451, allocations: 2.488 MB / 0.7615 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000844/1.452, allocations: 414.7 kB / 0.7619 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005168/1.457, allocations: 3.221 MB / 0.7651 GB, free: 11.29 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.132e-05/1.457, allocations: 28 kB / 0.7651 GB, free: 11.27 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/1.458, allocations: 7.953 kB / 0.7651 GB, free: 11.26 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.097e-05/1.458, allocations: 17.31 kB / 0.7651 GB, free: 11.26 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01439/1.472, allocations: 8.575 MB / 0.7735 GB, free: 4.266 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.668e-05/1.472, allocations: 4 kB / 0.7735 GB, free: 4.262 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001442/1.473, allocations: 296.2 kB / 0.7738 GB, free: 4.023 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002043/1.476, allocations: 0.6916 MB / 0.7744 GB, free: 3.531 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/1.476, allocations: 35.28 kB / 0.7745 GB, free: 3.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008794/1.484, allocations: 6.854 MB / 0.7812 GB, free: 13.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/1.485, allocations: 7.938 kB / 0.7812 GB, free: 13.57 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009209/1.494, allocations: 5.787 MB / 0.7868 GB, free: 8.469 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001691/1.495, allocations: 459.8 kB / 0.7873 GB, free: 8.012 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004667/1.496, allocations: 35.33 kB / 0.7873 GB, free: 7.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0014/1.497, allocations: 90.39 kB / 0.7874 GB, free: 7.918 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003407/1.498, allocations: 132.5 kB / 0.7875 GB, free: 7.832 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/1.498, allocations: 44 kB / 0.7876 GB, free: 7.789 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005969/1.504, allocations: 2.934 MB / 0.7904 GB, free: 5.379 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.61e-07/1.504, allocations: 0 / 0.7904 GB, free: 5.379 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007467/1.511, allocations: 1.131 MB / 0.7915 GB, free: 4.258 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (147): * Single equations (assignments): 142 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01061/1.522, allocations: 6.647 MB / 0.798 GB, free: 14.31 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01117/1.533, allocations: 5.36 MB / 0.8032 GB, free: 9.582 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/1.533, allocations: 0 / 0.8032 GB, free: 9.582 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00318/1.536, allocations: 1.808 MB / 0.805 GB, free: 7.969 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00323/1.54, allocations: 0.5176 MB / 0.8055 GB, free: 7.527 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3402/1.88, allocations: 134.2 MB / 0.9366 GB, free: 23.64 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005641/1.886, allocations: 3.97 MB / 0.9404 GB, free: 22.82 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005323/1.891, allocations: 1.998 MB / 0.9424 GB, free: 22.78 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003528/1.895, allocations: 2.36 MB / 0.9447 GB, free: 22.77 MB / 474.7 MB Notification: Performance of SimCode: time 9.62e-07/1.895, allocations: 2.75 kB / 0.9447 GB, free: 22.77 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4123/2.307, allocations: 88.85 MB / 1.031 GB, free: 104.4 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001674/2.307, allocations: 227 kB / 1.032 GB, free: 104.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.155/7.462, allocations: 4 kB / 1.032 GB, free: 104.1 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat