Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) 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(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_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.001321/0.001321, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001374/0.001374, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2255/0.2255, allocations: 46.12 MB / 344.4 MB, free: 11.44 MB / 286.1 MB Warning: Requested package Modelica 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.002272/0.002273, allocations: 87.83 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3295, allocations: 62.43 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01669/0.3462, allocations: 13.5 MB / 0.5438 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01104/0.3573, allocations: 4.542 MB / 0.5482 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003552/0.3609, allocations: 98.03 kB / 0.5483 GB, free: 15.17 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008663/0.3697, allocations: 4.182 MB / 0.5524 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006789/0.3765, allocations: 2.124 MB / 0.5545 GB, free: 9.203 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002704/0.3792, allocations: 0.9398 MB / 0.5554 GB, free: 8.262 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01007/0.3893, allocations: 6.12 MB / 0.5614 GB, free: 2.129 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007463/0.3968, allocations: 5.201 MB / 0.5664 GB, free: 12.86 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004258/0.4011, allocations: 2.119 MB / 0.5685 GB, free: 10.74 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004961/0.4061, allocations: 2.796 MB / 0.5712 GB, free: 7.934 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001523/0.4077, allocations: 472 kB / 0.5717 GB, free: 7.473 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003663/0.4113, allocations: 1.342 MB / 0.573 GB, free: 6.129 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0039/0.4153, allocations: 2.494 MB / 0.5754 GB, free: 3.629 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005557/0.4209, allocations: 2.906 MB / 0.5783 GB, free: 0.707 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01533/0.4362, allocations: 9.192 MB / 0.5873 GB, free: 7.48 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/0.4363, allocations: 0 / 0.5873 GB, free: 7.48 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.4363, allocations: 0 / 0.5873 GB, free: 7.48 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003416/0.4367, allocations: 3.938 kB / 0.5873 GB, free: 7.477 MB / 446.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.02034/0.457, allocations: 6.422 MB / 0.5935 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.213e-05/0.4571, allocations: 12.03 kB / 0.5935 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00268/0.4598, allocations: 0.8345 MB / 0.5944 GB, free: 120 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04116/0.501, allocations: 6.089 MB / 0.6003 GB, free: 10.01 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01021/0.5112, allocations: 4.228 MB / 0.6044 GB, free: 5.73 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003828/0.5117, allocations: 301.3 kB / 0.6047 GB, free: 5.438 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001782/0.5135, allocations: 419.8 kB / 0.6051 GB, free: 5.027 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02708/0.5406, allocations: 11.43 MB / 0.6163 GB, free: 8.848 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002725/0.5409, allocations: 47.58 kB / 0.6163 GB, free: 8.801 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001513/0.5424, allocations: 191.9 kB / 0.6165 GB, free: 8.613 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003959/0.5464, allocations: 2.018 MB / 0.6185 GB, free: 6.59 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02125/0.5677, allocations: 9.686 MB / 0.6279 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06454/0.6323, allocations: 44.86 MB / 0.6717 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01139/0.6437, allocations: 4.251 MB / 0.6759 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003526/0.6473, allocations: 2.341 MB / 0.6782 GB, free: 7.93 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.016/0.6633, allocations: 9.436 MB / 0.6874 GB, free: 14.33 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.674e-05/0.6634, allocations: 59.44 kB / 0.6875 GB, free: 14.26 MB / 0.545 GB Notification: Performance of pre-optimization done (n=171): time 5.05e-06/0.6634, allocations: 4 kB / 0.6875 GB, free: 14.26 MB / 0.545 GB Notification: Performance of matching and sorting (n=197): time 0.05354/0.717, allocations: 18.46 MB / 0.7055 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001797/0.7172, allocations: 197.2 kB / 0.7057 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009526/0.7267, allocations: 4.714 MB / 0.7103 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005671/0.7273, allocations: 61.64 kB / 0.7103 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003847/0.7312, allocations: 3.732 MB / 0.714 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001296/0.7325, allocations: 0.7908 MB / 0.7148 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002142/0.7347, allocations: 1.278 MB / 0.716 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001549/0.7348, allocations: 301.1 kB / 0.7163 GB, free: 0.5508 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2778/1.013, allocations: 2.178 MB / 0.7184 GB, free: 164.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005724/1.018, allocations: 6.004 MB / 0.7243 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009966/1.028, allocations: 8.896 MB / 0.733 GB, free: 151 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002355/1.029, allocations: 38.44 kB / 0.733 GB, free: 151 MB / 0.5606 GB Notification: Performance of matching and sorting (n=815) (initialization): time 0.01575/1.044, allocations: 8.775 MB / 0.7416 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/1.045, allocations: 65.62 kB / 0.7416 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001591/1.045, allocations: 133.1 kB / 0.7418 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002931/1.048, allocations: 1.078 MB / 0.7428 GB, free: 147.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004311/1.052, allocations: 1.418 MB / 0.7442 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009233/1.061, allocations: 8.855 MB / 0.7528 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005495/1.067, allocations: 338.3 kB / 0.7532 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001459/1.068, allocations: 384 kB / 0.7535 GB, free: 139 MB / 0.5606 GB 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.005235/1.074, allocations: 2.451 MB / 0.7559 GB, free: 136.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/1.075, allocations: 442.1 kB / 0.7563 GB, free: 136.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006422/1.081, allocations: 3.487 MB / 0.7598 GB, free: 133 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.315e-05/1.081, allocations: 24 kB / 0.7598 GB, free: 132.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.734e-05/1.081, allocations: 8 kB / 0.7598 GB, free: 132.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.502e-05/1.081, allocations: 7.969 kB / 0.7598 GB, free: 132.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01755/1.099, allocations: 8.941 MB / 0.7685 GB, free: 124 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.058e-05/1.099, allocations: 7.719 kB / 0.7685 GB, free: 124 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001416/1.1, allocations: 309 kB / 0.7688 GB, free: 123.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002532/1.103, allocations: 0.8477 MB / 0.7697 GB, free: 122.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002513/1.103, allocations: 28 kB / 0.7697 GB, free: 122.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007753/1.111, allocations: 7.931 MB / 0.7774 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.83e-06/1.111, allocations: 3.938 kB / 0.7774 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008381/1.119, allocations: 6.07 MB / 0.7834 GB, free: 108.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/1.121, allocations: 482.9 kB / 0.7838 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001014/1.122, allocations: 28 kB / 0.7838 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002027/1.124, allocations: 111.8 kB / 0.784 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004064/1.124, allocations: 117.1 kB / 0.7841 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/1.124, allocations: 48 kB / 0.7841 GB, free: 108 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004903/1.129, allocations: 2.977 MB / 0.787 GB, free: 105 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/1.129, allocations: 0 / 0.787 GB, free: 105 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005932/1.135, allocations: 1.122 MB / 0.7881 GB, free: 103.9 MB / 0.5606 GB 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.008761/1.144, allocations: 6.727 MB / 0.7947 GB, free: 97.11 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008236/1.152, allocations: 5.538 MB / 0.8001 GB, free: 91.57 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.152, allocations: 0 / 0.8001 GB, free: 91.57 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002699/1.155, allocations: 1.891 MB / 0.8019 GB, free: 89.66 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004961/1.16, allocations: 0.5774 MB / 0.8025 GB, free: 89.09 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08197/1.242, allocations: 51.15 MB / 0.8525 GB, free: 31.94 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005383/1.247, allocations: 3.815 MB / 0.8562 GB, free: 28.09 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004412/1.252, allocations: 1.996 MB / 0.8581 GB, free: 26.09 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002963/1.255, allocations: 2.329 MB / 0.8604 GB, free: 23.76 MB / 0.5606 GB Notification: Performance of SimCode: time 1.212e-06/1.255, allocations: 0 / 0.8604 GB, free: 23.76 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1545/1.409, allocations: 83.04 MB / 0.9415 GB, free: 5.168 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.44/29.85, allocations: 10.44 kB / 0.9415 GB, free: 5.16 MB / 0.6231 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1)