Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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.GearConstraint,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001026/0.001026, 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.435/1.435, 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.0009482/0.0009484, allocations: 78.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.929e-05/2.932e-05, allocations: 0 / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/0.09081, allocations: 47.57 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3472/0.4381, allocations: 98.47 MB / 468.6 MB, free: 11.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.4383, allocations: 88.5 kB / 468.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4951/0.9334, allocations: 107.1 MB / 0.5623 GB, free: 89.32 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.9335, allocations: 0 / 0.5623 GB, free: 89.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003913/0.9339, allocations: 108.8 kB / 0.5624 GB, free: 89.31 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: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.01905/0.9529, allocations: 5.269 MB / 0.5675 GB, free: 87.17 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.953, allocations: 10.91 kB / 0.5676 GB, free: 87.17 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004719/0.9577, allocations: 0.939 MB / 0.5685 GB, free: 87.08 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02677/0.9845, allocations: 6.935 MB / 0.5752 GB, free: 86.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01747/1.002, allocations: 6.833 MB / 0.5819 GB, free: 85.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005992/1.003, allocations: 404.2 kB / 0.5823 GB, free: 85.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003404/1.006, allocations: 0.5368 MB / 0.5828 GB, free: 85.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02953/1.036, allocations: 12.68 MB / 0.5952 GB, free: 78.97 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004645/1.036, allocations: 69.19 kB / 0.5953 GB, free: 78.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002316/1.039, allocations: 257.2 kB / 0.5955 GB, free: 78.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001629/1.04, allocations: 1.13 MB / 0.5966 GB, free: 78.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0212/1.061, allocations: 10.29 MB / 0.6067 GB, free: 71.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06402/1.125, allocations: 57.18 MB / 0.6625 GB, free: 14.47 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00967/1.135, allocations: 4.364 MB / 0.6668 GB, free: 9.961 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002819/1.138, allocations: 2.384 MB / 0.6691 GB, free: 7.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01654/1.155, allocations: 9.972 MB / 0.6788 GB, free: 13.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.947e-05/1.155, allocations: 51.88 kB / 0.6789 GB, free: 13.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=192): time 6.152e-06/1.155, allocations: 4 kB / 0.6789 GB, free: 13.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.3068/1.462, allocations: 16.19 MB / 0.6947 GB, free: 96.71 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/1.462, allocations: 205.6 kB / 0.6949 GB, free: 96.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008814/1.47, allocations: 4.213 MB / 0.699 GB, free: 96.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000511/1.471, allocations: 53.33 kB / 0.6991 GB, free: 96.06 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002617/1.474, allocations: 3.778 MB / 0.7028 GB, free: 94.44 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001085/1.475, allocations: 0.8277 MB / 0.7036 GB, free: 93.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002917/1.475, allocations: 133.8 kB / 0.7037 GB, free: 93.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004371/1.476, allocations: 0.5903 MB / 0.7043 GB, free: 93.64 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003649/1.479, allocations: 2.19 MB / 0.7064 GB, free: 93.63 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005492/1.485, allocations: 6.141 MB / 0.7124 GB, free: 88.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005808/1.491, allocations: 3.651 MB / 0.716 GB, free: 88.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.199e-05/1.491, allocations: 37.5 kB / 0.716 GB, free: 88.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=860) (initialization): time 0.01347/1.504, allocations: 8.843 MB / 0.7246 GB, free: 86.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.61e-05/1.504, allocations: 63.59 kB / 0.7247 GB, free: 86.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001383/1.504, allocations: 140.9 kB / 0.7248 GB, free: 86.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00223/1.507, allocations: 0.9313 MB / 0.7258 GB, free: 86.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004699/1.511, allocations: 1.52 MB / 0.7272 GB, free: 86.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007597/1.519, allocations: 7.407 MB / 0.7345 GB, free: 81.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005688/1.525, allocations: 359.8 kB / 0.7348 GB, free: 81.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001124/1.526, allocations: 405.4 kB / 0.7352 GB, free: 81.63 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 638 * Number of states: 0 () * Number of discrete variables: 45 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],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 (798): * Single equations (assignments): 793 * 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.001038/1.527, allocations: 0.6101 MB / 0.7358 GB, free: 81.14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.528, allocations: 427.3 kB / 0.7362 GB, free: 80.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005885/1.534, allocations: 3.54 MB / 0.7397 GB, free: 79.56 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.535e-05/1.534, allocations: 28.06 kB / 0.7397 GB, free: 79.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/1.534, allocations: 7.219 kB / 0.7397 GB, free: 79.56 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/1.534, allocations: 11.2 kB / 0.7397 GB, free: 79.56 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01609/1.55, allocations: 9.234 MB / 0.7487 GB, free: 76.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/1.55, allocations: 0 / 0.7487 GB, free: 76.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001514/1.552, allocations: 343.5 kB / 0.749 GB, free: 76.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001926/1.554, allocations: 0.695 MB / 0.7497 GB, free: 75.95 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001458/1.554, allocations: 34.34 kB / 0.7498 GB, free: 75.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006171/1.56, allocations: 6.55 MB / 0.7562 GB, free: 71.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.728e-06/1.56, allocations: 10.98 kB / 0.7562 GB, free: 71.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008439/1.568, allocations: 6.248 MB / 0.7623 GB, free: 68.95 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002336/1.571, allocations: 0.7434 MB / 0.763 GB, free: 68.48 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001245/1.572, allocations: 39.52 kB / 0.763 GB, free: 68.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00231/1.574, allocations: 107.8 kB / 0.7631 GB, free: 68.43 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003865/1.575, allocations: 136 kB / 0.7633 GB, free: 68.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001584/1.575, allocations: 55.94 kB / 0.7633 GB, free: 68.39 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007085/1.582, allocations: 2.969 MB / 0.7662 GB, free: 67.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.2e-07/1.582, allocations: 0 / 0.7662 GB, free: 67.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008167/1.59, allocations: 1.19 MB / 0.7674 GB, free: 67.22 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 164 * 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.009575/1.6, allocations: 7.126 MB / 0.7743 GB, free: 61.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00853/1.608, allocations: 5.643 MB / 0.7798 GB, free: 56.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/1.608, allocations: 0 / 0.7798 GB, free: 56.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002719/1.611, allocations: 1.959 MB / 0.7818 GB, free: 54.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003487/1.615, allocations: 0.5374 MB / 0.7823 GB, free: 54.39 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0295/1.644, allocations: 11.04 MB / 0.7931 GB, free: 44.81 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007506/1.652, allocations: 4.106 MB / 0.7971 GB, free: 41.74 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00589/1.658, allocations: 2.106 MB / 0.7991 GB, free: 40.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00408/1.662, allocations: 2.466 MB / 0.8015 GB, free: 38.12 MB / 426.7 MB Notification: Performance of SimCode: time 1.202e-06/1.662, allocations: 0 / 0.8015 GB, free: 38.12 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.387/2.049, allocations: 92.61 MB / 0.892 GB, free: 91.19 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000165/2.049, allocations: 203.5 kB / 0.8922 GB, free: 90.96 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.512/6.561, allocations: 4 kB / 0.8922 GB, free: 90.96 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat