Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002227/0.002227, allocations: 187.5 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.095/2.095, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001098/0.001097, allocations: 86.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005973/0.0005977, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1396, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.4624/0.602, allocations: 60.07 MB / 434.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04327/0.6453, allocations: 14.03 MB / 448.7 MB, free: 2.117 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01442/0.6598, allocations: 303.2 kB / 449 MB, free: 1.82 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01209/0.6719, allocations: 3.009 MB / 452 MB, free: 14.8 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03467/0.7066, allocations: 8.602 MB / 460.6 MB, free: 6.176 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005469/0.7121, allocations: 0.7996 MB / 461.4 MB, free: 5.375 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.09062/0.8028, allocations: 26.82 MB / 488.3 MB, free: 10.53 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02111/0.824, allocations: 6.576 MB / 494.8 MB, free: 3.895 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005096/0.8291, allocations: 1.402 MB / 496.2 MB, free: 2.488 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004382/0.8336, allocations: 1.842 MB / 498.1 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001267/0.8349, allocations: 192 kB / 498.3 MB, free: 464 kB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003395/0.8383, allocations: 0.952 MB / 499.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003801/0.8421, allocations: 2.104 MB / 0.4896 GB, free: 13.39 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002108/0.8443, allocations: 1.096 MB / 0.4906 GB, free: 12.29 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01231/0.8566, allocations: 7.544 MB / 0.498 GB, free: 4.719 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.8567, allocations: 0 / 0.498 GB, free: 4.719 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.587e-06/0.8567, allocations: 0 / 0.498 GB, free: 4.719 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003367/0.8571, allocations: 0 / 0.498 GB, free: 4.719 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.01987/0.8769, allocations: 5.551 MB / 0.5034 GB, free: 15.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/0.877, allocations: 12.03 kB / 0.5034 GB, free: 15.08 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003207/0.8802, allocations: 0.8841 MB / 0.5043 GB, free: 14.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0908/0.9711, allocations: 8.036 MB / 0.5122 GB, free: 6.125 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01509/0.9862, allocations: 4.263 MB / 0.5163 GB, free: 1.805 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004583/0.9867, allocations: 316.1 kB / 0.5166 GB, free: 1.492 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002279/0.989, allocations: 447.6 kB / 0.517 GB, free: 1.055 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03754/1.027, allocations: 12.23 MB / 0.529 GB, free: 4.051 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002971/1.027, allocations: 59.52 kB / 0.529 GB, free: 3.992 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001709/1.029, allocations: 195.8 kB / 0.5292 GB, free: 3.801 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006949/1.036, allocations: 2.203 MB / 0.5314 GB, free: 1.594 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3346/1.37, allocations: 10.42 MB / 0.5416 GB, free: 129 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08026/1.451, allocations: 47.17 MB / 0.5876 GB, free: 91.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0185/1.469, allocations: 4.485 MB / 0.592 GB, free: 86.86 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02538/1.495, allocations: 10.13 MB / 0.6019 GB, free: 76.65 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.985e-05/1.495, allocations: 59.38 kB / 0.602 GB, free: 76.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 5.079e-06/1.495, allocations: 0 / 0.602 GB, free: 76.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.08934/1.584, allocations: 19.85 MB / 0.6213 GB, free: 56.63 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/1.584, allocations: 201.2 kB / 0.6215 GB, free: 56.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01087/1.595, allocations: 5.059 MB / 0.6265 GB, free: 51.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005446/1.596, allocations: 57.7 kB / 0.6265 GB, free: 51.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003144/1.599, allocations: 3.618 MB / 0.6301 GB, free: 47.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001299/1.6, allocations: 0.8297 MB / 0.6309 GB, free: 46.83 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007106/1.601, allocations: 132.9 kB / 0.631 GB, free: 46.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004156/1.601, allocations: 0.5953 MB / 0.6316 GB, free: 46.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006058/1.607, allocations: 2.336 MB / 0.6339 GB, free: 43.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008494/1.616, allocations: 6.265 MB / 0.64 GB, free: 35.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008565/1.625, allocations: 3.741 MB / 0.6436 GB, free: 31.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001183/1.625, allocations: 40 kB / 0.6437 GB, free: 31.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.02511/1.65, allocations: 9.032 MB / 0.6525 GB, free: 22.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001065/1.65, allocations: 68 kB / 0.6526 GB, free: 22.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001967/1.65, allocations: 140.1 kB / 0.6527 GB, free: 22.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005269/1.656, allocations: 1.104 MB / 0.6538 GB, free: 21.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009154/1.665, allocations: 1.501 MB / 0.6552 GB, free: 19.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0152/1.68, allocations: 8.405 MB / 0.6634 GB, free: 11.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00716/1.687, allocations: 363.5 kB / 0.6638 GB, free: 10.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001181/1.688, allocations: 396 kB / 0.6642 GB, free: 10.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * 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 (794): * Single equations (assignments): 789 * 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.00576/1.694, allocations: 2.57 MB / 0.6667 GB, free: 7.898 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001034/1.695, allocations: 430.4 kB / 0.6671 GB, free: 7.473 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01095/1.706, allocations: 3.889 MB / 0.6709 GB, free: 3.562 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.636e-05/1.706, allocations: 27.97 kB / 0.6709 GB, free: 3.535 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/1.706, allocations: 8 kB / 0.6709 GB, free: 3.527 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-05/1.706, allocations: 7.969 kB / 0.6709 GB, free: 3.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02835/1.735, allocations: 9.781 MB / 0.6805 GB, free: 9.719 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.144e-05/1.735, allocations: 0 / 0.6805 GB, free: 9.719 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003595/1.738, allocations: 351.5 kB / 0.6808 GB, free: 9.375 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005195/1.744, allocations: 0.8495 MB / 0.6816 GB, free: 8.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004701/1.744, allocations: 39.98 kB / 0.6817 GB, free: 8.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01735/1.762, allocations: 7.537 MB / 0.689 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.127e-06/1.762, allocations: 7.953 kB / 0.689 GB, free: 0.668 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.318/2.08, allocations: 6.754 MB / 0.6956 GB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003075/2.083, allocations: 0.7764 MB / 0.6964 GB, free: 130.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001344/2.084, allocations: 33.95 kB / 0.6964 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003703/2.088, allocations: 114.7 kB / 0.6965 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000873/2.089, allocations: 137.8 kB / 0.6967 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002627/2.089, allocations: 61.14 kB / 0.6967 GB, free: 130.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00931/2.098, allocations: 3.24 MB / 0.6999 GB, free: 129.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.72e-07/2.099, allocations: 0 / 0.6999 GB, free: 129.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008998/2.108, allocations: 1.219 MB / 0.7011 GB, free: 129.6 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 () * 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.02053/2.128, allocations: 7.654 MB / 0.7086 GB, free: 126.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01478/2.143, allocations: 5.911 MB / 0.7143 GB, free: 124 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/2.143, allocations: 0 / 0.7143 GB, free: 124 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005853/2.149, allocations: 2.083 MB / 0.7164 GB, free: 123.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004806/2.154, allocations: 0.5193 MB / 0.7169 GB, free: 122.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.148/2.302, allocations: 140.4 MB / 0.854 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2862/2.588, allocations: 4.105 MB / 0.858 GB, free: 152.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005848/2.594, allocations: 2.518 MB / 0.8604 GB, free: 152.3 MB / 442.7 MB Notification: Performance of SimCode: time 1.482e-06/2.594, allocations: 0 / 0.8604 GB, free: 152.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.833/7.427, allocations: 145.9 MB / 1.003 GB, free: 24.86 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat