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.001685/0.001685, allocations: 105.2 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.001914/0.001914, 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.457/1.457, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2458/0.2458, allocations: 46.12 MB / 344.2 MB, free: 11.53 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.002255/0.002256, allocations: 78.78 kB / 417.8 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1227, allocations: 62.45 MB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01799/0.1407, allocations: 13.49 MB / 493.7 MB, free: 7.559 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01259/0.1534, allocations: 4.555 MB / 498.3 MB, free: 2.988 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003463/0.1569, allocations: 91.75 kB / 498.4 MB, free: 2.898 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008838/0.1658, allocations: 4.178 MB / 0.4908 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006552/0.1724, allocations: 2.132 MB / 0.4928 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002586/0.175, allocations: 0.9282 MB / 0.4937 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01001/0.185, allocations: 6.123 MB / 0.4997 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008279/0.1934, allocations: 5.2 MB / 0.5048 GB, free: 240 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2462/0.4396, allocations: 2.114 MB / 0.5069 GB, free: 16.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004704/0.4444, allocations: 2.793 MB / 0.5096 GB, free: 16.67 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001466/0.4459, allocations: 471.7 kB / 0.51 GB, free: 16.67 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003057/0.4489, allocations: 1.343 MB / 0.5114 GB, free: 16.67 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003213/0.4522, allocations: 2.49 MB / 0.5138 GB, free: 16.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004664/0.4568, allocations: 2.901 MB / 0.5166 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01214/0.469, allocations: 8.925 MB / 0.5253 GB, free: 13.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.469, allocations: 2.156 kB / 0.5253 GB, free: 13.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.469, allocations: 0 / 0.5253 GB, free: 13.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000398/0.4695, allocations: 0 / 0.5253 GB, free: 13.12 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.02086/0.4903, allocations: 6.262 MB / 0.5314 GB, free: 9.461 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.4904, allocations: 10.59 kB / 0.5315 GB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0025/0.4929, allocations: 0.8376 MB / 0.5323 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04432/0.5372, allocations: 6.059 MB / 0.5382 GB, free: 5.953 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0149/0.5522, allocations: 4.133 MB / 0.5422 GB, free: 3.602 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003971/0.5526, allocations: 299.9 kB / 0.5425 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002707/0.5554, allocations: 434.7 kB / 0.5429 GB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0377/0.5931, allocations: 11.42 MB / 0.5541 GB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002859/0.5934, allocations: 48.44 kB / 0.5541 GB, free: 8.133 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001486/0.5949, allocations: 186.9 kB / 0.5543 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007152/0.6021, allocations: 2.026 MB / 0.5563 GB, free: 5.988 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03324/0.6354, allocations: 9.689 MB / 0.5657 GB, free: 12.49 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07717/0.7126, allocations: 44.96 MB / 0.6097 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/0.7249, allocations: 4.256 MB / 0.6138 GB, free: 10.39 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004089/0.729, allocations: 2.338 MB / 0.6161 GB, free: 8.039 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02183/0.7509, allocations: 9.432 MB / 0.6253 GB, free: 14.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.794e-05/0.751, allocations: 54.94 kB / 0.6254 GB, free: 14.44 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 9.217e-06/0.751, allocations: 0 / 0.6254 GB, free: 14.44 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.05627/0.8073, allocations: 18.16 MB / 0.6431 GB, free: 12.23 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/0.8075, allocations: 201.2 kB / 0.6433 GB, free: 11.99 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009488/0.817, allocations: 4.697 MB / 0.6479 GB, free: 7.289 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006456/0.8177, allocations: 55.81 kB / 0.6479 GB, free: 7.23 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003297/0.821, allocations: 3.603 MB / 0.6514 GB, free: 3.625 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001285/0.8223, allocations: 0.7518 MB / 0.6522 GB, free: 2.879 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002105/0.8244, allocations: 1.26 MB / 0.6534 GB, free: 1.609 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.8246, allocations: 309.1 kB / 0.6537 GB, free: 1.305 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003745/0.8283, allocations: 2.186 MB / 0.6558 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007989/0.8364, allocations: 6.005 MB / 0.6617 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01564/0.852, allocations: 8.896 MB / 0.6704 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002299/0.8524, allocations: 40 kB / 0.6704 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of matching and sorting (n=815) (initialization): time 0.03021/0.8826, allocations: 8.765 MB / 0.679 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001736/0.8828, allocations: 67.97 kB / 0.6791 GB, free: 4.301 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000288/0.8831, allocations: 136 kB / 0.6792 GB, free: 4.168 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006497/0.8896, allocations: 1.081 MB / 0.6802 GB, free: 3.082 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009737/0.8994, allocations: 1.415 MB / 0.6816 GB, free: 1.664 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02095/0.9204, allocations: 8.853 MB / 0.6903 GB, free: 8.531 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008817/0.9293, allocations: 347.4 kB / 0.6906 GB, free: 8.191 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00182/0.9311, allocations: 384 kB / 0.691 GB, free: 7.816 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.008177/0.9393, allocations: 2.453 MB / 0.6934 GB, free: 5.352 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001199/0.9406, allocations: 414.6 kB / 0.6938 GB, free: 4.941 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008281/0.9488, allocations: 3.491 MB / 0.6972 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.754e-05/0.9489, allocations: 23.98 kB / 0.6972 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.652e-05/0.949, allocations: 8 kB / 0.6972 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.35e-05/0.949, allocations: 7.969 kB / 0.6972 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01914/0.9681, allocations: 9.001 MB / 0.706 GB, free: 8.359 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.102e-05/0.9682, allocations: 4 kB / 0.706 GB, free: 8.355 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/0.9698, allocations: 299.5 kB / 0.7063 GB, free: 8.062 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002899/0.9727, allocations: 0.8573 MB / 0.7071 GB, free: 7.199 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000306/0.9731, allocations: 36 kB / 0.7072 GB, free: 7.164 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2222/1.195, allocations: 7.904 MB / 0.7149 GB, free: 189.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/1.195, allocations: 2.812 kB / 0.7149 GB, free: 189.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01061/1.206, allocations: 6.055 MB / 0.7208 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001588/1.208, allocations: 448.8 kB / 0.7212 GB, free: 188.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007846/1.208, allocations: 36.67 kB / 0.7213 GB, free: 188.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001705/1.21, allocations: 97.64 kB / 0.7213 GB, free: 188.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004081/1.21, allocations: 122.8 kB / 0.7215 GB, free: 188.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001436/1.211, allocations: 54.64 kB / 0.7215 GB, free: 188.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006285/1.217, allocations: 2.975 MB / 0.7244 GB, free: 187.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.01e-07/1.217, allocations: 0.5 kB / 0.7244 GB, free: 187.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01015/1.227, allocations: 1.122 MB / 0.7255 GB, free: 187.4 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.01101/1.238, allocations: 6.711 MB / 0.7321 GB, free: 184.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0116/1.25, allocations: 6.578 MB / 0.7385 GB, free: 182.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/1.25, allocations: 0 / 0.7385 GB, free: 182.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003293/1.253, allocations: 1.896 MB / 0.7403 GB, free: 181.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00539/1.259, allocations: 0.5656 MB / 0.7409 GB, free: 181.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09157/1.35, allocations: 59.46 MB / 0.799 GB, free: 121.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006176/1.356, allocations: 3.825 MB / 0.8027 GB, free: 117.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0046/1.361, allocations: 1.988 MB / 0.8046 GB, free: 115.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003189/1.364, allocations: 2.327 MB / 0.8069 GB, free: 112.9 MB / 0.545 GB Notification: Performance of SimCode: time 9.42e-07/1.364, allocations: 0 / 0.8069 GB, free: 112.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1372/1.501, allocations: 86.65 MB / 0.8915 GB, free: 26.64 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/13.85, allocations: 7.984 kB / 0.8915 GB, free: 26.63 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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)