Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00164/0.00164, allocations: 109.3 kB / 19.8 MB, free: 2.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001856/0.001856, allocations: 220 kB / 23 MB, free: 5.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.435/1.435, allocations: 230.5 MB / 256.5 MB, free: 8.18 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 79.83 kB / 376.2 MB, free: 4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2607, allocations: 53.3 MB / 429.5 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01565/0.2763, allocations: 13.54 MB / 443.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009933/0.2863, allocations: 4.59 MB / 447.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002436/0.2887, allocations: 87.75 kB / 447.7 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008114/0.2968, allocations: 4.248 MB / 452 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005711/0.3025, allocations: 2.175 MB / 454.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002195/0.3047, allocations: 0.9476 MB / 455.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008588/0.3133, allocations: 6.108 MB / 461.2 MB, free: 7.605 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005304/0.3186, allocations: 3.744 MB / 465 MB, free: 3.801 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003778/0.3224, allocations: 2.13 MB / 467.1 MB, free: 1.664 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005027/0.3274, allocations: 3.007 MB / 470.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001472/0.3289, allocations: 472 kB / 470.6 MB, free: 14.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00308/0.332, allocations: 1.381 MB / 471.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00305/0.335, allocations: 2.567 MB / 474.5 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005257/0.3403, allocations: 2.898 MB / 477.4 MB, free: 7.316 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01215/0.3524, allocations: 9.188 MB / 486.6 MB, free: 14.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3524, allocations: 4 kB / 486.6 MB, free: 14.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3524, allocations: 0 / 486.6 MB, free: 14.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002801/0.3527, allocations: 4 kB / 486.6 MB, free: 14.09 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01639/0.3691, allocations: 6.422 MB / 493 MB, free: 7.582 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.3692, allocations: 12.03 kB / 493 MB, free: 7.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002254/0.3714, allocations: 0.8306 MB / 493.9 MB, free: 6.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03935/0.4108, allocations: 6.09 MB / 500 MB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01136/0.4221, allocations: 4.217 MB / 0.4924 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002871/0.4224, allocations: 300.1 kB / 0.4926 GB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001634/0.4241, allocations: 431.7 kB / 0.493 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02249/0.4465, allocations: 11.42 MB / 0.5042 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002047/0.4467, allocations: 59.58 kB / 0.5043 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007399/0.4475, allocations: 183.9 kB / 0.5044 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003606/0.4511, allocations: 2.03 MB / 0.5064 GB, free: 13.2 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02036/0.4715, allocations: 9.674 MB / 0.5159 GB, free: 3.508 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.273/0.7445, allocations: 44.85 MB / 0.5597 GB, free: 70.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00985/0.7543, allocations: 4.101 MB / 0.5637 GB, free: 68.95 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00272/0.7571, allocations: 2.183 MB / 0.5658 GB, free: 68.04 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01337/0.7704, allocations: 9.435 MB / 0.575 GB, free: 62.49 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.7705, allocations: 50 kB / 0.5751 GB, free: 62.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 4.198e-06/0.7705, allocations: 0 / 0.5751 GB, free: 62.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04513/0.8156, allocations: 18.44 MB / 0.5931 GB, free: 45.29 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.8157, allocations: 209.2 kB / 0.5933 GB, free: 45.05 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005605/0.8213, allocations: 4.707 MB / 0.5979 GB, free: 40.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004034/0.8217, allocations: 53.7 kB / 0.5979 GB, free: 40.36 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001589/0.8233, allocations: 3.731 MB / 0.6016 GB, free: 36.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006409/0.8239, allocations: 0.7958 MB / 0.6023 GB, free: 36.12 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001282/0.8252, allocations: 1.262 MB / 0.6036 GB, free: 34.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.099e-05/0.8252, allocations: 301.1 kB / 0.6039 GB, free: 34.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002502/0.8277, allocations: 2.185 MB / 0.606 GB, free: 32.36 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003732/0.8315, allocations: 6.008 MB / 0.6119 GB, free: 24.45 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007271/0.8387, allocations: 8.904 MB / 0.6206 GB, free: 13.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.873e-05/0.8388, allocations: 36 kB / 0.6206 GB, free: 13.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=815) (initialization): time 0.01395/0.8528, allocations: 8.767 MB / 0.6291 GB, free: 4.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.821e-05/0.8529, allocations: 66.91 kB / 0.6292 GB, free: 4.777 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000131/0.853, allocations: 136 kB / 0.6293 GB, free: 4.645 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002807/0.8558, allocations: 1.077 MB / 0.6304 GB, free: 3.562 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003997/0.8598, allocations: 1.415 MB / 0.6318 GB, free: 2.145 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/0.871, allocations: 8.854 MB / 0.6404 GB, free: 9.008 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004862/0.8759, allocations: 339.6 kB / 0.6407 GB, free: 8.676 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001204/0.8771, allocations: 383.8 kB / 0.6411 GB, free: 8.305 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.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 (753): * Single equations (assignments): 748 * 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,33,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004798/0.8819, allocations: 2.458 MB / 0.6435 GB, free: 5.836 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001015/0.8829, allocations: 437 kB / 0.6439 GB, free: 5.406 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007391/0.8903, allocations: 3.476 MB / 0.6473 GB, free: 1.918 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.705e-05/0.8904, allocations: 20 kB / 0.6473 GB, free: 1.898 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.707e-05/0.8904, allocations: 8 kB / 0.6473 GB, free: 1.891 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.429e-05/0.8904, allocations: 7.969 kB / 0.6474 GB, free: 1.883 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01911/0.9095, allocations: 8.918 MB / 0.6561 GB, free: 8.922 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.326e-05/0.9095, allocations: 0 / 0.6561 GB, free: 8.922 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001626/0.9112, allocations: 303.5 kB / 0.6564 GB, free: 8.625 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002962/0.9141, allocations: 0.8534 MB / 0.6572 GB, free: 7.766 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003399/0.9145, allocations: 31.98 kB / 0.6572 GB, free: 7.734 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01088/0.9254, allocations: 7.928 MB / 0.665 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.9254, allocations: 3.938 kB / 0.665 GB, free: 15.53 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/0.9356, allocations: 6.065 MB / 0.6709 GB, free: 9.434 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/0.9368, allocations: 474.1 kB / 0.6713 GB, free: 8.949 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006718/0.9375, allocations: 34.5 kB / 0.6714 GB, free: 8.918 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001742/0.9392, allocations: 95.88 kB / 0.6715 GB, free: 8.824 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004475/0.9396, allocations: 121.1 kB / 0.6716 GB, free: 8.707 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000157/0.9398, allocations: 51.94 kB / 0.6716 GB, free: 8.656 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005408/0.9452, allocations: 2.981 MB / 0.6745 GB, free: 5.68 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.9452, allocations: 0 / 0.6745 GB, free: 5.68 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00597/0.9512, allocations: 1.127 MB / 0.6756 GB, free: 4.555 MB / 494.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 (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.01108/0.9623, allocations: 6.71 MB / 0.6822 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009551/0.9718, allocations: 5.34 MB / 0.6874 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.9718, allocations: 384 / 0.6874 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003248/0.9751, allocations: 1.766 MB / 0.6891 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004061/0.9791, allocations: 0.5773 MB / 0.6897 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.314/1.293, allocations: 51.2 MB / 0.7397 GB, free: 192 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00631/1.299, allocations: 3.822 MB / 0.7434 GB, free: 191.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004905/1.304, allocations: 1.985 MB / 0.7454 GB, free: 191.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003407/1.308, allocations: 2.329 MB / 0.7476 GB, free: 190.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.743e-06/1.308, allocations: 3.5 kB / 0.7476 GB, free: 190.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1301/1.438, allocations: 84.05 MB / 0.8297 GB, free: 117.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.06/27.5, allocations: 19.78 kB / 0.8297 GB, free: 117.6 MB / 0.545 GB " [Timeout remaining time 632] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 29.894758431997616] Failed to read output from testmodel.py, exit status != 0: ['time', 'gearConstraint.actuatedRevolute_b.phi', 'gearConstraint.actuatedRevolute_b.w', 'inertia2.phi', 'inertia2.w'] 27.632107652985724 27.640908522 27.285663184 Calling exit ...