Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000947/0.0009467, allocations: 96.03 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 200.2 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.3 MB / 245.9 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002578/0.0002579, allocations: 8 kB / 306.7 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1152, allocations: 51.48 MB / 358.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2675/0.3828, allocations: 59.55 MB / 417.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03828/0.4211, allocations: 13.96 MB / 431.7 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01955/0.4407, allocations: 299.2 kB / 432 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01263/0.4533, allocations: 2.99 MB / 435 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02857/0.4819, allocations: 8.545 MB / 443.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004796/0.4868, allocations: 0.7918 MB / 444.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.06664/0.5534, allocations: 48.58 MB / 492.9 MB, free: 4.652 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009672/0.5631, allocations: 6.502 MB / 499.4 MB, free: 14.09 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002962/0.5662, allocations: 1.351 MB / 0.489 GB, free: 12.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002952/0.5691, allocations: 1.752 MB / 0.4907 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007251/0.5699, allocations: 180 kB / 0.4909 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002097/0.572, allocations: 0.9364 MB / 0.4918 GB, free: 9.863 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002041/0.574, allocations: 2.014 MB / 0.4938 GB, free: 7.844 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002233/0.5763, allocations: 1.053 MB / 0.4948 GB, free: 6.781 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01014/0.5865, allocations: 7.232 MB / 0.5019 GB, free: 15.53 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.5865, allocations: 0 / 0.5019 GB, free: 15.53 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.5865, allocations: 3.938 kB / 0.5019 GB, free: 15.53 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002933/0.5868, allocations: 0 / 0.5019 GB, free: 15.53 MB / 430.1 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.01341/0.6002, allocations: 5.394 MB / 0.5071 GB, free: 10.06 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.6003, allocations: 8.031 kB / 0.5072 GB, free: 10.05 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00268/0.603, allocations: 0.8429 MB / 0.508 GB, free: 9.203 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04189/0.6449, allocations: 8.036 MB / 0.5158 GB, free: 1.148 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009723/0.6547, allocations: 3.88 MB / 0.5196 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002669/0.655, allocations: 303.7 kB / 0.5199 GB, free: 12.92 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001638/0.6566, allocations: 427.6 kB / 0.5203 GB, free: 12.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02201/0.6786, allocations: 11.73 MB / 0.5318 GB, free: 24 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.2216/0.9002, allocations: 56.19 kB / 0.5318 GB, free: 148.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002307/0.9026, allocations: 187.1 kB / 0.532 GB, free: 148.9 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005392/0.908, allocations: 2.085 MB / 0.534 GB, free: 148.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0248/0.9328, allocations: 9.984 MB / 0.5438 GB, free: 146.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05441/0.9873, allocations: 45.54 MB / 0.5883 GB, free: 106.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009634/0.997, allocations: 4.266 MB / 0.5924 GB, free: 102.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01411/1.011, allocations: 9.52 MB / 0.6017 GB, free: 92.87 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/1.011, allocations: 54.53 kB / 0.6018 GB, free: 92.81 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 4.278e-06/1.011, allocations: 0 / 0.6018 GB, free: 92.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04347/1.055, allocations: 18.54 MB / 0.6199 GB, free: 74.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.419e-05/1.055, allocations: 201.2 kB / 0.6201 GB, free: 73.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006004/1.061, allocations: 4.936 MB / 0.6249 GB, free: 68.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004117/1.061, allocations: 57.7 kB / 0.6249 GB, free: 68.91 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001912/1.063, allocations: 3.64 MB / 0.6285 GB, free: 65.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007553/1.064, allocations: 0.7558 MB / 0.6292 GB, free: 64.52 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002433/1.064, allocations: 125.1 kB / 0.6294 GB, free: 64.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000258/1.064, allocations: 0.5744 MB / 0.6299 GB, free: 63.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002621/1.067, allocations: 2.167 MB / 0.632 GB, free: 61.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004221/1.071, allocations: 5.99 MB / 0.6379 GB, free: 53.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003992/1.075, allocations: 3.534 MB / 0.6413 GB, free: 50.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.525e-05/1.075, allocations: 40 kB / 0.6414 GB, free: 50.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.01359/1.089, allocations: 8.748 MB / 0.6499 GB, free: 41.41 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.305e-05/1.089, allocations: 64 kB / 0.65 GB, free: 41.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001489/1.089, allocations: 140.2 kB / 0.6501 GB, free: 41.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002836/1.092, allocations: 1.09 MB / 0.6512 GB, free: 40.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004426/1.097, allocations: 1.435 MB / 0.6526 GB, free: 38.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008324/1.105, allocations: 8.382 MB / 0.6608 GB, free: 30.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004893/1.11, allocations: 348.1 kB / 0.6611 GB, free: 29.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007952/1.111, allocations: 390 kB / 0.6615 GB, free: 29.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (756): * Single equations (assignments): 751 * 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.003997/1.115, allocations: 2.47 MB / 0.6639 GB, free: 26.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/1.116, allocations: 418.6 kB / 0.6643 GB, free: 26.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006028/1.122, allocations: 3.503 MB / 0.6677 GB, free: 22.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.444e-05/1.122, allocations: 21.25 kB / 0.6677 GB, free: 22.87 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.631e-05/1.122, allocations: 8 kB / 0.6677 GB, free: 22.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.956e-05/1.122, allocations: 7.969 kB / 0.6677 GB, free: 22.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01486/1.137, allocations: 9.056 MB / 0.6766 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/1.137, allocations: 4 kB / 0.6766 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/1.138, allocations: 303.6 kB / 0.6769 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002351/1.14, allocations: 0.8456 MB / 0.6777 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000136/1.141, allocations: 40.94 kB / 0.6777 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007312/1.148, allocations: 7.535 MB / 0.6851 GB, free: 4.773 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.148, allocations: 4 kB / 0.6851 GB, free: 4.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008247/1.156, allocations: 6.171 MB / 0.6911 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001603/1.158, allocations: 471.5 kB / 0.6916 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004611/1.158, allocations: 36 kB / 0.6916 GB, free: 14.01 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/1.16, allocations: 107 kB / 0.6917 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004042/1.16, allocations: 125.1 kB / 0.6918 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/1.16, allocations: 47.98 kB / 0.6919 GB, free: 13.74 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005327/1.166, allocations: 3.153 MB / 0.695 GB, free: 10.59 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.503e-06/1.166, allocations: 0 / 0.695 GB, free: 10.59 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006416/1.172, allocations: 1.165 MB / 0.6961 GB, free: 9.434 MB / 462.1 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 (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.00927/1.181, allocations: 7.038 MB / 0.703 GB, free: 2.344 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2068/1.388, allocations: 5.516 MB / 0.7084 GB, free: 153 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.388, allocations: 0 / 0.7084 GB, free: 153 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00308/1.391, allocations: 1.882 MB / 0.7102 GB, free: 152.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002739/1.394, allocations: 0.5132 MB / 0.7107 GB, free: 152.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09225/1.486, allocations: 134.4 MB / 0.8419 GB, free: 30.87 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004044/1.491, allocations: 3.958 MB / 0.8458 GB, free: 27.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00492/1.495, allocations: 2.013 MB / 0.8478 GB, free: 25.28 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003626/1.499, allocations: 2.366 MB / 0.8501 GB, free: 22.91 MB / 462.1 MB Notification: Performance of SimCode: time 1.733e-06/1.499, allocations: 0 / 0.8501 GB, free: 22.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3642/1.863, allocations: 90.66 MB / 0.9386 GB, free: 99.49 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/1.864, allocations: 229.6 kB / 0.9388 GB, free: 99.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.95/5.814, allocations: 2.188 kB / 0.9388 GB, free: 99.25 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat