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.001035/0.001035, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.6/1.6, allocations: 221.3 MB / 235.5 MB, free: 2.906 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.0008542/0.000854, allocations: 88.03 kB / 286.5 MB, free: 188 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.741e-05/2.745e-05, allocations: 4 kB / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1133, allocations: 50.4 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3816/0.495, allocations: 99.41 MB / 493.7 MB, free: 4.051 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.4953, allocations: 83.95 kB / 493.8 MB, free: 3.969 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5379/1.033, allocations: 104.4 MB / 0.5842 GB, free: 95.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.444e-06/1.033, allocations: 0 / 0.5842 GB, free: 95.71 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002689/1.034, allocations: 106.6 kB / 0.5843 GB, free: 95.7 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.01753/1.051, allocations: 5.106 MB / 0.5893 GB, free: 93.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.662e-05/1.051, allocations: 7.562 kB / 0.5893 GB, free: 93.62 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003868/1.055, allocations: 0.8965 MB / 0.5902 GB, free: 93.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02701/1.082, allocations: 6.904 MB / 0.5969 GB, free: 93.03 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01841/1.101, allocations: 6.413 MB / 0.6032 GB, free: 90.71 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004569/1.101, allocations: 389.2 kB / 0.6035 GB, free: 90.56 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00308/1.104, allocations: 0.5235 MB / 0.604 GB, free: 90.4 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03085/1.135, allocations: 12.2 MB / 0.616 GB, free: 83.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004536/1.135, allocations: 74.94 kB / 0.616 GB, free: 83.87 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002374/1.138, allocations: 246.8 kB / 0.6163 GB, free: 83.73 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001463/1.139, allocations: 1.074 MB / 0.6173 GB, free: 83.52 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02114/1.161, allocations: 9.876 MB / 0.627 GB, free: 74.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07033/1.231, allocations: 55.56 MB / 0.6812 GB, free: 17.53 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009543/1.241, allocations: 4.143 MB / 0.6853 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002677/1.243, allocations: 2.217 MB / 0.6874 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01336/1.257, allocations: 9.36 MB / 0.6966 GB, free: 1.543 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/1.257, allocations: 55.36 kB / 0.6966 GB, free: 1.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=171): time 5.561e-06/1.257, allocations: 0 / 0.6966 GB, free: 1.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=197): time 0.04479/1.302, allocations: 15.08 MB / 0.7113 GB, free: 2.297 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/1.302, allocations: 209.2 kB / 0.7115 GB, free: 2.051 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.302/1.604, allocations: 4.095 MB / 0.7155 GB, free: 102.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004969/1.604, allocations: 51.61 kB / 0.7156 GB, free: 102.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003575/1.608, allocations: 3.654 MB / 0.7192 GB, free: 101.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001274/1.609, allocations: 0.7603 MB / 0.7199 GB, free: 101.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005069/1.61, allocations: 123.8 kB / 0.72 GB, free: 101.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005537/1.61, allocations: 0.578 MB / 0.7206 GB, free: 101 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004298/1.615, allocations: 2.028 MB / 0.7226 GB, free: 101 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006477/1.621, allocations: 5.871 MB / 0.7283 GB, free: 96.06 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007263/1.628, allocations: 3.44 MB / 0.7317 GB, free: 96.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000199/1.629, allocations: 42.53 kB / 0.7317 GB, free: 96.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01968/1.648, allocations: 8.397 MB / 0.7399 GB, free: 94.74 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001295/1.648, allocations: 63.34 kB / 0.74 GB, free: 94.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000174/1.649, allocations: 136.2 kB / 0.7401 GB, free: 94.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00248/1.651, allocations: 0.9283 MB / 0.741 GB, free: 94.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004951/1.656, allocations: 1.436 MB / 0.7424 GB, free: 94.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008346/1.664, allocations: 7.411 MB / 0.7496 GB, free: 89.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006262/1.671, allocations: 341 kB / 0.75 GB, free: 89.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001521/1.672, allocations: 384.8 kB / 0.7503 GB, free: 89.58 MB / 442.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 () * 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.001279/1.674, allocations: 0.5921 MB / 0.7509 GB, free: 89.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001107/1.675, allocations: 418.2 kB / 0.7513 GB, free: 88.87 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005521/1.68, allocations: 3.167 MB / 0.7544 GB, free: 87.67 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.473e-05/1.68, allocations: 22.25 kB / 0.7544 GB, free: 87.67 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-05/1.68, allocations: 6.094 kB / 0.7544 GB, free: 87.67 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/1.68, allocations: 17.66 kB / 0.7544 GB, free: 87.66 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01526/1.696, allocations: 8.533 MB / 0.7628 GB, free: 84.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.538e-05/1.696, allocations: 0 / 0.7628 GB, free: 84.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001365/1.697, allocations: 307.9 kB / 0.7631 GB, free: 84.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001976/1.699, allocations: 0.6856 MB / 0.7637 GB, free: 84.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001783/1.699, allocations: 30.73 kB / 0.7638 GB, free: 84.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006519/1.706, allocations: 6.544 MB / 0.7702 GB, free: 80.03 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/1.706, allocations: 1.016 kB / 0.7702 GB, free: 80.03 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007569/1.713, allocations: 5.695 MB / 0.7757 GB, free: 77.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001617/1.715, allocations: 450.3 kB / 0.7761 GB, free: 77.18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005389/1.716, allocations: 37.55 kB / 0.7762 GB, free: 77.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/1.717, allocations: 88.08 kB / 0.7763 GB, free: 77.14 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003522/1.717, allocations: 128 kB / 0.7764 GB, free: 77.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/1.717, allocations: 44.88 kB / 0.7764 GB, free: 77.11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00493/1.722, allocations: 2.893 MB / 0.7793 GB, free: 76.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.722, allocations: 0 / 0.7793 GB, free: 76.09 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006819/1.729, allocations: 1.129 MB / 0.7804 GB, free: 75.97 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 () * 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.00789/1.737, allocations: 6.555 MB / 0.7868 GB, free: 72.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008509/1.746, allocations: 5.254 MB / 0.7919 GB, free: 69.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/1.746, allocations: 0 / 0.7919 GB, free: 69.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002529/1.748, allocations: 1.767 MB / 0.7936 GB, free: 68.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003581/1.752, allocations: 0.5272 MB / 0.7941 GB, free: 67.79 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02852/1.78, allocations: 10.47 MB / 0.8044 GB, free: 58.69 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004223/1.785, allocations: 3.964 MB / 0.8082 GB, free: 55.72 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004996/1.79, allocations: 2.002 MB / 0.8102 GB, free: 54.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003508/1.793, allocations: 2.357 MB / 0.8125 GB, free: 52.27 MB / 442.7 MB Notification: Performance of SimCode: time 1.993e-06/1.793, allocations: 0 / 0.8125 GB, free: 52.27 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4386/2.232, allocations: 88.94 MB / 0.8993 GB, free: 98.97 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001641/2.232, allocations: 198.1 kB / 0.8995 GB, free: 98.75 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.054/7.286, allocations: 1.969 kB / 0.8995 GB, free: 98.75 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