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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001376/0.001377, allocations: 97.33 kB / 16.94 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001907/0.001907, allocations: 187.8 kB / 17.83 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.579/1.579, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004985/0.0004989, allocations: 15.44 kB / 280.9 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09808/0.09859, allocations: 47.58 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2495/0.3481, allocations: 60.06 MB / 388.5 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03365/0.3818, allocations: 14.03 MB / 402.5 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0156/0.3975, allocations: 302 kB / 402.8 MB, free: 7.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0116/0.4091, allocations: 3.003 MB / 405.8 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03146/0.4406, allocations: 8.599 MB / 414.4 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006026/0.4467, allocations: 0.7979 MB / 415.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.04028/0.487, allocations: 26.83 MB / 442 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009944/0.4971, allocations: 6.583 MB / 448.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003102/0.5002, allocations: 1.401 MB / 450 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0033/0.5035, allocations: 1.84 MB / 451.9 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000872/0.5044, allocations: 196 kB / 452.1 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002668/0.5071, allocations: 0.9439 MB / 453 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002478/0.5096, allocations: 2.107 MB / 455.1 MB, free: 6.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001874/0.5115, allocations: 1.096 MB / 456.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009824/0.5213, allocations: 7.544 MB / 463.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.5214, allocations: 3.938 kB / 463.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.5214, allocations: 0 / 463.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000341/0.5218, allocations: 4 kB / 463.8 MB, free: 14.09 MB / 366.1 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.01383/0.5356, allocations: 5.551 MB / 469.3 MB, free: 8.457 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.508e-05/0.5357, allocations: 12.03 kB / 469.3 MB, free: 8.445 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003123/0.5388, allocations: 0.8802 MB / 470.2 MB, free: 7.551 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04192/0.5807, allocations: 8.044 MB / 478.2 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0113/0.5921, allocations: 4.255 MB / 482.5 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003511/0.5925, allocations: 316.1 kB / 482.8 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002305/0.5948, allocations: 435.6 kB / 483.2 MB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02382/0.6186, allocations: 12.25 MB / 495.5 MB, free: 13.42 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001744/0.6189, allocations: 47.59 kB / 495.5 MB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005365/0.6194, allocations: 199.8 kB / 495.7 MB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003711/0.6231, allocations: 2.21 MB / 497.9 MB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02269/0.6459, allocations: 10.42 MB / 0.4964 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2746/0.9205, allocations: 47.17 MB / 0.5425 GB, free: 154.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01228/0.9329, allocations: 4.479 MB / 0.5469 GB, free: 153.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01882/0.9517, allocations: 10.12 MB / 0.5568 GB, free: 151 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.9518, allocations: 49.75 kB / 0.5568 GB, free: 151 MB / 446.1 MB Notification: Performance of pre-optimization done (n=192): time 6.382e-06/0.9518, allocations: 6.047 kB / 0.5568 GB, free: 151 MB / 446.1 MB Notification: Performance of matching and sorting (n=218): time 0.04584/0.9977, allocations: 19.85 MB / 0.5762 GB, free: 143.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.486e-05/0.9978, allocations: 209.8 kB / 0.5764 GB, free: 143.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005921/1.004, allocations: 5.058 MB / 0.5813 GB, free: 140.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004181/1.004, allocations: 53.52 kB / 0.5814 GB, free: 140.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00169/1.006, allocations: 3.764 MB / 0.5851 GB, free: 137 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006499/1.007, allocations: 0.8351 MB / 0.5859 GB, free: 136.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002174/1.007, allocations: 132 kB / 0.586 GB, free: 136.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002356/1.007, allocations: 0.5805 MB / 0.5866 GB, free: 135.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002756/1.01, allocations: 2.336 MB / 0.5889 GB, free: 133.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003771/1.014, allocations: 6.264 MB / 0.595 GB, free: 125.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003928/1.017, allocations: 3.747 MB / 0.5986 GB, free: 121.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.513e-05/1.018, allocations: 40 kB / 0.5987 GB, free: 121.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.01504/1.033, allocations: 9.211 MB / 0.6077 GB, free: 112.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.589e-05/1.033, allocations: 64 kB / 0.6077 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001195/1.033, allocations: 140 kB / 0.6079 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002709/1.036, allocations: 1.096 MB / 0.6089 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004745/1.04, allocations: 1.509 MB / 0.6104 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00835/1.049, allocations: 8.395 MB / 0.6186 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005224/1.054, allocations: 368.8 kB / 0.619 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001048/1.055, allocations: 396 kB / 0.6193 GB, free: 100.1 MB / 446.1 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.004331/1.059, allocations: 2.576 MB / 0.6218 GB, free: 97.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008641/1.06, allocations: 430.5 kB / 0.6223 GB, free: 97.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005999/1.066, allocations: 3.885 MB / 0.6261 GB, free: 93.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.06e-05/1.066, allocations: 28 kB / 0.6261 GB, free: 93.15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.72e-05/1.066, allocations: 4 kB / 0.6261 GB, free: 93.15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.06e-05/1.066, allocations: 11.97 kB / 0.6261 GB, free: 93.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01602/1.082, allocations: 9.78 MB / 0.6356 GB, free: 83.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/1.083, allocations: 4 kB / 0.6356 GB, free: 83.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001581/1.084, allocations: 351.5 kB / 0.636 GB, free: 82.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002355/1.086, allocations: 0.8506 MB / 0.6368 GB, free: 82.13 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00019/1.087, allocations: 40.86 kB / 0.6369 GB, free: 82.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007215/1.094, allocations: 7.54 MB / 0.6442 GB, free: 74.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.094, allocations: 4.062 kB / 0.6442 GB, free: 74.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008219/1.102, allocations: 6.77 MB / 0.6508 GB, free: 67.46 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002047/1.104, allocations: 0.7726 MB / 0.6516 GB, free: 66.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008536/1.105, allocations: 33.02 kB / 0.6516 GB, free: 66.63 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001701/1.107, allocations: 119.9 kB / 0.6517 GB, free: 66.51 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003137/1.107, allocations: 134.4 kB / 0.6519 GB, free: 66.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/1.107, allocations: 56.73 kB / 0.6519 GB, free: 66.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003866/1.111, allocations: 3.235 MB / 0.6551 GB, free: 63.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/1.111, allocations: 0 / 0.6551 GB, free: 63.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005283/1.116, allocations: 1.229 MB / 0.6563 GB, free: 61.88 MB / 446.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 (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.008447/1.125, allocations: 7.636 MB / 0.6637 GB, free: 54.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00809/1.133, allocations: 5.92 MB / 0.6695 GB, free: 48.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/1.133, allocations: 0 / 0.6695 GB, free: 48.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002727/1.136, allocations: 2.085 MB / 0.6715 GB, free: 46.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00322/1.139, allocations: 0.5219 MB / 0.6721 GB, free: 45.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2763/1.415, allocations: 139.2 MB / 0.808 GB, free: 69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004829/1.42, allocations: 4.114 MB / 0.812 GB, free: 67.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005193/1.426, allocations: 2.092 MB / 0.814 GB, free: 67.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003394/1.429, allocations: 2.465 MB / 0.8165 GB, free: 65.18 MB / 446.1 MB Notification: Performance of SimCode: time 1.373e-06/1.429, allocations: 0 / 0.8165 GB, free: 65.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3091/1.738, allocations: 94.44 MB / 0.9087 GB, free: 139 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001594/1.738, allocations: 225.2 kB / 0.9089 GB, free: 138.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.605/6.343, allocations: 0 / 0.9089 GB, free: 138.8 MB / 446.1 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) Environment - environmentSimulation: 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