Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001827/0.001827, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.002363/0.002363, allocations: 190 kB / 17.54 MB, free: 6.066 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.438/1.438, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001125/0.001125, allocations: 43.92 kB / 279.5 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1067, allocations: 46.64 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.3005/0.4073, allocations: 70.16 MB / 396.3 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03352/0.4408, allocations: 13.95 MB / 410.3 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01848/0.4594, allocations: 304.8 kB / 410.6 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008299/0.4678, allocations: 4.088 MB / 414.6 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008111/0.4759, allocations: 2.101 MB / 416.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002318/0.4783, allocations: 0.8677 MB / 417.6 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008406/0.4867, allocations: 6.133 MB / 423.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007616/0.4944, allocations: 5.587 MB / 429.3 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004921/0.4993, allocations: 2.249 MB / 431.6 MB, free: 7.656 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004709/0.5041, allocations: 3.252 MB / 434.8 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001065/0.5052, allocations: 496 kB / 435.3 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002874/0.508, allocations: 1.389 MB / 436.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002452/0.5105, allocations: 2.673 MB / 439.4 MB, free: 76 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003745/0.5143, allocations: 3.035 MB / 442.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01045/0.5247, allocations: 9.356 MB / 451.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.5248, allocations: 3.984 kB / 451.8 MB, free: 3.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.5248, allocations: 0 / 451.8 MB, free: 3.875 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003073/0.5251, allocations: 0 / 451.8 MB, free: 3.875 MB / 350.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.01551/0.5406, allocations: 6.344 MB / 458.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.5407, allocations: 8.031 kB / 458.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01177/0.5524, allocations: 2.613 MB / 460.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009138/0.5616, allocations: 3.975 MB / 464.7 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003304/0.562, allocations: 315.5 kB / 465 MB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001931/0.564, allocations: 442.1 kB / 465.4 MB, free: 6.281 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02577/0.5897, allocations: 12.24 MB / 477.7 MB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001933/0.59, allocations: 51.53 kB / 477.7 MB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006205/0.5906, allocations: 195.2 kB / 477.9 MB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003664/0.5943, allocations: 2.215 MB / 480.1 MB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02186/0.6162, allocations: 10.54 MB / 490.7 MB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07207/0.6883, allocations: 47.57 MB / 0.5256 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01216/0.7005, allocations: 4.596 MB / 0.5301 GB, free: 6.969 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004009/0.7046, allocations: 2.639 MB / 0.5327 GB, free: 4.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2675/0.9721, allocations: 10.43 MB / 0.5429 GB, free: 163.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.91e-05/0.9722, allocations: 55.55 kB / 0.5429 GB, free: 163.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=192): time 4.779e-06/0.9722, allocations: 0 / 0.5429 GB, free: 163.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=218): time 0.05563/1.028, allocations: 21 MB / 0.5634 GB, free: 156 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/1.028, allocations: 207.8 kB / 0.5636 GB, free: 155.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006362/1.034, allocations: 4.821 MB / 0.5684 GB, free: 152.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006169/1.035, allocations: 57.61 kB / 0.5684 GB, free: 152.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001914/1.037, allocations: 3.726 MB / 0.572 GB, free: 148.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009335/1.038, allocations: 0.8303 MB / 0.5729 GB, free: 148.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001589/1.04, allocations: 1.396 MB / 0.5742 GB, free: 146.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.757e-05/1.04, allocations: 301.1 kB / 0.5745 GB, free: 146.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002988/1.043, allocations: 2.578 MB / 0.577 GB, free: 143.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004565/1.047, allocations: 6.555 MB / 0.5834 GB, free: 135.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008921/1.056, allocations: 9.804 MB / 0.593 GB, free: 123.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000121/1.056, allocations: 43.94 kB / 0.593 GB, free: 123.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.01937/1.076, allocations: 10.26 MB / 0.6031 GB, free: 113.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.104e-05/1.076, allocations: 64 kB / 0.6031 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001601/1.076, allocations: 144.1 kB / 0.6033 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004125/1.08, allocations: 1.62 MB / 0.6048 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005196/1.085, allocations: 1.567 MB / 0.6064 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01084/1.096, allocations: 10.27 MB / 0.6164 GB, free: 99.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007118/1.103, allocations: 379.4 kB / 0.6168 GB, free: 99.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001133/1.105, allocations: 408 kB / 0.6172 GB, free: 98.61 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 (834): * Single equations (assignments): 829 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,31,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004285/1.109, allocations: 2.574 MB / 0.6197 GB, free: 96.04 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008751/1.11, allocations: 422.6 kB / 0.6201 GB, free: 95.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00743/1.117, allocations: 4.636 MB / 0.6246 GB, free: 90.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.817e-05/1.117, allocations: 24 kB / 0.6246 GB, free: 90.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/1.117, allocations: 8 kB / 0.6246 GB, free: 90.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-05/1.117, allocations: 11.95 kB / 0.6246 GB, free: 90.92 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01605/1.133, allocations: 10.49 MB / 0.6349 GB, free: 80.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.896e-05/1.133, allocations: 0 / 0.6349 GB, free: 80.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001568/1.135, allocations: 347.5 kB / 0.6352 GB, free: 80.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003595/1.139, allocations: 1.359 MB / 0.6365 GB, free: 78.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002282/1.139, allocations: 47.86 kB / 0.6366 GB, free: 78.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009564/1.148, allocations: 9.382 MB / 0.6457 GB, free: 69.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/1.148, allocations: 7.938 kB / 0.6458 GB, free: 69 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01075/1.159, allocations: 7.551 MB / 0.6531 GB, free: 61.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002444/1.162, allocations: 0.7883 MB / 0.6539 GB, free: 60.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000692/1.162, allocations: 35.94 kB / 0.6539 GB, free: 60.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/1.164, allocations: 123.8 kB / 0.6541 GB, free: 60.45 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004563/1.165, allocations: 133.8 kB / 0.6542 GB, free: 60.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001549/1.165, allocations: 60.08 kB / 0.6542 GB, free: 60.26 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004258/1.169, allocations: 3.045 MB / 0.6572 GB, free: 57.22 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.169, allocations: 0 / 0.6572 GB, free: 57.22 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007073/1.176, allocations: 1.26 MB / 0.6584 GB, free: 55.96 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005568/1.177, allocations: 173.5 kB / 0.6586 GB, free: 55.79 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01277/1.189, allocations: 7.784 MB / 0.6662 GB, free: 48.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/1.189, allocations: 4 kB / 0.6662 GB, free: 48.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003083/1.193, allocations: 2.191 MB / 0.6684 GB, free: 45.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004327/1.197, allocations: 0.5652 MB / 0.6689 GB, free: 45.26 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02203/1.219, allocations: 14.38 MB / 0.6829 GB, free: 30.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003823/1.223, allocations: 4.003 MB / 0.6869 GB, free: 26.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00495/1.228, allocations: 2.079 MB / 0.6889 GB, free: 24.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009111/1.229, allocations: 287.4 kB / 0.6892 GB, free: 24.46 MB / 446.1 MB Notification: Performance of SimCode: time 1.352e-06/1.229, allocations: 0 / 0.6892 GB, free: 24.46 MB / 446.1 MB Notification: Performance of Templates: time 0.2967/1.525, allocations: 47.38 MB / 0.7354 GB, free: 135 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1)