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.001515/0.001515, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2358/0.2358, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.002285/0.002285, allocations: 83.52 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1398, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01823/0.1581, allocations: 13.5 MB / 493.7 MB, free: 7.566 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01367/0.1718, allocations: 4.551 MB / 498.3 MB, free: 3 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003504/0.1753, allocations: 91.75 kB / 498.3 MB, free: 2.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008922/0.1843, allocations: 4.17 MB / 0.4907 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005635/0.19, allocations: 2.143 MB / 0.4928 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002331/0.1924, allocations: 0.9281 MB / 0.4937 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009167/0.2015, allocations: 6.119 MB / 0.4997 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007631/0.2092, allocations: 5.204 MB / 0.5048 GB, free: 252 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.235/0.4443, allocations: 2.11 MB / 0.5069 GB, free: 16.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005445/0.4497, allocations: 2.797 MB / 0.5096 GB, free: 16.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002109/0.4519, allocations: 470.9 kB / 0.51 GB, free: 16.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003979/0.4559, allocations: 1.341 MB / 0.5113 GB, free: 16.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003988/0.4599, allocations: 2.494 MB / 0.5138 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006246/0.4662, allocations: 2.893 MB / 0.5166 GB, free: 15.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0172/0.4834, allocations: 8.934 MB / 0.5253 GB, free: 12.99 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.4834, allocations: 0 / 0.5253 GB, free: 12.99 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4835, allocations: 0.75 kB / 0.5253 GB, free: 12.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003668/0.4838, allocations: 0 / 0.5253 GB, free: 12.99 MB / 382.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.02027/0.5041, allocations: 6.266 MB / 0.5315 GB, free: 9.352 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.998e-05/0.5042, allocations: 9.625 kB / 0.5315 GB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003474/0.5077, allocations: 0.8274 MB / 0.5323 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03871/0.5464, allocations: 6.068 MB / 0.5382 GB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008895/0.5554, allocations: 4.122 MB / 0.5422 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001929/0.5556, allocations: 309.2 kB / 0.5425 GB, free: 3.395 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001659/0.5572, allocations: 426.9 kB / 0.5429 GB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02249/0.5797, allocations: 11.42 MB / 0.5541 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001735/0.58, allocations: 47.2 kB / 0.5541 GB, free: 8.059 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006688/0.5806, allocations: 194.4 kB / 0.5543 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003734/0.5844, allocations: 2.027 MB / 0.5563 GB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02303/0.6074, allocations: 9.677 MB / 0.5657 GB, free: 12.42 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06519/0.6727, allocations: 44.98 MB / 0.6097 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0116/0.6843, allocations: 4.238 MB / 0.6138 GB, free: 10.33 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003572/0.688, allocations: 2.349 MB / 0.6161 GB, free: 7.973 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01682/0.7048, allocations: 9.431 MB / 0.6253 GB, free: 14.43 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.501e-05/0.7049, allocations: 54.09 kB / 0.6254 GB, free: 14.38 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 5.871e-06/0.7049, allocations: 0 / 0.6254 GB, free: 14.38 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.05825/0.7632, allocations: 18.15 MB / 0.6431 GB, free: 12.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001664/0.7634, allocations: 209.2 kB / 0.6433 GB, free: 11.93 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008908/0.7723, allocations: 4.701 MB / 0.6479 GB, free: 7.219 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005037/0.7728, allocations: 53.7 kB / 0.6479 GB, free: 7.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003528/0.7764, allocations: 3.602 MB / 0.6514 GB, free: 3.559 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001517/0.7779, allocations: 0.7587 MB / 0.6522 GB, free: 2.809 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002249/0.7802, allocations: 1.257 MB / 0.6534 GB, free: 1.539 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.7803, allocations: 305.1 kB / 0.6537 GB, free: 1.238 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003647/0.784, allocations: 2.186 MB / 0.6558 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007544/0.7916, allocations: 6.012 MB / 0.6617 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01185/0.8034, allocations: 8.892 MB / 0.6704 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/0.8036, allocations: 40 kB / 0.6704 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of matching and sorting (n=815) (initialization): time 0.01899/0.8226, allocations: 8.766 MB / 0.679 GB, free: 4.289 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001069/0.8227, allocations: 64 kB / 0.6791 GB, free: 4.227 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001677/0.8229, allocations: 133.6 kB / 0.6792 GB, free: 4.098 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00344/0.8264, allocations: 1.078 MB / 0.6802 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004984/0.8314, allocations: 1.423 MB / 0.6816 GB, free: 1.59 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01222/0.8436, allocations: 8.855 MB / 0.6903 GB, free: 8.453 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00665/0.8503, allocations: 339.4 kB / 0.6906 GB, free: 8.121 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002489/0.8528, allocations: 386.6 kB / 0.691 GB, free: 7.746 MB / 0.5294 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.00886/0.8617, allocations: 2.447 MB / 0.6933 GB, free: 5.285 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001415/0.8632, allocations: 422.5 kB / 0.6938 GB, free: 4.867 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01118/0.8744, allocations: 3.491 MB / 0.6972 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-05/0.8745, allocations: 20 kB / 0.6972 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.501e-05/0.8745, allocations: 12 kB / 0.6972 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.893e-05/0.8745, allocations: 7.969 kB / 0.6972 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02314/0.8977, allocations: 8.999 MB / 0.706 GB, free: 8.285 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.151e-05/0.8978, allocations: 4.031 kB / 0.706 GB, free: 8.281 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/0.8993, allocations: 299.6 kB / 0.7063 GB, free: 7.988 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002952/0.9023, allocations: 0.8534 MB / 0.7071 GB, free: 7.129 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000279/0.9026, allocations: 38.97 kB / 0.7071 GB, free: 7.094 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2358/1.138, allocations: 7.91 MB / 0.7149 GB, free: 188.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/1.138, allocations: 6.906 kB / 0.7149 GB, free: 188.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01272/1.151, allocations: 6.05 MB / 0.7208 GB, free: 188.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00175/1.153, allocations: 451.6 kB / 0.7212 GB, free: 188.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007761/1.154, allocations: 35.97 kB / 0.7213 GB, free: 188.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/1.155, allocations: 99.25 kB / 0.7213 GB, free: 188.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003455/1.156, allocations: 116.5 kB / 0.7215 GB, free: 188.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001483/1.156, allocations: 58.28 kB / 0.7215 GB, free: 188.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005884/1.162, allocations: 2.975 MB / 0.7244 GB, free: 187.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.7e-07/1.162, allocations: 0 / 0.7244 GB, free: 187.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00745/1.169, allocations: 1.125 MB / 0.7255 GB, free: 187.1 MB / 0.545 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.01081/1.18, allocations: 6.709 MB / 0.7321 GB, free: 184.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01031/1.19, allocations: 6.579 MB / 0.7385 GB, free: 182.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/1.19, allocations: 3.938 kB / 0.7385 GB, free: 182.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002755/1.193, allocations: 1.881 MB / 0.7403 GB, free: 181.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003699/1.197, allocations: 0.5668 MB / 0.7409 GB, free: 181.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07683/1.274, allocations: 59.47 MB / 0.799 GB, free: 120.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00463/1.278, allocations: 3.823 MB / 0.8027 GB, free: 116.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004844/1.283, allocations: 1.992 MB / 0.8046 GB, free: 114.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003429/1.287, allocations: 2.327 MB / 0.8069 GB, free: 112.5 MB / 0.545 GB Notification: Performance of SimCode: time 8.52e-07/1.287, allocations: 0 / 0.8069 GB, free: 112.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1401/1.427, allocations: 86.64 MB / 0.8915 GB, free: 26.25 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/13.63, allocations: 0 / 0.8915 GB, free: 26.25 MB / 0.545 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)