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.0009788/0.000979, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 221.5 MB / 230.3 MB, free: 7.586 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.001694/0.001694, allocations: 95.47 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.992e-05/2.995e-05, allocations: 4 kB / 337.1 MB, free: 9.945 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1239, allocations: 50.41 MB / 387.6 MB, free: 7.496 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4555/0.5795, allocations: 98.74 MB / 486.3 MB, free: 12.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/0.5798, allocations: 89.86 kB / 486.4 MB, free: 11.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5865/1.166, allocations: 102.1 MB / 0.5746 GB, free: 94.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.168e-06/1.166, allocations: 4 kB / 0.5747 GB, free: 94.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003735/1.167, allocations: 98.47 kB / 0.5747 GB, free: 94.73 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.02025/1.187, allocations: 5.106 MB / 0.5797 GB, free: 92.65 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/1.187, allocations: 9.719 kB / 0.5797 GB, free: 92.65 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02799/1.215, allocations: 6.894 MB / 0.5865 GB, free: 92.29 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01682/1.232, allocations: 6.42 MB / 0.5927 GB, free: 91.51 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002437/1.232, allocations: 170.1 kB / 0.5929 GB, free: 91.51 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002198/1.235, allocations: 311.8 kB / 0.5932 GB, free: 91.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01429/1.249, allocations: 7.229 MB / 0.6003 GB, free: 89.86 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02634/1.275, allocations: 10.91 MB / 0.6109 GB, free: 83.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000656/1.276, allocations: 73.94 kB / 0.611 GB, free: 83.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003771/1.28, allocations: 34.19 kB / 0.611 GB, free: 83.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002132/1.282, allocations: 1.072 MB / 0.6121 GB, free: 83.63 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06561/1.348, allocations: 54.56 MB / 0.6653 GB, free: 35.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00372/1.351, allocations: 3.3 MB / 0.6686 GB, free: 31.86 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002122/1.354, allocations: 2.116 MB / 0.6706 GB, free: 29.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003415/1.354, allocations: 335.9 kB / 0.6709 GB, free: 29.36 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.559e-05/1.354, allocations: 55.81 kB / 0.671 GB, free: 29.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=180): time 4.088e-06/1.354, allocations: 4 kB / 0.671 GB, free: 29.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=207): time 0.03568/1.39, allocations: 18.98 MB / 0.6895 GB, free: 10.24 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.415e-05/1.39, allocations: 201.2 kB / 0.6897 GB, free: 10 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005122/1.395, allocations: 3.573 MB / 0.6932 GB, free: 6.41 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003791/1.395, allocations: 25.7 kB / 0.6932 GB, free: 6.379 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001776/1.397, allocations: 3.697 MB / 0.6969 GB, free: 2.633 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007487/1.398, allocations: 0.7672 MB / 0.6976 GB, free: 1.855 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002217/1.398, allocations: 0 / 0.6976 GB, free: 1.855 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002923/1.398, allocations: 0.5829 MB / 0.6982 GB, free: 1.266 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00258/1.401, allocations: 2.008 MB / 0.7001 GB, free: 15.25 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005797/1.407, allocations: 5.943 MB / 0.7059 GB, free: 7.328 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005274/1.412, allocations: 3.438 MB / 0.7093 GB, free: 3.883 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001026/1.412, allocations: 44 kB / 0.7093 GB, free: 3.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=853) (initialization): time 0.3838/1.796, allocations: 7.79 MB / 0.7169 GB, free: 94.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001539/1.796, allocations: 65.34 kB / 0.717 GB, free: 94.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002699/1.797, allocations: 144.4 kB / 0.7171 GB, free: 94.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003013/1.8, allocations: 0.9409 MB / 0.7181 GB, free: 94.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006179/1.806, allocations: 1.491 MB / 0.7195 GB, free: 94.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/1.817, allocations: 7.255 MB / 0.7266 GB, free: 92.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006623/1.824, allocations: 224.1 kB / 0.7268 GB, free: 92.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001757/1.825, allocations: 401.1 kB / 0.7272 GB, free: 92.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (791): * Single equations (assignments): 786 * 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.001448/1.827, allocations: 473.9 kB / 0.7277 GB, free: 92.11 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007847/1.835, allocations: 3.427 MB / 0.731 GB, free: 92.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.836, allocations: 390.9 kB / 0.7314 GB, free: 92.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006482/1.842, allocations: 3.132 MB / 0.7344 GB, free: 91.87 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.87e-05/1.842, allocations: 21.19 kB / 0.7345 GB, free: 91.87 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.139e-05/1.842, allocations: 13.42 kB / 0.7345 GB, free: 91.87 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.158e-05/1.842, allocations: 7.547 kB / 0.7345 GB, free: 91.87 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01652/1.859, allocations: 7.916 MB / 0.7422 GB, free: 91.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/1.859, allocations: 2.062 kB / 0.7422 GB, free: 91.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/1.861, allocations: 314.7 kB / 0.7425 GB, free: 91.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002019/1.863, allocations: 0.6716 MB / 0.7432 GB, free: 91.08 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/1.863, allocations: 11.53 kB / 0.7432 GB, free: 91.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006506/1.869, allocations: 6.201 MB / 0.7492 GB, free: 87.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.271e-06/1.869, allocations: 3.875 kB / 0.7492 GB, free: 87.07 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00775/1.877, allocations: 5.761 MB / 0.7549 GB, free: 84.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001414/1.879, allocations: 422.3 kB / 0.7553 GB, free: 84.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004473/1.879, allocations: 9.031 kB / 0.7553 GB, free: 84.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001395/1.88, allocations: 69.73 kB / 0.7553 GB, free: 84.16 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003261/1.881, allocations: 131 kB / 0.7555 GB, free: 84.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/1.881, allocations: 53.69 kB / 0.7555 GB, free: 84.13 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004053/1.885, allocations: 2.418 MB / 0.7579 GB, free: 83.24 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.885, allocations: 0 / 0.7579 GB, free: 83.24 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007312/1.892, allocations: 0.9842 MB / 0.7588 GB, free: 83.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * 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.008899/1.901, allocations: 6.775 MB / 0.7654 GB, free: 79.81 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009107/1.91, allocations: 5.082 MB / 0.7704 GB, free: 78.11 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/1.91, allocations: 3.219 kB / 0.7704 GB, free: 78.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002557/1.913, allocations: 1.759 MB / 0.7721 GB, free: 77.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002863/1.916, allocations: 462.4 kB / 0.7726 GB, free: 77.15 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03107/1.947, allocations: 10.29 MB / 0.7826 GB, free: 73.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004725/1.952, allocations: 3.97 MB / 0.7865 GB, free: 72.16 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005373/1.957, allocations: 2.091 MB / 0.7885 GB, free: 72.11 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003774/1.961, allocations: 2.332 MB / 0.7908 GB, free: 69.96 MB / 442.7 MB Notification: Performance of SimCode: time 1.363e-06/1.961, allocations: 3.938 kB / 0.7908 GB, free: 69.95 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.139/2.1, allocations: 83.07 MB / 0.872 GB, free: 10.73 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001995/2.1, allocations: 169.4 kB / 0.8721 GB, free: 10.54 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.688/6.788, allocations: 2.078 kB / 0.8721 GB, free: 10.54 MB / 458.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