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.001168/0.001168, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.214/1.214, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0008189/0.0008189, allocations: 96.16 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00022/0.00022, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.188/0.1882, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1011/0.2893, allocations: 98.55 MB / 474.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.2896, allocations: 91.95 kB / 474.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.387/0.6766, allocations: 107.1 MB / 0.568 GB, free: 48.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.6767, allocations: 4 kB / 0.568 GB, free: 48.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003266/0.677, allocations: 104 kB / 0.5681 GB, free: 48.46 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: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.01541/0.6924, allocations: 5.744 MB / 0.5737 GB, free: 42.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.6925, allocations: 8.031 kB / 0.5737 GB, free: 42.63 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00346/0.696, allocations: 0.935 MB / 0.5746 GB, free: 41.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02436/0.7203, allocations: 6.931 MB / 0.5814 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01561/0.736, allocations: 6.859 MB / 0.5881 GB, free: 27.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000322/0.7364, allocations: 402.7 kB / 0.5885 GB, free: 27.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002/0.7384, allocations: 0.5388 MB / 0.589 GB, free: 26.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02352/0.7619, allocations: 12.79 MB / 0.6015 GB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003229/0.7623, allocations: 71.41 kB / 0.6015 GB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001552/0.7638, allocations: 251.9 kB / 0.6018 GB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001439/0.7653, allocations: 1.137 MB / 0.6029 GB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01891/0.7842, allocations: 10.49 MB / 0.6131 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2373/1.022, allocations: 57.19 MB / 0.669 GB, free: 45.28 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008789/1.03, allocations: 4.411 MB / 0.6733 GB, free: 44.61 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01156/1.042, allocations: 9.963 MB / 0.683 GB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/1.042, allocations: 58.34 kB / 0.6831 GB, free: 42.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 3.367e-06/1.042, allocations: 0 / 0.6831 GB, free: 42.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.04044/1.083, allocations: 18.98 MB / 0.7016 GB, free: 38.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/1.083, allocations: 209.7 kB / 0.7018 GB, free: 38.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004549/1.087, allocations: 4.245 MB / 0.706 GB, free: 37.85 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001293/1.087, allocations: 57.14 kB / 0.706 GB, free: 37.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001525/1.089, allocations: 3.778 MB / 0.7097 GB, free: 34.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004799/1.089, allocations: 0.8349 MB / 0.7105 GB, free: 34.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002185/1.09, allocations: 130.8 kB / 0.7106 GB, free: 34.22 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002454/1.09, allocations: 0.5836 MB / 0.7112 GB, free: 33.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002446/1.092, allocations: 2.251 MB / 0.7134 GB, free: 33.06 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003619/1.096, allocations: 6.219 MB / 0.7195 GB, free: 27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00349/1.099, allocations: 3.684 MB / 0.7231 GB, free: 25.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.337e-05/1.099, allocations: 40.56 kB / 0.7231 GB, free: 25.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=860) (initialization): time 0.01077/1.11, allocations: 8.979 MB / 0.7319 GB, free: 22.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.699e-05/1.11, allocations: 66.38 kB / 0.732 GB, free: 22.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.752e-05/1.11, allocations: 138.2 kB / 0.7321 GB, free: 22.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002184/1.113, allocations: 0.9321 MB / 0.733 GB, free: 22.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003717/1.116, allocations: 1.511 MB / 0.7345 GB, free: 21.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006838/1.123, allocations: 7.617 MB / 0.7419 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004223/1.127, allocations: 362.1 kB / 0.7423 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000616/1.128, allocations: 397.5 kB / 0.7426 GB, free: 13.96 MB / 410.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 () * Number of clocked 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.003769/1.132, allocations: 2.565 MB / 0.7451 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007555/1.133, allocations: 430.4 kB / 0.7456 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005817/1.138, allocations: 3.614 MB / 0.7491 GB, free: 8.293 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.677e-05/1.138, allocations: 31.05 kB / 0.7491 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.659e-05/1.138, allocations: 4 kB / 0.7491 GB, free: 8.262 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.632e-05/1.138, allocations: 14.88 kB / 0.7491 GB, free: 8.258 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01515/1.154, allocations: 9.302 MB / 0.7582 GB, free: 0.6719 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/1.154, allocations: 4 kB / 0.7582 GB, free: 0.668 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001478/1.155, allocations: 346.6 kB / 0.7586 GB, free: 400 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002544/1.158, allocations: 0.7268 MB / 0.7593 GB, free: 0 / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003036/1.158, allocations: 54.06 kB / 0.7593 GB, free: 0 / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007891/1.166, allocations: 6.744 MB / 0.7659 GB, free: 9.707 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/1.166, allocations: 0 / 0.7659 GB, free: 9.707 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008895/1.175, allocations: 6.384 MB / 0.7721 GB, free: 4.078 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002059/1.177, allocations: 0.7349 MB / 0.7728 GB, free: 3.375 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008351/1.178, allocations: 38.56 kB / 0.7729 GB, free: 3.344 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001928/1.18, allocations: 106.7 kB / 0.773 GB, free: 3.27 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002981/1.18, allocations: 133.8 kB / 0.7731 GB, free: 3.184 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001456/1.18, allocations: 54.3 kB / 0.7732 GB, free: 3.133 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005539/1.186, allocations: 3.019 MB / 0.7761 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.186, allocations: 0 / 0.7761 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008894/1.195, allocations: 1.446 MB / 0.7775 GB, free: 0 / 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 () * Number of clocked 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.009957/1.205, allocations: 7.238 MB / 0.7846 GB, free: 8.996 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009429/1.214, allocations: 5.76 MB / 0.7902 GB, free: 3.242 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/1.214, allocations: 4 kB / 0.7902 GB, free: 3.238 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002964/1.217, allocations: 1.997 MB / 0.7922 GB, free: 1.219 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002822/1.22, allocations: 0.5318 MB / 0.7927 GB, free: 0.707 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2558/1.476, allocations: 138.6 MB / 0.928 GB, free: 46.24 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006063/1.482, allocations: 4.111 MB / 0.932 GB, free: 45.42 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005896/1.488, allocations: 2.105 MB / 0.9341 GB, free: 45.38 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003186/1.491, allocations: 2.466 MB / 0.9365 GB, free: 45.37 MB / 474.7 MB Notification: Performance of SimCode: time 1.533e-06/1.491, allocations: 0 / 0.9365 GB, free: 45.37 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2838/1.775, allocations: 92.45 MB / 1.027 GB, free: 125.8 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001394/1.775, allocations: 224.9 kB / 1.027 GB, free: 125.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.439/6.214, allocations: 0 / 1.027 GB, free: 125.6 MB / 474.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